Capturing the whole URL

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

  1. #1

    Default Capturing the whole URL

    I am working with a site where I want a user to be able to select whether they
    are viewing a high or low bandwidth version of the website. I would like to
    build the pages so that when the user chooses to change the bandwidth, they are
    taken to a page with a form on it where they make the change, and when the form
    is submitted, they are returned to the page they were last on.

    In order to do this, I need to capture the url of the page they are on when
    they choose to change the bandwidth in order to send them back to it later.
    Does anyone have any ideas about how to do this? I have been nosing around the
    internet and can find plenty of information about how to pass variables in the
    url, but not about how to capture the entire url itself. I am working in DW MX
    and using ASP.

    Thanks!

    steel_quill Guest

  2. Similar Questions and Discussions

    1. Capturing IP Address
      Hi, How can we capture users' IP Address with ColdFusion? Onnuri
    2. Capturing streaming SWF.
      Hi, I'm looking for a way of getting files from www.singtotheworld.com STORED on PC. For those who don't know about it - it's a STREAMING...
    3. capturing SWFs
      Hi all - am hoping someone might be able to help - I am hoping to be able to capture the flash files from sites I visit and build a database of them...
    4. Capturing FCP on AIX
      Hi. I was wondering if anyone knows if it is possible to capture FCP (SCSI over fiber channel) using ethereal, tcpdump, or some other tool on...
    5. capturing reloads
      anyone know how to catch if someone has reloaded a page?
  3. #2

    Default Re: Capturing the whole URL

    I always wondered what this line that DW is inserting (in Javascript) does:

    var MM_editAction = Request.ServerVariables("SCRIPT_NAME");

    Isn't that turning out the url of the current page ?

    Try it out. HTH

    Bernard

    steel_quill wrote:
    > I am working with a site where I want a user to be able to select whether they
    > are viewing a high or low bandwidth version of the website. I would like to
    > build the pages so that when the user chooses to change the bandwidth, they are
    > taken to a page with a form on it where they make the change, and when the form
    > is submitted, they are returned to the page they were last on.
    >
    > In order to do this, I need to capture the url of the page they are on when
    > they choose to change the bandwidth in order to send them back to it later.
    > Does anyone have any ideas about how to do this? I have been nosing around the
    > internet and can find plenty of information about how to pass variables in the
    > url, but not about how to capture the entire url itself. I am working in DW MX
    > and using ASP.
    >
    > Thanks!
    >
    bthouin Guest

  4. #3

    Default Re: Capturing the whole URL

    steel_quill wrote:
    > I am working with a site where I want a user to be able to select
    > whether they are viewing a high or low bandwidth version of the
    > website. I would like to build the pages so that when the user
    > chooses to change the bandwidth, they are taken to a page with a form
    > on it where they make the change, and when the form is submitted,
    > they are returned to the page they were last on.
    >
    > In order to do this, I need to capture the url of the page they are
    > on when they choose to change the bandwidth in order to send them
    > back to it later. Does anyone have any ideas about how to do this? I
    > have been nosing around the internet and can find plenty of
    > information about how to pass variables in the url, but not about how
    > to capture the entire url itself. I am working in DW MX and using
    > ASP.
    >
    > Thanks!
    Dim strPage 'the current page, i.e., /clients/default.asp
    Dim strQS 'the querystring (if any)
    Dim strURL 'the current page + any URL params
    With Request
    strPage = .ServerVariables("SCRIPT_NAME")
    strQS = .ServerVariables("QUERY_STRING")
    End With
    strURL = strPage & "?" & strQS


    --
    kindler chase
    [url]http://www.ncubed.com[/url]
    Home of SuperInvoice's Fortress of Solitude

    [url]news://news.ncubed.com/support[/url]
    n3 Support Group


    Kindler Chase 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