I’m having an interesting problem with an assignment for my class, we’re supposed to have a jQuery-UI Modal Dialog box appear when the user clicks on a Google Map.
In my first example I have the jQuery-UI Modal Dialog box working just fine on the same page as the map.
http://ymartino.userworld.com/map-practice3a.html
However in my second example when I try to integrate it into the map itself the Modal div appears but Dialog box does not.
http://ymartino.userworld.com/map-practice3b.html
Edit
I suspect the issue is that something may simply be not in the proper order.
Here’s an example to show how it’s done.
I’ve kept some of the elements of your attempt (like
onload="initialize()"which I would be inclined to replace with$.ready()) for ease of understanding. I’ve also stripped out some functionality that you’ll likely need for your assignment, but that should be easy to restore if you understand your code.Hopefully you can grok what’s going on and then apply your understanding to your assignment. Good luck!