Reputation: 175
I have a legacy web page made with frames (yah, I know). One frame (letFrame) is trying to update another frame (rightFrame) with the following anchor:
<a href="foo.asp?myVar=BAR" target=rightFrame>
foo.asp is already loaded in rightFrame and looks something like this
<%@ Language=VBScript %>
<HTML>
<HEAD>
<META NAME="MYNAME" Content="Microsoft Visual Studio 6.0">
</HEAD>
<BODY>
<form target="_self">
<SCRIPT LANGUAGE=vbscript>
Option Explicit
dim myURL
myURL = parent.location.href
<...blahblablah...>
When I print out the value of myURL
or parent.location.href
I find that the parameter portion ?myVar=BAR
has already been stripped off. It just reads foo.asp
.
Is there some setting in IIS that would be doing this; or is there another way to get the parameter portion?
Upvotes: 1
Views: 1067
Reputation: 8170
Looks like you're grabbing the url of the parent. Try window.location.href.
Also.. In ASP, you should be using.. Request.Querystring("param").
Upvotes: 4