IE has an annoying habbit of caching ajax responses, and the only
reliable way to get round it is to append a random string to the end
of the request url as an additional parameter.
/controller/model/param1/param2/my_random_param/
On Jun 2, 5:59 am, "Dave Maharaj :: WidePixels.com"
<d...@widepixels.com> wrote:
> OK i figured out the Ajax submit with jQuery. Now I have run into another
> problem....
> I have a edit link, click loads a form that only has checkboxes to select
> from...user selects the ones they want...save and the form saves and loads
> the updated selections.
>
> Problem is that the form selected checkboxes and the returned view are the
> same after the first update. If I clear my browser cache after every save
> looks right....
>
> I added
> <cake:nocache>
> form here
> </cake:nocache>
>
> and
>
> <cake:nocache>
> updated contentthat gets returned
> </cake:nocache>
>
> So if i update selections and save....say opps i forgot 1 click edit again
> the checkboxes appears as they did originally and the newly updated options
> are not returned after the save....they save to the database though.
>
> Ideas?
>
> Thanks
>
> Dave
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to cake-php+unsubscribe@googlegroups.com
For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---
No comments:
Post a Comment