#1
  1. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jun 2003
    Posts
    4
    Rep Power
    0

    Red face How to pass variables from javascript on one html page to another asp page?


    I'm trying to pass more than one variable from javascript to another asp page. I used Array to transfer multiple vars into one var (named "words"). Here is the relevant code I tried:

    <SCRIPT language=Javascript>
    <!--
    function query()
    {
    var words=" ";
    for (i=0; i<=10; i++)
    {
    {if (document.pref_form.elements[i].checked)
    words = words + " + AND + " + prefArray[i];}
    }

    How can I pass the var "words" to another asp page (say, search.asp)? In that search page, I want to use the received words to conduct a key word search. Please help me!!! Thax a lot!
  2. #2
  3. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jan 2003
    Posts
    6
    Rep Power
    0
    You'll probably need to look into some how getting the varible over via the POST method.... ASP isn't going to help you because All ASP stuff happens on the server before the page reaches the client.. and then all JavaScript stuff is done on the client side... sorry i can't really help

IMN logo majestic logo threadwatch logo seochat tools logo