View Single Post
Old 01-16-2013, 04:28 PM   PM User | #1
Webbot
New Coder

 
Join Date: Dec 2012
Posts: 24
Thanks: 4
Thanked 0 Times in 0 Posts
Webbot is an unknown quantity at this point
Load content to popup

I am using this script to view some popups in a site:

http://codeissue.com/articles/a04daf...ascript-jquery

The script make the popup show up (a hidden div in the page) when click on a button/text like this example:

Code:
<a href="#" onclick="ShowModalPopup('name_of_div_in_popup_box'); return false;">Text</a>
The "problem" with this is that the div thats containing the content (#name_of_div_in_popup_box) to the checkbox always must be in the page, so if I have 10 pages that will have this popup all 10 pages must contain 10 exacly same divs, and if make changes in the popup I must change the div in all 10 different pages.

So I wounder if its possible to load in the content to this popup from a external page in the same website at click to open the popup.

Is this maybe possible with jquery load()?

Thanks.
Webbot is offline   Reply With Quote