Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

iframe problem

Status
Not open for further replies.

PBE3

Programmer
Aug 16, 2007
25
US
Hi -

I am try to make a js slideshow on my page, the index has an iframe where the slideshow would be when the home page is visited. The slideshow will not work when it is in the iframe I get an error of document.images.SlideShow is undefined. The complete line is document.images.SlideShow.src = preLoad[j].src

Any ideas? I've tried document.dataFrame.document.images.src = preLoad[j].src and a few others but I just can't get it to work.

Kudos.
 
I'm guessing you have the slideshow JS and/or image element in your main index page instead of in the iframe page (obviously, I have to guess, because you've not given us much to go on).

So, if that's the case, move both the code and the image element (which has a name and/or ID of 'SlideShow', right?) into your iframe.

If you've done that and still can't get it to work, show us either a URL or the iframe SRC.

I have to ask, though - why use an iframe just for a slideshow? Isn't that over-complicating things unnecessarily? Personally, I'd rip out the iframe and just have it in your index page.

Dan



Coedit Limited - Delivering standards compliant, accessible web solutions

Dan's Page [blue]@[/blue] Code Couch:
Code Couch Tech Snippets & Info:
 
Thanks I will try that. The iFrame is for all pages not just for the slideshow. Home Page, Exec Board, etc. will all show in the iFrame. If this doesn't work I can give you my URL. Thanks again! Kudos.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top