Results 1 to 4 of 4

Thread: iFrame & Variables

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Aug 2000
    Posts
    181

    iFrame & Variables

    In an ASP script that I am developing, I have the following HTML being implemented (outside ASP tags)

    Code:
    <iframe width="542" id="idContent" height="350"></iframe>
    and I also have a variable in ASP called 'strContent'.
    My problem is that I want the contents of this variable to be displayed inside the iFrame when it loads
    (similar to the 'value' object in text input types).

    Does anyone have any ideas how I can do this because I've tried using VALUE, SRC and simply putting it betting the opening and closing tags to no avail.

    Thanks,

    Adam

  2. #2
    Fanatic Member chrismitchell's Avatar
    Join Date
    Jan 2001
    Location
    With Hobbes in New Zealand
    Posts
    568
    iFrames are very complicated, I will read my documentation on what you are trying to do.. as I have done that before.

  3. #3

    Thread Starter
    Addicted Member
    Join Date
    Aug 2000
    Posts
    181
    cool cheers

  4. #4
    PowerPoster
    Join Date
    Nov 2001
    Location
    Trying to reach and stay in the cloud
    Posts
    2,089

    hi

    I guess this shd work:
    Code:
    <html>
    '
    '
    '
    '
    <iframe height=200 width=200 src="myfile.asp?p=123"></iframe>
    'you can subs. 123 with any value using asp.
    'the rest of the page
    
    'then in myfile.asp
    
    just use it normally...
    myvar = request.querystring("p")
    hope this helps...

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