Milonic provide full featured pull down web menus for some of the worlds largest companies
click here to see what it can do for you

Download Milonic DHTML Menu
Buy Milonic DHTML Menu

Back To Start Of Archive
Taken From The Forum: Help & Support for DHTML Menu Version 5+
Forum Topic: Click to view post
Last Updated: Saturday July 14 2012 - 06:07:07

Moving data between pages

Poster: im-press
Dated: Friday October 3 2003 - 17:35:23 BST


I am using the v5 menu system and I want to pass a description from a product page to a quote page so the user does not have to retype the product description. I have looked at options using "cgi" and "asp" but I have seen an example using "js" with "var=url" in the first page setting the variable with the required data and then using "" in the second page to pick up the data.

Code Goes like this;
Sending Program:
var url = ''
<A HREF="javascript:NewWindow('url','Quote','450','450','no')">

Receiving Program:
<% descript=Request.QueryString( "subject") %>
<p>Thanks for your interest in <B><%=descript%></B>.<BR>

I have tried different variations but so far have failed, my "js" is not good so does anyone know if (a) is this possible with the menu system or (b) is there a better way?


Poster: Hergio
Dated: Saturday October 4 2003 - 21:05:39 BST

The example you used uses ASP, which you said you are not using. Try this function in the receiving page. Say you have a link in the menu, page.html?something1=value1&something2=value2

Put this in the HEAD of your document
function getKeys()
   var keys = new Object();
   var queryString =;
   var keyPairs = queryString.split("&");
   for(var i = 0; i < keyPairs.length; i++)
      var position = keyPairs[i].indexOf('=');
        if (position == -1) continue;
       var keyname = keyPairs[i].substring(0, position );
       var keyvalue = keyPairs[i].substring(position + 1);
       keys[keyname] = unescape(keyvalue);
   return keys;
  } </SCRIPT>

In the receiving page, to get the value1 that was set to something1, and you want to display value1, you'd say...
Thanks for your interest in <span id="interestedItem"></span>
queryKeys = getKeys();
document.all["interestedItem"].innerHTML = queryKeys["something1"];
Good luck.

Poster: im-press
Dated: Sunday October 5 2003 - 19:12:06 BST


Thanks for this, you just stopped me going premeturely grey.

Once again thanks for this.


Poster: Hergio
Dated: Monday October 6 2003 - 2:45:46 BST

Did it work? Let me know how it goes? Hey, you're very welcome! :D