ur gonna kill me for this lol

  • dreamer7
  • Student
  • Student
  • dreamer7
  • Posts: 95
  • Loc: UK

Post 3+ Months Ago

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
  • Borrow -A- Geek
  • Professor
  • Professor
  • User avatar
  • Posts: 763
  • Loc: Dallas/Ft Worth, Texas

Post 3+ Months Ago

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
  • Posts: 6376
  • Loc: twitter.com/unflux

Post 3+ Months Ago

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
  • dreamer7
  • Student
  • Student
  • dreamer7
  • Posts: 95
  • Loc: UK

Post 3+ Months Ago

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
  • Posts: 9092
  • Loc: Seattle, WA & Phoenix, AZ

Post 3+ Months Ago

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]
  • Bigwebmaster
  • Site Admin
  • Site Admin
  • User avatar
  • Posts: 9092
  • Loc: Seattle, WA & Phoenix, AZ

Post 3+ Months Ago

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.
  • dreamer7
  • Student
  • Student
  • dreamer7
  • Posts: 95
  • Loc: UK

Post 3+ Months Ago

thanx big :)
  • dreamer7
  • Student
  • Student
  • dreamer7
  • Posts: 95
  • Loc: UK

Post 3+ Months Ago

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
  • Posts: 9092
  • Loc: Seattle, WA & Phoenix, AZ

Post 3+ Months Ago

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.
  • Steen
  • Proficient
  • Proficient
  • User avatar
  • Posts: 343

Post 3+ Months Ago


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 28 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
 
 

© 1998-2014. Ozzu® is a registered trademark of Unmelted, LLC.