Welcome, Guest
Username: Password: Remember me
  • Page:
  • 1

TOPIC:

Will 'Kill the Post' feature work with Ajax 14 Feb 2012 14:01 #1287

I am making a site that uses jQuery Mobile and this means all pages are loaded into the first page using ajax- you can see the current version here to see what I mean www.carpaholics.com (it uses jQuery mobile on the desktop too so just view in your dektop browser).When you navigate back in this kind of site, you are actually going back to a page that is already in the DOM so I really don't want it deleted by Cook.

Can you confirm whether this is going to be an issue?

Please Log in or Create an account to join the conversation.

Last edit: by davidosullivan.

Re: Will 'Kill the Post' feature work with Ajax 14 Feb 2012 14:41 #1295

  • admin
  • admin's Avatar
  • Offline
  • Administrator
  • Administrator
  • Chef
  • Posts: 3711
  • Thank you received: 986
If you use Cook for an Ajax application, maybe you don't use templates at all !!
The communication is very fast in JSON and your layout is designed by your JS interface.

Well, if you keep your HTML templates and call them trough ajax, it is impossible to redirect the URL.

Not a question of cook or not, but because it is AJAX.
Coding is now a piece of cake

Please Log in or Create an account to join the conversation.

Re: Will 'Kill the Post' feature work with Ajax 14 Feb 2012 14:53 #1297

Not sure I understand your answer.

Dont quite know if you mean (looking at the example site) whether you think that 'yes it probably will be a problem' or a 'no that probably won't be a problem'?

Please Log in or Create an account to join the conversation.

Re: Will 'Kill the Post' feature work with Ajax 14 Feb 2012 14:56 #1298

Its this feature I am worried about...

Quote:
Kill the post
Don't mind anymore about the post, Cook redraw the URL each time a post is submitted. The only exception is when a form submission fails. The post is keeped in order to refills the datas.
(An amelioration is possible here)

Does this just apply to forms or is it all pages?

Please Log in or Create an account to join the conversation.

Last edit: by davidosullivan.

Re: Will 'Kill the Post' feature work with Ajax 14 Feb 2012 15:16 #1301

  • admin
  • admin's Avatar
  • Offline
  • Administrator
  • Administrator
  • Chef
  • Posts: 3711
  • Thank you received: 986
Forms and Toolbar actions.


In your view, if you finish your calls by a jexit(), or something like that for JSON answer, you don't have any redirection who take place. So your result is keeped intact.
Coding is now a piece of cake

Please Log in or Create an account to join the conversation.

  • Page:
  • 1
Time to create page: 0.100 seconds

A HUGE thank you for all the time and effort you have put into J-Cook it is a timesaver and a training tool all in one
Morgan Leecy - MCSE  

Get Started