The ajax tabs work perfectly well. It's pretty straightforward with that part. However, getting the ajax UI Dialog modal window to trigger off of a link has been un-succesful.
Any help in this would be appreciated.
The ajax tabs work perfectly well. It's pretty straightforward with that part. However, getting the ajax UI Dialog modal window to trigger off of a link has been un-succesful. Any help in this would be appreciated. |
|||
|
Nothing easier than that man. Try this one:
Note that you can't load remote from local, so you'll have to upload this to a server or whatever. Also note that you can't load from foreign domains, so you should replace href of the link to a document hosted on the same domain (and here's the workaround). Cheers |
|||||||||||||||||
|
To avoid adding extra
|
|||||||||||
|
//Properly Formatted
|
|||||
|
Neither of the first two answers worked for me with multiple elements that can open dialogs that point to different pages. This feels like the cleanest solution, only creates the dialog object once on load and then uses the events to open/close/display appropriately:
|
|||||||
|
Just an addition to nicktea's answer. This code loads the content of a remote page (without redirecting there), and also cleans up when closing it.
|
|||
|
|
|||||
|