patelekta
05-25-2011, 03:13 PM
1) Script Title: Pop-it menu
2) Script URL (on DD): http://www.dynamicdrive.com/dynamicindex1/popit.htm
3) Describe problem:I have a java script function which allow me to open a popup window as given below,
function openPopup(url, name, w, h) {
var winl = (screen.width - w) / 2;
var wint = (screen.height - h) / 2;
winprops = 'height='+h+',width='+w+',top='+wint+',left='+winl;
win = window.open(mypage, myname, winprops)
}
I need to call this function from a link on pop-it menu, my code to call the java script function from the link on pop-it menu as given below
$linkset[0] .="<a href=www.google.com> Show Linked Companies </a>";
$linkset[0] .="<a href=javascript:openPopup('company.php?Action=ShowLinkedCompany&companyId={$companyId}', 'LinkedCompany', 900, 600);> Show Linked Companies </a>";
But with this type of link pop-it menu is not being generated.
Is their any way I can do this?
2) Script URL (on DD): http://www.dynamicdrive.com/dynamicindex1/popit.htm
3) Describe problem:I have a java script function which allow me to open a popup window as given below,
function openPopup(url, name, w, h) {
var winl = (screen.width - w) / 2;
var wint = (screen.height - h) / 2;
winprops = 'height='+h+',width='+w+',top='+wint+',left='+winl;
win = window.open(mypage, myname, winprops)
}
I need to call this function from a link on pop-it menu, my code to call the java script function from the link on pop-it menu as given below
$linkset[0] .="<a href=www.google.com> Show Linked Companies </a>";
$linkset[0] .="<a href=javascript:openPopup('company.php?Action=ShowLinkedCompany&companyId={$companyId}', 'LinkedCompany', 900, 600);> Show Linked Companies </a>";
But with this type of link pop-it menu is not being generated.
Is their any way I can do this?