jquery opens a dialog on page refresh

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

Question by:newbieweb
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
LVL 15

Accepted Solution

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.

Author Closing Comment

ID: 36601116

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Calculating percentage 2 49
Keyup listener getting fired on initial page load 1 53
Pass a js value to an html form 5 43
Submitting form with no refresh at the end 2 32
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 …
This article discusses how to implement server side field validation and display customized error messages to the client.
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…

710 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