Current location: Hot Scripts Forums » General Web Coding » JavaScript » PLZ HLP! Sending Javascript between two frames.


PLZ HLP! Sending Javascript between two frames.

Reply
  #1 (permalink)  
Old 08-31-03, 04:53 PM
Caleb Caleb is offline
New Member
 
Join Date: Aug 2003
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Question PLZ HLP! Sending Javascript between two frames.

I'm sure it's possible to send javascript code from one frame to another, right?

What I have is a page with two iframes. One iframe is a seperate page with image links. The seccond iframe is supposed to show an image and a description of the links from the first iframe, when the link is hovered over with the mouse (onmouseover).

What I've come to conclude, is that I want to use:

Code:
onMouseOver="parent.frames['FRAME_02'].document.
I can easily show a different image to the second frame using:

Code:
onMouseOver="parent.frames['FRAME_02'].document.images[IMAGE].src='SOURCE'
but that only does half the job. I need to also show text underneath this image. and i can only assume that sending javascript from one frame to the other will help me out, but i do not know where to begin.

this is why i think javascript should be thrown around. but i can't seem to figure it out.

Any help would be much appreciated. THNX
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
  #2 (permalink)  
Old 09-01-03, 01:20 AM
Caleb Caleb is offline
New Member
 
Join Date: Aug 2003
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Wow! I got really bored at waiting to see if anyone could help. So I went ahead and figured it out. Took a long time, but i did it.

I decided that the link I provided would be a great way to do what I was trying to do. Went ahead and created the javascript variables in FRAME_01 and add the rest of the script into FRAME_02, and use:

Code:
parent.frames['FRAME_02'].JAVASCRIPT_FUNCTION
thanks alot guys.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
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
Plz Help! Drop Down selection opens 2 frames ppt JavaScript 3 03-27-04 12:54 PM
php and javascript together? gamextremer2003 PHP 5 11-06-03 03:18 PM
Forcing a JavaScript to abort HiMyNameIs JavaScript 3 09-18-03 11:23 AM
java and javascript e4c5 Hot Scripts Forum Questions, Suggestions and Feedback 7 08-13-03 09:59 AM
In search of "Confirm on Exit" javascript! ILLIC1T Script Requests 6 08-05-03 11:15 PM


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