Solved

jquery opens a dialog on page refresh

Posted on 2011-09-26
2
299 Views
Last Modified: 2012-05-12
I calll a function to set a list item inside the open: event for a dialog. But that dialog is getting opened on page refresh.

I have Success, Warning and Failure dialogs which my code successfully calls when needed. But they are also called on page initialization. Why?

I do have a div tag associated with this dialog, which includes empty list items. The open: event of the dialog sets the events.

How can I change this so the dialog will not initialize itself on page refresh?

Thanks.
0
Comment
Question by:newbieweb
2 Comments
 
LVL 15

Accepted Solution

by:
SRigney earned 500 total points
ID: 36600928
Without seeing the code I can just guess.

But my guess is that you can include autoOpen: false in the parameter list and they will initialize but not open when the page is refreshed.

If they are only supposed to be initialized based on an event I'd guess you have a coding error.
0
 

Author Closing Comment

by:newbieweb
ID: 36601116
Thanks!
0

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Introduction A frequently asked question goes something like this:  "I am running a long process in the background and I want to alert my client when the process finishes.  How can I send a message to the browser?"  Unfortunately, the short answer …
I found this questions asking how to do this in many different forums, so I will describe here how to implement a solution using PHP and AJAX. The logical flow for the problem should be: Write an event handler for the first drop down box to get …
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)
The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…

791 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question