Closed Thread Icon

Preserved Topic: is it possible to have more than 1 iframe loading html files inside them? Pages that link to <a href="https://ozoneasylum.com/backlink?for=18401" title="Pages that link to Preserved Topic: is it possible to have more than 1 iframe loading html files inside them?" rel="nofollow" >Preserved Topic: is it possible to have more than 1 iframe loading html files inside them?\

 
Author Thread
Ultra
Nervous Wreck (II) Inmate

From:
Insane since: Jan 2002

posted posted 04-20-2002 04:55

I'm using the sebuffer script from stilleye.com
i need to have multiple iframe loading different pages but i've been having some problems
here is the link to the original script http://www.stilleye.com/exp/seBuffer/index.html

Thx once again

Ultra

::UltrA::

bitdamaged
Maniac (V) Mad Scientist

From: 100101010011 <-- right about here
Insane since: Mar 2000

posted posted 04-20-2002 05:02

hmm.... Can't see much there (didn't look at the js though)

need more info, what is the problem you are having? got a sample URL?



.:[ The Tao of Steve ]:.
Be Desireless
Be Excellent
Be Gone
...................................

Ultra
Nervous Wreck (II) Inmate

From:
Insane since: Jan 2002

posted posted 04-20-2002 05:09

no i don't have a sample url
what i'm trying to do is having two o more iframe instead of one like in the example page at stilleye.com


so on the same page i can have them both and each one loading different html pages

the problem is that the script uses an onload function and only one is working.....

sorry about my english hope you can understand what i'm trying to say

Ul

::UltrA::

Ultra
Nervous Wreck (II) Inmate

From:
Insane since: Jan 2002

posted posted 04-20-2002 05:56

i got most of it working now
here is a demo of what i'm trying to get working http://66.78.3.44/liquid/seBuffer/demo.html

both i frame are now loading pages

the only problem that i have is how to get the initial page to load in both iframes.....
so far is working only in one.....

<script type="text/javascript">
function init()
{
setBuffer('loadTo','page0.html')
}
onload = init
</script>


any help is very very appriaciate !

Ultra

::UltrA::

bitdamaged
Maniac (V) Mad Scientist

From: 100101010011 <-- right about here
Insane since: Mar 2000

posted posted 04-20-2002 06:47

Hmm...

This script doesn't really do much but this isn't a big prob.

What you need to do is add an argument to the function to specify which frame to use.
In the JS change this:
function setBuffer(lyr,url)

to:
function setBuffer(targetframe,lyr,url)


Then change this:
parent.frames['seBufferBox'].location = url

to:
parent.frames[targetframe].location = url

Then all you really need to do is name your iframe's uniquely
so change the names in your html from:
name="seBufferBox"

to:
name="seBufferBox1"
and
name="seBufferBox2"

The big issue right now is probably that your two frames are named the same thing or not refrenced independantly. Anyway does this make sense? the issue is just changing the js to refrence the correct frame content.



.:[ The Tao of Steve ]:.
Be Desireless
Be Excellent
Be Gone
...................................

Ultra
Nervous Wreck (II) Inmate

From:
Insane since: Jan 2002

posted posted 04-20-2002 06:48

i'm going to try that thanx )

::UltrA::

Ultra
Nervous Wreck (II) Inmate

From:
Insane since: Jan 2002

posted posted 04-20-2002 06:56

nope no luck with that


::UltrA::

bitdamaged
Maniac (V) Mad Scientist

From: 100101010011 <-- right about here
Insane since: Mar 2000

posted posted 04-20-2002 07:08

np

Got a new sample?



.:[ The Tao of Steve ]:.
Be Desireless
Be Excellent
Be Gone
...................................

Ultra
Nervous Wreck (II) Inmate

From:
Insane since: Jan 2002

posted posted 04-20-2002 09:12

I finally got it to work !!!
the solution was very simple

i just added this

script type="text/javascript">
function init()
{
setBuffer('loadTo','page0.html');setBuffer1('loadTo1','page5.html');setBuffer2('loadTo2','page7.html')


}
onload = init
</script>


and now all the pages are loading perfectly ))))

::UltrA::

bitdamaged
Maniac (V) Mad Scientist

From: 100101010011 <-- right about here
Insane since: Mar 2000

posted posted 04-20-2002 22:46

Hokay,
I'm sure this would work. The only issue is that your probably not making the best use of your resources.

Presumably you know have 3 virtually identical scripts just pointing to different elements.
Ideally you'd want to use one function to do this but pass it the params you need.



.:[ The Tao of Steve ]:.
Be Desireless
Be Excellent
Be Gone
...................................

« BackwardsOnwards »

Show Forum Drop Down Menu