Quote:
Originally Posted by DanInMa
give this a shot
Code:
function MyCustomPopUp(element, content){
var CustomContent;
if (!content) {
ShowModalPopup(element)
} else {
CustomContent = content;
$(#"+element+").html(content);
ShowModalPopup(element)
}
}
onclick="MyCustomPopUp('name_of_div_in_popup_box');
onclick="MyCustomPopUp('name_of_div_in_popup_box',"MY CUSTOM CONTENT");
|
Thanks for your reply!
Newbie I am I dont really understand where to put the link to the content page, do you mean like this example?
Code:
function MyCustomPopUp(element, content){
var CustomContent;
if (!content) {
ShowModalPopup(element)
} else {
CustomContent = content;
$(#"+element+")content_page.html #content_div(content);
ShowModalPopup(element)
}
}
onclick="MyCustomPopUp('name_of_div_in_popup_box');
onclick="MyCustomPopUp('name_of_div_in_popup_box',"content_page.html #content_div");