Results 1 to 3 of 3

Thread: How to pass parameters from VBscript?

  1. #1

    Thread Starter
    Addicted Member wernerh's Avatar
    Join Date
    Sep 2000
    Posts
    170

    Question

    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!

  2. #2
    New Member
    Join Date
    Feb 2001
    Location
    Marbella, Costa Del Sol, Spain
    Posts
    3

    Talking 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?
    Damn.. I miss LA...

  3. #3
    Guest

    <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
  •  



Click Here to Expand Forum to Full Width