49 users online (1 members and 48 guests)  


  Results 1 to 5 of 5

Related

  1. frame help    Forum: HTML Forum
    Replies: 4
  2. Frame Help    Forum: HTML Forum
    Replies: 7
  3. frame help!    Forum: HTML Forum
    Replies: 1
  4. Replies: 1
  1. #1
    mordred's Avatar
    New User

    Status
    Offline
    Join Date
    Oct 2004
    Posts
    3

    autoload link in frame

    Hi fella's,

    Ive been looking for this thing a whole day, but i cant find it anywhere.
    Is there a possibility to automatically load a page into a frame??
    Im NOT talking about loading it in the mainpage.
    My page conists out of 2 iframes. When u press a link, another page opens into the first iframe. But together with this i wanna AUTO load information into the second iframe. I cannot use 'load 2 pages with 1link' as my first iframe is called uppon with a program.
    I can show info on the second iframe when i use a link, but i want it to got auto............

    any ideas???
    it would help me out a LOT

    thx
    -Mordred-

  2. #2
    dlongnecker's Avatar
    Tired Student...(Z_z)

    Status
    Offline
    Join Date
    Aug 2004
    Location
    Wichita, KS
    Posts
    86
    Hmm, do you have an example (or pseudo code) of what you're trying to do... or your existing code or site as an example to go off of?

    You say auto, but what is generating the page change on the IFRAME? A user's action with something? If it's strictly time-based, you could use ASP or JavaScript and place a wait/timer then have it open in the IFRAME. If it's based off a user's action, then you could create an ASP or JavaScript that, in a sense, creates a function.

    Pseudo code:

    *user clicks button to change IFRAME*

    function changeButton
    if button = pushed
    iframe1.location = http://www.google.com
    iframe2.location = http://www.yahoo.com
    else
    iframe1.location = http://www.google.com
    iframe2.location =
    endif

    On the right track or no? Examples or your site would be a great help!

    -David

  3. #3
    mordred's Avatar
    New User

    Status
    Offline
    Join Date
    Oct 2004
    Posts
    3
    Hmm im very sorry but i dont know the java script language so well...

    iframe1.location > i guess u replace iframe1 with the frames name?? and the location stays location...

    But this script STILL asks for a users action!! I want to load content in an iframe automatically, wihtout an users interference.

    Like for example, u load a page, the 2 iframes show content. Than after a while 1 iframe changes content WITHOUT the user actions........does this make it clearer now?

    On my main page i got different buttons, when u press a button, stuff loads in 1 iframe. Now i want THAT iframe to load stuff automatically into my second iframe............
    (without a click from a link from user)

    I hoepe this helps.........

  4. #4
    mordred's Avatar
    New User

    Status
    Offline
    Join Date
    Oct 2004
    Posts
    3
    Yippiekayee, i found it :

    <body onload="parent.FRAMENAME.location='http://whatever u wanna load.htm';">


  5. #5
    dlongnecker's Avatar
    Tired Student...(Z_z)

    Status
    Offline
    Join Date
    Aug 2004
    Location
    Wichita, KS
    Posts
    86
    Ahh, glad you found it! (^_^)

    -David



Tags for this Thread