Re: Passing variables between HTML pages using VBScript

Tech-Archive recommends: Fix windows errors by optimizing your registry



Vester wrote:
> I am having a few problems at the moment with passing variables
> through URLs between two html files without using an ASP. Currently,
> I have several hyperlinks on page1.html such as:
> page2.html?id=3&sect=2
> page2.html?id=9&sect=3
>
> Is there anyway on page2.html in Vbscript that i can retrive the
> values for the 'id' and 'sect' object specified in the URLs?
> At the moment I am currently trying to output the objects and values
> to the screen but having no luck with it at all. Does anybody have
> any ideas?


search Property (A, AREA, location) (Internet Explorer - DHTML)
http://msdn.microsoft.com/workshop/author/dhtml/reference/properties/search.asp

Given: page2.html?id=3&sect=2

window.location.search ==> "?id=3&sect=2"

so you need to strip the leading "?" and do your own parsing of the rest
using split.

--
Michael Harris
Microsoft MVP Scripting
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Please ask follow-up questions via the original newsgroup thread.



.



Relevant Pages

  • Re: Passing variables between HTML pages using VBScript
    ... >I am having a few problems at the moment with passing variables through URLs ... > between two html files without using an ASP. ... If you want to use server side code to process the url part after the question ...
    (microsoft.public.scripting.vbscript)
  • Passing variables between HTML pages using VBScript
    ... I am having a few problems at the moment with passing variables through URLs ... between two html files without using an ASP. ... hyperlinks on page1.html such as: ...
    (microsoft.public.scripting.vbscript)
  • Is there any way to add html items before generating brio report?
    ... I am using Brio Intelligence 6.6.4 to generate html files. ... wondering if Brio can generate file as .asp. ... I grab the html file from Brio, and edit it in Frontpage and save as ...
    (comp.databases.olap)
  • Re: ASP and webpage/site milling
    ... >generate html files using file system object. ... I have a database that is starting to grow ... >I would leave the main search page as a dynamic ASP page. ... with all the HTML code in it then write that string to a file using ...
    (microsoft.public.inetserver.asp.general)
  • Re: Creating a default footer on a page
    ... Now i will hear you say use php, or asp.. ... I have a similar issue and if you rule out php, asp, ssi, js etc then ... but the basic solution remains the same - put it in the html files and be ...
    (alt.html)