So say I have this code that opens the dialog:
// open the dialog
$("#linkForgotPassword").click(function(e) {
$("#myDialog").dialog("open");
});
This code will work and open the dialog box when the link is clicked but
when I do:
1. Open the dialog,
2. Submit the form via ajax,
3. Replace the content with a confirmation message
4. Close the window
5. Re-open the dialog box it always shows the confirmation message as
opposed to my form.
When I re-open the dialog I want to see my form, not the confirmation page.
West415 wrote:
>
> Hi,
>
> I am using a a jquery dialog box and it works fine for the most part
> except I'm running into one problem. So here is the flow.
>
> 1. User clicks a hyperlink and dialog is opened with a form
> 2. User submits the form in the dialog via ajax and in theajax callback
> the contents of the form are replaced with a thank you/confirmation
> message.
> 3. User clicks close on the dialog box
>
> Now, next time I click that link, it displays the thank you/confirmation
> box and not the form. Whenever the link is clicked it should always
> display the form, but it's like it's caching it and not calling function
> that loads the form.
>
> Any idea?
>
> West415
>
--
View this message in context:
http://old.nabble.com/Jquery-Dialog-and-Cache--tp27497598s27240p27510709.html
Sent from the jQuery UI Discussion mailing list archive at Nabble.com.
--
You received this message because you are subscribed to the Google Groups
"jQuery UI" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/jquery-ui?hl=en.