PDA

View Full Version : Resolved How to make URLs work in Chain menu



samlivingston129
10-13-2011, 03:27 AM
Hi there,

I have downloaded the zip file and set it up, links are not working. Same thing with this page:

http://www.dynamicdrive.com/dynamicindex1/chainedmenu/index.htm

How can I configure this to actually "go" the URL in question when clicking on GO

I'm attaching screen capture:



Thanks

jscheuer1
10-13-2011, 03:55 AM
In chainedmenu.js near the beginning, edit the highlighted value as shown:


// Chained Menu

// Copyright Xin Yang 2004
// Web Site: www.yxScripts.com
// EMail: m_yangxin@hotmail.com
// Last Updated: 2004-08-23

// This script is free as long as the copyright notice remains intact.

var _disable_empty_list=false;
var _hide_empty_list=false;

// ------

///// DynamicDrive.com added function/////////////

var onclickaction="noalert"

function goListGroup(){
for (i=arguments.length-1;i>=0; i--){
if (arguments[i].selectedIndex!=-1){
var selectedOptionvalue=arguments[i].options[arg . . .

samlivingston129
10-13-2011, 05:44 AM
Hi John,

thanks for the lightning fast response!

However I did that and still not working,

here is the live URL where I am testing so you can look at the code:

http://www.vincentmoving.com/chain/chainedmenu.html

samlivingston129
10-13-2011, 05:49 AM
Hi John,

Actually I figured it out, another line of code needs changing from:


var onclickaction="alert"

to


var onclickaction="goto"

in the config.js

Cheers!