My favorites | Sign in
Project Home Downloads Issues
READ-ONLY: This project has been archived. For more information see this post.
Search
for
  Advanced search   Search tips   Subscriptions
Issue 495: data is stored in a modal and only refreshes in new browser instance
2 people starred this issue and may be notified of changes. Back to list
Status:  New
Owner:  ----


 
Reported by mdm...@gmail.com, Jul 1, 2010
What steps will reproduce the problem?
1. a modal references a hidden DIV on the current page which links to another modal that references an .aspx page.
2. the user edits content on the page and clicks save.
3. the changes are saved to the database (sql) but if the modal is opened again it does not load the newest content from the database, but what was loaded the first time.

What is the expected output? What do you see instead?
When opening the modal again without closing the browser, it should load the most recent content from the sql database. If you do not open a new browser instance, the content is the same as when the modal was first opened.

Please use labels and text to provide additional information.
Is there a cache or temporary storage setting in the nyroModal plugin that can be changed to load the page new every time?

Aug 2, 2010
#1 anotherhero
If you pass nyroModal a settings object which contains a property named ajax that property is passed on all $.ajax() calls as the options to $.ajax();

So if you pass a settings object like the following
{
  ajax : { cache: false }
}
It won't use caching for Ajax calls.
See http://api.jquery.com/jQuery.ajax/ for more settings that can be passed.

Powered by Google Project Hosting