Current location: Hot Scripts Forums » General Web Coding » JavaScript » Iframe javascripts on parent frame (main frame)


Iframe javascripts on parent frame (main frame)

Reply
  #1 (permalink)  
Old 03-16-06, 12:25 PM
riquelme riquelme is offline
Newbie Coder
 
Join Date: Mar 2006
Posts: 23
Thanks: 0
Thanked 0 Times in 0 Posts
Iframe javascripts on parent frame (main frame)

Hi!
Thanks in advance for the help

Now here comes my problem

In a document, I have a iframe which should submit a picture, then use a javascript function on the main frame (the parent frame)

How can I make use of a javacript launched on the iframe on the main document (main frame/parent frame i think) please??

document.parent.function()?

Thanks!
Reply With Quote
  #2 (permalink)  
Old 03-16-06, 12:37 PM
wirehopper's Avatar
wirehopper wirehopper is offline
-
 
Join Date: Feb 2006
Posts: 2,515
Thanks: 20
Thanked 109 Times in 106 Posts
var parentframe=parent.document.getElementById("idoffr ame");

parentframe.document.dofunction();
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
linking to both iframe content and parent page vman2957 HTML/XHTML/XML 5 12-02-06 12:49 AM
Background image for iframe same as main page riots HTML/XHTML/XML 6 02-17-06 11:22 AM
Loading a new page in place a parent from an iframe Highly-Annoyed HTML/XHTML/XML 3 07-18-05 11:05 AM
cross frame meni Dustyn JavaScript 3 03-17-05 01:32 AM
target iframe or frame moose JavaScript 3 01-29-05 03:31 PM


All times are GMT -5. The time now is 11:04 PM.
vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.