| View previous topic :: View next topic |
| Author |
Message |
bobobo
Joined: 07 Dec 2004 Posts: 7 Location: London
|
Posted: Tue Dec 07, 2004 10:43 am Post subject: iframe ?? |
|
|
I have a some problems with two scripts working together controlling the navigation of my layout.
The first script controls the hide/show layer div layer. http://www.popprophecy.co.uk/pop/iframe/
The second script controls the horizontal scrolling. http://www.popprophecy.co.uk/pop/iframe/see.html
The two scripts don't like working together so separated the div layers with an iframe.
The Horizontal scroll works fine on its own in http://www.popprophecy.co.uk/pop/iframe/see.html
Although when combined with a hide/show div sitting in an iframe it doesn't work
unless you click on the image.
Can anyone help me with this? |
|
| Back to top |
|
 |
|
|
ReFredzRate 1000+ Club

Joined: 20 Aug 2004 Posts: 2186 Location: Netherlands
|
Posted: Tue Dec 07, 2004 2:11 pm Post subject: Re: iframe ?? |
|
|
The HTML in your pages seem to be alright, unless I am looking over something. Maybe someone with JavaScript knowledge could take a look at it, because I don't have that
By the way, nice design!
*edit* Welcome to DevPPL!  |
|
| Back to top |
|
 |
bobobo
Joined: 07 Dec 2004 Posts: 7 Location: London
|
Posted: Tue Dec 07, 2004 2:16 pm Post subject: Re: iframe ?? |
|
|
Cheers
the hunt still continues. |
|
| Back to top |
|
 |
webmaster Site Admin

Joined: 17 Aug 2004 Posts: 3640 Location: Sweden
|
Posted: Tue Dec 07, 2004 2:41 pm Post subject: Re: iframe ?? |
|
|
I can't see any errors in your code. I took the source, copied it and just pasted it to another site, I changed the SRC of the iframe to the whole url and it works.
Its very unlikly that this could be the problem. But copy the source of:
http://www.devppl.com/other/test.htm
And upload it on your server, it could be your server that have some problems with the directories. (but thats very unlikly too). But try that and tell us how its going.
Welcome to DEVPPL bobobo  |
|
| Back to top |
|
 |
bobobo
Joined: 07 Dec 2004 Posts: 7 Location: London
|
Posted: Tue Dec 07, 2004 2:51 pm Post subject: Re: iframe ?? |
|
|
Thanks
but I did try that.
I think the hide/show javascript is casuing the problem.
If I take this out the scrolling works fine. When combined it don't work unless you click on the pic. |
|
| Back to top |
|
 |
webmaster Site Admin

Joined: 17 Aug 2004 Posts: 3640 Location: Sweden
|
|
| Back to top |
|
 |
bobobo
Joined: 07 Dec 2004 Posts: 7 Location: London
|
Posted: Tue Dec 07, 2004 5:13 pm Post subject: Re: iframe ?? |
|
|
No I don't think so.
I'm not that good with javascript -- don't suppose you know anyone  |
|
| Back to top |
|
 |
webmaster Site Admin

Joined: 17 Aug 2004 Posts: 3640 Location: Sweden
|
Posted: Tue Dec 07, 2004 9:12 pm Post subject: Re: iframe ?? |
|
|
| Im not good either, does we have any good javascripter here that can help bobobo ? |
|
| Back to top |
|
 |
techyashish
Joined: 06 Oct 2004 Posts: 10 Location: toronto
|
Posted: Tue Dec 07, 2004 9:30 pm Post subject: send me all the files |
|
|
| just send me all the files u r using, i think i can solve it |
|
| Back to top |
|
 |
bobobo
Joined: 07 Dec 2004 Posts: 7 Location: London
|
Posted: Wed Dec 08, 2004 12:58 am Post subject: Re: iframe ?? |
|
|
Thanks  |
|
| Back to top |
|
 |
webmaster Site Admin

Joined: 17 Aug 2004 Posts: 3640 Location: Sweden
|
Posted: Wed Dec 08, 2004 6:15 am Post subject: Re: iframe ?? |
|
|
When I hold the mouse over the right/left-arrow the statusbar just sais: javascript://
If I hold it over DESIGN >, it sais: javascript:switchLayer('see')
Could there be something wrong with your links?
Should you maybe include all the .js files from the index-file instead of one in the index-file and two in the see.html ? |
|
| Back to top |
|
 |
bobobo
Joined: 07 Dec 2004 Posts: 7 Location: London
|
Posted: Wed Dec 08, 2004 9:03 am Post subject: Re: iframe ?? |
|
|
The script for the scrolling is supposed to say that. IF you look at see.html the status bar says the same.
I also tried linking all the .js files into index.html but it didn't work.
I combined two scripts, and both of them use onload handler
window.onload - I tried combining multiple functions to be called on load with an anonymous function but that didn't work as the horizontal scroll is in an iframes. |
|
| Back to top |
|
 |
bobobo
Joined: 07 Dec 2004 Posts: 7 Location: London
|
Posted: Thu Dec 09, 2004 1:40 pm Post subject: Re: iframe ?? |
|
|
Thanks for all suggestions guys.
I manged solve most of it.
Wanted to know if its possible to load the onload variables of a script sitting inside an iframe on the main page? |
|
| Back to top |
|
 |
ReFredzRate 1000+ Club

Joined: 20 Aug 2004 Posts: 2186 Location: Netherlands
|
Posted: Thu Dec 09, 2004 2:18 pm Post subject: Re: iframe ?? |
|
|
If you find a solution, be sure to post it into this topic as well. We just might learn from it  |
|
| Back to top |
|
 |
|