|
-
Feb 17th, 2003, 05:09 PM
#1
Thread Starter
Fanatic Member
Writing to a frame
I have a window, and its split into two frames. When you click on some text in one frame I want to use the document.write() for the other frame. I know how to make evrything work except for the document.write() part. Anyone know how to do it?
-
Feb 17th, 2003, 05:24 PM
#2
Lively Member
i think this should work, but my brain isnt exactly working right now cuz the snow day thing.
parent.rightframename.document.write(stuff+to+write)
if you choose not to decide you still have made a choice!
RUSH rocks!
-
Feb 18th, 2003, 05:52 PM
#3
Thread Starter
Fanatic Member
Didn't work, I used:
VB Code:
<div onmouseclick="parent.main.document.write("test")">Test</div>
-
Feb 18th, 2003, 07:54 PM
#4
Lively Member
<div onClick="parent.main.document.write(\"test\")">Test</div>
if you choose not to decide you still have made a choice!
RUSH rocks!
-
Feb 18th, 2003, 10:39 PM
#5
Thread Starter
Fanatic Member
It still doesn't work, I'm using Internet Explorer, would this be a problem.
-
Feb 19th, 2003, 06:08 AM
#6
Frenzied Member
Maybe you need to use the frames array? something like
Code:
window.frames['frameName'].document.write('Hello');
You aren't trying to write it after it has loaded a frame have you? I.e. you shouldn't be putting an src attribute for the frame you want to write to.
-
Feb 19th, 2003, 04:26 PM
#7
Thread Starter
Fanatic Member
Oh, I was giving the frame a source. Well I will take the source out and test it.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|