Querystrings in HTML/javascript

Ask a Question related to Dreamweaver AppDev, Design and Development.

  1. #1

    Default Querystrings in HTML/javascript

    Hi

    I am passing a querystring to a html page as I would to say an asp page, so

    [url]http://www.mysite.com/mypage.html?thepopup=page2.html[/url]

    I want to use the querystring to open up a particular pop up window
    (page2.html in the case above) but I don't know how to 'capure' the
    querystring on the page in javascript (the pop-up code is no problem)

    //psuedo pop up code

    varpopup = Querystring("thepopup")

    document.window.open = Querystring


    Thanks for any help

    James Brown


    James Brown Guest

  2. Similar Questions and Discussions

    1. Accessing swf or javascript in different html
      Hi, From my understanding, the swf instance can communicate with other swf instance through the LocalConnection class. Also, the flex application...
    2. HTML, XHTML, CSS, JAVASCRIPT
      :confused; With all the hoopla about HTML etc. What do you experts recommend (and Dreamweaver supports) as the best method of the day? HTML or XHTLM...
    3. Javascript to generate HTML
      I have 2 needs for my webstie that require javascript. I can edit and kind of read javascript, but not write it. Can you help me find, or write...
    4. Includes with querystrings
      I need to include 3 files that have grabbed database info using a parameter passed in their querystrings. I keep getting a 'file not found' error...
    5. query about querystrings
      I've been building an Intranet app; and have used hidden fields exclusively to pass one or two things from one page to another. However, now I...
  3. #2

    Default Re: Querystrings in HTML/javascript

    Have a look at this article, should help:

    [url]http://www.eggheadcafe.com/articles/20020107.asp[/url]


    --
    Gareth - TMM Dreamweaver
    [url]http://www.dreamweavermxsupport.com/[/url]
    [url]http://www.garethdp.com/[/url]

    PHP Login Suite V2 - 34 Server Behaviors to build a complete Login system.
    [url]http://www.phploginsuite.co.uk/[/url]

    Co-Author: Dreamweaver MX: Instant Troubleshooter - Apress
    Co-Author: Practical Intranet Development - Apress
    Co-Author: Dreamweaver MX: Advanced PHP Web Development - Apress
    Co-Author: Dreamweaver MX: PHP Web Development - Wrox


    gareth Guest

  4. #3

    Default Re: Querystrings in HTML/javascript

    Thanks Gareth, followed this article and got it working.

    Thanks for the pointer

    james..


    "James Brown" <tony@gamesexpress.co.uk> wrote in message
    news:d3uirc$3m3$1@forums.macromedia.com...
    > Hi
    >
    > I am passing a querystring to a html page as I would to say an asp page,
    > so
    >
    > [url]http://www.mysite.com/mypage.html?thepopup=page2.html[/url]
    >
    > I want to use the querystring to open up a particular pop up window
    > (page2.html in the case above) but I don't know how to 'capure' the
    > querystring on the page in javascript (the pop-up code is no problem)
    >
    > //psuedo pop up code
    >
    > varpopup = Querystring("thepopup")
    >
    > document.window.open = Querystring
    >
    >
    > Thanks for any help
    >
    > James Brown
    >

    James Brown Guest

Posting Permissions

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

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139