Hi,
I’ve installed the Quick Jump Menu – Drop Down Menu Module which generates the following code:
[code]<form name=’Lnk’>
<select name=’GrpComp’ class=’inputbox’ style=’width:140px;height:18px;font-size:11px; padding-left:3px’
onchange=’javascript:location.href=document.Lnk.GrpComp.options[document.Lnk.GrpComp.selectedIndex](window.open(‘toolbar=no,location=no,status=no,menubar=no,scrollbars=yes,resizable=yes,width=780,height=550′)).value;’ >
<option>— Please Select —</option>
<option value=”http://localhost/mp/index.php?option=com_content&task=view&id=148&Itemid=98″ >Products
and Services</option>
<option value=”http://localhost/mp/index.php?option=com_content&task=view&id=51&Itemid=97″ >Latest
News and Events</option>
<option value=”http://localhost/mp/index.php?option=com_content&task=view&id=149&Itemid=96″ >Investor
Information</option>
<option value=”http://localhost/mp/index.php?option=com_content&task=view&id=153&Itemid=95″ >Customer
Support</option>
<option value=”http://localhost/mp/index.php?option=com_content&task=view&id=152&Itemid=94″ >Customer
Case Studies</option>
<option value=”http://localhost/mp/index.php?option=com_content&task=view&id=150&Itemid=93″ >Business
Partnership</option>
</select>
</form>
The php file contains the following:
[code] $mymenu_content =”<form name=’Lnk’><select name=’GrpComp’ class=’inputbox’ style=’width:140px;height:18px;font-size:11px; padding-left:3px’ onchange=’javascript:location.href=document.Lnk.GrpComp.options[document.Lnk.GrpComp.selectedIndex].value;’ > <option>— Please Select —</option>”;
I would like the form options to open in a new popup window however, the module overrides Joomla!’s ‘On Click, Open in:’ menu option. I know the following code needs to go somewhere but my JavaScript skills aren’t that hot.
[code]“javascript: window.open(‘http://localhost/mp/index.php?option=com_content&task=view&id=154&Itemid=92’, ”, ‘toolbar=no,location=no,status=no,menubar=no,scrollbars=yes,resizable=yes,width=780,height=550’); return false”
Every time I try it either does nothing or, I get a parse error. Can anybody help?