Thread: autoload link in frame
Results 1 to 5 of 5
Related
-
frame help Forum: HTML Forum
Replies: 4 -
Frame Help Forum: HTML Forum
Replies: 7 -
frame help! Forum: HTML Forum
Replies: 1 -
Frame Help, Form completes in a different frame Forum: HTML Forum
Replies: 1
-
10-04-2004, 05:42 PM #1
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-
-
10-04-2004, 10:48 PM #2
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
-
10-05-2004, 02:53 AM #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.........
-
10-05-2004, 06:08 AM #4
Yippiekayee, i found it :
<body onload="parent.FRAMENAME.location='http://whatever u wanna load.htm';">
-
10-05-2004, 08:03 AM #5
Ahh, glad you found it! (^_^)
-David