Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Frames and script 1

Status
Not open for further replies.

Remou

Technical User
Sep 30, 2002
13,030
BE
Hi
I am trying to teach myself some scripting and stuff and can't seem to get the hang of frames. I have a page (asp) containing the following:

<SELECT NAME=&quot;NotSup&quot; onchange=&quot;NotSupChange()&quot; SIZE=&quot;1&quot;>
<OPTION VALUE=&quot;0&quot; SELECTED>Not Supplied
<%
for i=1 to 12
response.write &quot;<Option Value ='&quot; & i & &quot;'>&quot; & montharray(i)
next
%>
</SELECT></p>

function NotSupChange()
vRef=&quot;Stats.asp?MonthNo=&quot;
vRef=vRef & NotSup.Value
location.href(vRef)
end function

Which will load the page I want, but not in the frame I want.
What should I do? Please don't say scrap the frame, even if you feel like it :eek:).
Thanks
Remou
 
try something like this :
Code:
window.top.frames(&quot;myFrameName&quot;).location.href=vRef
Water is not bad as long as it stays out human body ;-)
 
You are a truly wonderful person. I spent hours and was going nuts [thumbsup2].
 
you're welcome, thanx for the star.

... by the way, you're right : I'm a &quot;truly wonderful person&quot; LOL LOL LOL Water is not bad as long as it stays out human body ;-)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top