Zen Cart Logo
Forums / General Questions / Creating a jump menu for outside links

Creating a jump menu for outside links

Locked

Views: 1,673

Results 1 to 10 of 10
This thread is locked. New replies are disabled.
25 Apr 2010, 6:44 PM
#1
delia avatar

delia

Totally Zenned

Join Date:
May 2006
Location:
Gardiner, Maine
Posts:
2,383
Plugin Contributions:
7

Creating a jump menu for outside links

I want to be able to have the select box send to a full url (to use for setting an affilate cookie). So I've discovered that that has the cart send me to http://domain.com/?jumpmenu=http%3A%2F%2Flaxuniverse.com%2Fjamaffilates%2 etc where jumpmenu is the name in the select box. So I found out how the select boxes work in zen!

But once I remove the name from the select, the screen refreshes to the default index page when the url is actually on another domain. Kind of like it's not finding anything but I can't be sure. Since the screen refreshes and it acts like a jump menu, something seems to be working.

I can't find any instructions or information on this anywhere. Surely I'm not the first one to do this (or want to do this)!

25 Apr 2010, 11:15 PM
#2
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: Creating a jump menu for outside links

Try a normal html href....
Don't know what a "jump menu" is??

26 Apr 2010, 10:43 AM
#3
delia avatar

delia

Totally Zenned

Join Date:
May 2006
Location:
Gardiner, Maine
Posts:
2,383
Plugin Contributions:
7

Re: Creating a jump menu for outside links

Jump menu is a select box that will once you choose an item will send the user to a specific url either on choosing it or when you hit the submit button.

No room for the links in a sidebox.

26 Apr 2010, 3:04 PM
#4
bappyho avatar

bappyho

New Zenner

Join Date:
Apr 2010
Posts:
1
Plugin Contributions:
0

Re: Creating a jump menu for outside links

Hello every body. Please help me. I want to Creating a jump menu for outside links. I think it will be more acquire more popularity with all. So please help for this.

Geo Metro Parts

27 Apr 2010, 11:23 AM
#6
delia avatar

delia

Totally Zenned

Join Date:
May 2006
Location:
Gardiner, Maine
Posts:
2,383
Plugin Contributions:
7

Re: Creating a jump menu for outside links

The links manager uses the same conventions as zen cart - sends you to another page. The exterior links mentioned in the second is for the links page itself, not the sidebox. We've decided to go another way in order to get this done. But This is still a question I would like answered.

Thanks!

27 Apr 2010, 12:19 PM
#7
website_rob avatar

website_rob

Inactive

Join Date:
Oct 2006
Location:
Alberta, Canada
Posts:
4,572
Plugin Contributions:
0

Re: Creating a jump menu for outside links

Here is the code for the Drop down Jump Box using JS.

With a GO Button

<form name="Jump" action=""> <select name="Menu"> <option value="">Your Choices</option> <option value="http://offsite1.com/">link 1</option> <option value="http://offsite2.com/">link 2</option> </select> <input type="button" onClick="location=document.Jump.Menu.options[document.Jump.Menu.selectedIndex].value;" value="GO"> </form>

Immediate Action

<form name="Jump" action=""> <select name="Menu" onchange="location=document.Jump.Menu.options[document.Jump.Menu.selectedIndex].value;" value="GO"> <option value="">Your Choices</option> <option value="http://offsite1.com/">link 1</option> <option value="http://offsite2.com/">link 2</option> </select> </form>

How you incorporate into a Sidebox I will leave up to you. :wink:

27 Apr 2010, 12:20 PM
#8
delia avatar

delia

Totally Zenned

Join Date:
May 2006
Location:
Gardiner, Maine
Posts:
2,383
Plugin Contributions:
7

Re: Creating a jump menu for outside links

Have you used this in zen cart?

27 Apr 2010, 12:22 PM
#9
website_rob avatar

website_rob

Inactive

Join Date:
Oct 2006
Location:
Alberta, Canada
Posts:
4,572
Plugin Contributions:
0

Re: Creating a jump menu for outside links

Nope, but it don't matter. It is basic JS and will work anywhere you put it.