Go Back   CodingForums.com > :: Client side development > JavaScript programming > DOM and JSON scripting

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 04-08-2009, 11:52 PM   PM User | #1
nickbfromct
New to the CF scene

 
Join Date: Apr 2009
Location: CT
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
nickbfromct has a little shameless behaviour in the past
triggering function from iframe

i remember there being a way to trigger a function on the parent page from a button/link in an iframe. does anyone know the syntax? or what section of w3schools i should look at?
nickbfromct is offline   Reply With Quote
Old 04-10-2009, 11:18 PM   PM User | #2
nickbfromct
New to the CF scene

 
Join Date: Apr 2009
Location: CT
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
nickbfromct has a little shameless behaviour in the past
well, since noone is gonna reply... i figured it out by MYSELF!
you can grab any object, id, name, anything from the main page via an iframe.
all you do is: on the iframe you have function that says:
Code:
parent.document.getElementById('id').innerHTML ="****ing bull****";
nickbfromct is offline   Reply With Quote
Reply

Bookmarks

Tags
function, iframe, trigger

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

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 On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 05:19 AM.


Advertisement
Log in to turn off these ads.