Re: Passing variables between HTML pages using VBScript
- From: "Michael Harris \(MVP\)" <mikhar at mvps dot org>
- Date: Wed, 18 May 2005 18:01:43 -0700
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§=2
> page2.html?id=9§=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§=2
window.location.search ==> "?id=3§=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.
.
- References:
- Passing variables between HTML pages using VBScript
- From: Vester
- Passing variables between HTML pages using VBScript
- Prev by Date: Re: Can you help me run this command?
- Next by Date: Re: Visual Debugger to debug a VBSCRIPT ?
- Previous by thread: Re: Passing variables between HTML pages using VBScript
- Next by thread: Problem with XCACLS.VBS
- Index(es):
Relevant Pages
|