ur gonna kill me for this lol

  • dreamer7
  • Student
  • Student
  • No Avatar
  • Joined: Jan 20, 2003
  • Posts: 96
  • Loc: UK
  • Status: Offline

Post April 29th, 2003, 7:59 am

lol i have another interesting on frames..... Well ive been looking at iframes today i was wondering how u reference it with javascript because i want to be able to do something with it but a bit more interesting than link to it :oops: any help wud b much appreciated lol
D7
  • Anonymous
  • Bot
  • No Avatar
  • Joined: 25 Feb 2008
  • Posts: ?
  • Loc: Ozzuland
  • Status: Online

Post April 29th, 2003, 7:59 am

  • Borrow -A- Geek
  • Professor
  • Professor
  • User avatar
  • Joined: Dec 20, 2002
  • Posts: 775
  • Loc: Dallas/Ft Worth, Texas
  • Status: Offline

Post April 29th, 2003, 9:05 pm

be more specific as to what your looking to do... kinda vague there... i think i might have an idea but not sure...
  • UNFLUX
  • Genius
  • Genius
  • User avatar
  • Joined: Dec 20, 2002
  • Posts: 6382
  • Loc: twitter.com/unflux
  • Status: Offline

Post April 29th, 2003, 10:57 pm

punctuation would be nice if i could read your posts better i could help
better but it seems you are too fast to hit a period this make it very
difficult to understand without spendin 10 min on each of your posts
please start using punctuation it doesn't take that long to type one
extra key thank you
UNFLUX.FOTO
  • dreamer7
  • Student
  • Student
  • No Avatar
  • Joined: Jan 20, 2003
  • Posts: 96
  • Loc: UK
  • Status: Offline

Post April 30th, 2003, 1:59 am

sorry calm down lol, well i need the code to how u reference an iFrame through javascript like window.frames['framename'] type thing. But i haven't found any thats worked yet because i keep on gettin the error "this window.fr... is null or not an object".
D7
  • Bigwebmaster
  • Site Admin
  • Site Admin
  • User avatar
  • Joined: Dec 20, 2002
  • Posts: 8924
  • Loc: Seattle, WA & Phoenix, AZ
  • Status: Online

Post April 30th, 2003, 2:12 am

According to my JavaScript book, frames created with iframe are the same as frames created with frameset or frame. So in other words you would access the iframe the same way when using JavaScript.

So to refer the first frame (if your iframe is the first one), then you would refer to it something like

Code: [ Select ]
parent.frames[0]
Ozzu Hosting - Want your website on a fast server like Ozzu?
  • Bigwebmaster
  • Site Admin
  • Site Admin
  • User avatar
  • Joined: Dec 20, 2002
  • Posts: 8924
  • Loc: Seattle, WA & Phoenix, AZ
  • Status: Online

Post April 30th, 2003, 2:14 am

If the iframe is contained in another frame itself you would refer to it something like:

Code: [ Select ]
parent.frames[1].frames[0]


all depending on how many levels of frames you have and which ones are part of what frames.
Ozzu Hosting - Want your website on a fast server like Ozzu?
  • dreamer7
  • Student
  • Student
  • No Avatar
  • Joined: Jan 20, 2003
  • Posts: 96
  • Loc: UK
  • Status: Offline

Post April 30th, 2003, 5:46 am

thanx big :)
  • dreamer7
  • Student
  • Student
  • No Avatar
  • Joined: Jan 20, 2003
  • Posts: 96
  • Loc: UK
  • Status: Offline

Post April 30th, 2003, 8:58 am

Hmmm... well that didnt work nor did a lot of other things i did lol so im gonna take time out to look at the javascript DOM see if i can get anything from that. Probably for the best anyway saves me asking questions all the time doesnt it lol.
D7
  • Bigwebmaster
  • Site Admin
  • Site Admin
  • User avatar
  • Joined: Dec 20, 2002
  • Posts: 8924
  • Loc: Seattle, WA & Phoenix, AZ
  • Status: Online

Post April 30th, 2003, 9:22 am

Make sure you are putting the right numbers in the [] above too. If you are referencing a frame that doesn't exist then you will have problems.
Ozzu Hosting - Want your website on a fast server like Ozzu?
  • Steen
  • Proficient
  • Proficient
  • User avatar
  • Joined: Apr 15, 2003
  • Posts: 343
  • Status: Offline

Post April 30th, 2003, 4:31 pm


Not sure if this would help any ... but on one of my sites,

  webpage:

   http://www.hotpicturetrades.com/


I make use of a select - dropdown menu where within an Iframe,
it calls other pages.

pretty kewl .. but not sure if that's what you are trying to experiment with or not.

the drop select is java based.

have a look if you'd like ...

Post Information

  • Total Posts in this topic: 10 posts
  • Users browsing this forum: No registered users and 157 guests
  • You cannot post new topics in this forum
  • You cannot reply to topics in this forum
  • You cannot edit your posts in this forum
  • You cannot delete your posts in this forum
  • You cannot post attachments in this forum
 
cron
 

© 2011 Unmelted, LLC. Ozzu® is a registered trademark of Unmelted, LLC.