Solved

jquery opens a dialog on page refresh

Posted on 2011-09-26
2
287 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

JavaScript can be used in a browser to change parts of a webpage dynamically. It begins with the following pattern: If condition W is true, do thing X to target Y after event Z. Below are some tips and tricks to help you get started with JavaScript …
This article discusses how to create an extensible mechanism for linked drop downs.
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…

864 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

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now