I am studying the Jquery modal-form example :
http://jqueryui.com/dialog/#modal-form
Is it possible to open a modal window from file A and displaying an existing file B on the modal window ?
Thank's in advance
I am studying the Jquery modal-form example :
http://jqueryui.com/dialog/#modal-form
Is it possible to open a modal window from file A and displaying an existing file B on the modal window ?
Thank's in advance
You could do something like this:
HTML:
jQuery:
If fileb.html is a full web page, you may want to append an iframe to
$("#dialog")
instead. Additionally, you could do the append or the load in the open event of the dialog.Alternate jQuery that uses the open event:
Isn't there a way to target a filename that has been defined in the clickable link or button.. instead of having to define it in the scripting itself? for example... When a link has something like :
The code to trigger the modal :
I don't know which attribute could be used for it, but this would make the script open to use in every link or button that needs to load a modal box
HTML
jQuery