Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 5 of 5
  1. #1
    New to the CF scene
    Join Date
    Apr 2005
    Posts
    7
    Thanks
    0
    Thanked 0 Times in 0 Posts

    javascript question involving a variable

    Hey all,

    I have changed this question because the code I pasted before was not correct. I have also pasted this problem at another forum in a desperate attempt to find a solution so if anyone else comes accross this twice I am sorry. Any here is what I mean

    I need the result of this drop down menu
    www.aboveproductions.com.au/chained.html

    to fill in a variable field on this button
    http://www.aboveproductions.com.au/add.html

    the .js files for the two files can be found here
    http://www.aboveproductions.com.au/jsfoundhere.htm

    Cheers.

    Echo
    Last edited by Echostorm; 04-10-2005 at 12:51 PM.

  • #2
    New to the CF scene
    Join Date
    Apr 2005
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Thumbs up

    Your code is incomplete.

    Perhaps if you post the entire code, I could help.

    Also do not avoid using quotes in html code. It's a bad practice.

    i.e. <input type="text">


  • #3
    New to the CF scene
    Join Date
    Apr 2005
    Posts
    7
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Thanks for the tip .

    Is this a much clearer example? I have reposted it above
    Last edited by Echostorm; 04-11-2005 at 12:47 AM.

  • #4
    Supreme Master coder! glenngv's Avatar
    Join Date
    Jun 2002
    Location
    Philippines
    Posts
    11,068
    Thanks
    0
    Thanked 256 Times in 252 Posts
    Code:
    <form action="add.html" method="get">
    <select name="category" style="width:380px"></select>
    <select name="site" style="width:380px"></select>
    <input type="submit" value="Add" />
    </form>
    When the form is submitted, the field value pairs are appended to the URL as querystring. If this is a javascript shopping cart and you are not using any server-side language, use this javascript to retrieve the URL querystring parameters.
    Glenn
    ____________________________________

    My Blog
    Tower of Hanoi Android app (FREE!)
    Tower of Hanoi Leaderboard
    Samegame Facebook App
    vBulletin Plugins
    ____________________________________

  • #5
    New to the CF scene
    Join Date
    Apr 2005
    Posts
    7
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Is it possible to have the generated and interpreted form on the same page? i.e. combining add.html with chained.html. so they are on the same.html page?


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •