Solved

jquery opens a dialog on page refresh

Posted on 2011-09-26
2
282 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
Comment Utility
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
Comment Utility
Thanks!
0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Introduction Got endorsements from your clients?  Great!  There is almost nothing better than word-of-mouth advertising.  But how can you do that on the internet?  Sure you can make a page for endorsement quotations and list them all, but who is …
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 …
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…

772 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

14 Experts available now in Live!

Get 1:1 Help Now