/    Sign up×
Community /Pin to ProfileBookmark

Drop down menu problem…

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>[/code]

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>”;[/code]

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&amp;task=view&amp;id=154&amp;Itemid=92’, ”, ‘toolbar=no,location=no,status=no,menubar=no,scrollbars=yes,resizable=yes,width=780,height=550’); return false”[/code]

Every time I try it either does nothing or, I get a parse error. Can anybody help?

to post a comment
JavaScript

1 Comments(s)

Copy linkTweet thisAlerts:
@spitekJan 22.2008 — I have this same issue? Anyone find a solution yet?

Thanks!!
×

Success!

Help @stephen-wilson spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.18,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...