Flash Games
 FAQ   Search   Memberlist   Usergroups   Register  Profile   Log in to check your private messages   Log in 


iframe ??



 

Post new topic   Reply to topic  
   DEVPPL Forum Index -> HTML Forum
View previous topic :: View next topic  
Author Message
bobobo



Joined: 07 Dec 2004
Posts: 7
Location: London

PostPosted: Tue Dec 07, 2004 10:43 am    Post subject: iframe ?? Reply with quote

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
View user's profile Send private message Visit poster's website MSN Messenger
ReFredzRate
1000+ Club


Joined: 20 Aug 2004
Posts: 2186
Location: Netherlands

PostPosted: Tue Dec 07, 2004 2:11 pm    Post subject: Re: iframe ?? Reply with quote

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 Smile

By the way, nice design!

*edit* Welcome to DevPPL! Smile
Back to top
View user's profile Send private message Send e-mail Visit poster's website MSN Messenger
bobobo



Joined: 07 Dec 2004
Posts: 7
Location: London

PostPosted: Tue Dec 07, 2004 2:16 pm    Post subject: Re: iframe ?? Reply with quote

Cheers Laughing

the hunt still continues.
Back to top
View user's profile Send private message Visit poster's website MSN Messenger
webmaster
Site Admin


Joined: 17 Aug 2004
Posts: 3640
Location: Sweden

PostPosted: Tue Dec 07, 2004 2:41 pm    Post subject: Re: iframe ?? Reply with quote

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 Very Happy
Back to top
View user's profile Send private message Visit poster's website
bobobo



Joined: 07 Dec 2004
Posts: 7
Location: London

PostPosted: Tue Dec 07, 2004 2:51 pm    Post subject: Re: iframe ?? Reply with quote

Thanks Razz

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
View user's profile Send private message Visit poster's website MSN Messenger
webmaster
Site Admin


Joined: 17 Aug 2004
Posts: 3640
Location: Sweden

PostPosted: Tue Dec 07, 2004 4:43 pm    Post subject: Re: iframe ?? Reply with quote

Im not a javascript guy, but are you sure that you're not using the same variables in:

http://www.popprophecy.co.uk/pop/iframe/j/hideshow.js
as
http://www.popprophecy.co.uk/pop/iframe/j/scrollObj.js
or
http://www.popprophecy.co.uk/pop/iframe/j/hoverscroll.js
?
Back to top
View user's profile Send private message Visit poster's website
bobobo



Joined: 07 Dec 2004
Posts: 7
Location: London

PostPosted: Tue Dec 07, 2004 5:13 pm    Post subject: Re: iframe ?? Reply with quote

No I don't think so.

I'm not that good with javascript -- don't suppose you know anyone Question
Back to top
View user's profile Send private message Visit poster's website MSN Messenger
webmaster
Site Admin


Joined: 17 Aug 2004
Posts: 3640
Location: Sweden

PostPosted: Tue Dec 07, 2004 9:12 pm    Post subject: Re: iframe ?? Reply with quote

Im not good either, does we have any good javascripter here that can help bobobo ?
Back to top
View user's profile Send private message Visit poster's website
techyashish



Joined: 06 Oct 2004
Posts: 10
Location: toronto

PostPosted: Tue Dec 07, 2004 9:30 pm    Post subject: send me all the files Reply with quote

just send me all the files u r using, i think i can solve it
Back to top
View user's profile Send private message Send e-mail Visit poster's website Yahoo Messenger MSN Messenger
bobobo



Joined: 07 Dec 2004
Posts: 7
Location: London

PostPosted: Wed Dec 08, 2004 12:58 am    Post subject: Re: iframe ?? Reply with quote

Thanks Laughing Laughing
Back to top
View user's profile Send private message Visit poster's website MSN Messenger
webmaster
Site Admin


Joined: 17 Aug 2004
Posts: 3640
Location: Sweden

PostPosted: Wed Dec 08, 2004 6:15 am    Post subject: Re: iframe ?? Reply with quote

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
View user's profile Send private message Visit poster's website
bobobo



Joined: 07 Dec 2004
Posts: 7
Location: London

PostPosted: Wed Dec 08, 2004 9:03 am    Post subject: Re: iframe ?? Reply with quote

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
View user's profile Send private message Visit poster's website MSN Messenger
bobobo



Joined: 07 Dec 2004
Posts: 7
Location: London

PostPosted: Thu Dec 09, 2004 1:40 pm    Post subject: Re: iframe ?? Reply with quote

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
View user's profile Send private message Visit poster's website MSN Messenger
ReFredzRate
1000+ Club


Joined: 20 Aug 2004
Posts: 2186
Location: Netherlands

PostPosted: Thu Dec 09, 2004 2:18 pm    Post subject: Re: iframe ?? Reply with quote

If you find a solution, be sure to post it into this topic as well. We just might learn from it Smile
Back to top
View user's profile Send private message Send e-mail Visit poster's website MSN Messenger
Display posts from previous:   
Post new topic   Reply to topic    DEVPPL Forum Index -> HTML Forum All times are GMT + 1 Hour
Page 1 of 1

 
 
Welcome to DEVPPL.com
You are not logged in, which means that you can't post in the forums.
Click here to Register

If you are a current member here on DEVPPL, please login below:

User: Pass:
Log me on automatically each visit:

 


Powered by phpBB © 2001, 2005 phpBB Group - Modified by DEVPPL

Flash Games - Sitemap