|
-
Mar 22nd, 2004, 07:27 AM
#1
trouble setting location
um .. what is wrong with this??
parent.document.getElementById('RightFrame').location='components\shout\';
thanks kris
-
Mar 22nd, 2004, 08:33 AM
#2
Frenzied Member
getElementById() is used to get elements, not documents. try:
parent.rightframe.window.document.location = "myPage.html"
or try switching the order of those words, I always get the wrong. I know it ends in document.location.
Have I helped you? Please Rate my posts. 
-
Mar 22nd, 2004, 04:11 PM
#3
hmm.. still doesn't work ... this is the code for my frame:
<iframe src="right.asp" width="100%" height="100%" frameborder="0" name="RightFrame" id="RightFrame"></iframe>
-
Mar 22nd, 2004, 04:17 PM
#4
Frenzied Member
aah an I frame, I have done this in the past but have forgotten how to do frames well.
I don't think you should have the parent bit.
try:
document.RightFrame.location = "myPage.html"
Have I helped you? Please Rate my posts. 
-
Mar 22nd, 2004, 04:20 PM
#5
ahh got it .. it didn't like my slashes ... but it doesn't mind backslashes... thanks
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
|