|
-
Feb 13th, 2001, 12:55 AM
#1
Thread Starter
Addicted Member
How can I pass parameters to reload a IFRAME from within vbscript:
<Script=vbs>
FrameName.document.location.reload("Mypage.asp?MyVar=' & text1.value & '&Myvar2=' &text2.value")
</Script>
It doesnt give me any syntax errors, but it doesnt seen to be receiving any of the values!
Please help!
-
Feb 13th, 2001, 05:23 AM
#2
New Member
Try this...
Hey amigo!
I don't think that will work. I had the same problem a few days back, but using JavaScript. But, I found a way around it!
Try creating a form, and then instead of reloading the page, simply assign the values to hidden fields in the form, and send the form using GET (assign to q-string).
Hope this help?
-
Feb 13th, 2001, 08:48 PM
#3
<IFRaMe>
I did it like this :
<form name =YourName>
<iframe src="Mypage.asp?MyVar=' & text1.value '&Myvar2=' &text2.value">
</iframe>
</form>
Or instead you can do in javascript:
YourIFRAME.Navigate("Mypage.asp?MyVar=' & text1.value ")
In this case your asp page shows up inside of frame.
But don't forget , NN does not know IFRAME !
Another tricky part, is to send values from Mypage.asp
to parent page, you have to use something like :
When child form loads, do it in body onload:
parent.form.element.value=iframeForm.element.value,
It will not work other way around!
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|