Results 1 to 5 of 5

Thread: trouble setting location

  1. #1

    Thread Starter
    PowerPoster i00's Avatar
    Join Date
    Mar 2002
    Location
    1/2 way accross the galaxy.. and then some
    Posts
    2,390

    trouble setting location

    um .. what is wrong with this??

    parent.document.getElementById('RightFrame').location='components\shout\';


    thanks kris

  2. #2
    Frenzied Member Acidic's Avatar
    Join Date
    Sep 2003
    Location
    UK
    Posts
    1,090
    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.

  3. #3

    Thread Starter
    PowerPoster i00's Avatar
    Join Date
    Mar 2002
    Location
    1/2 way accross the galaxy.. and then some
    Posts
    2,390
    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>

  4. #4
    Frenzied Member Acidic's Avatar
    Join Date
    Sep 2003
    Location
    UK
    Posts
    1,090
    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.

  5. #5

    Thread Starter
    PowerPoster i00's Avatar
    Join Date
    Mar 2002
    Location
    1/2 way accross the galaxy.. and then some
    Posts
    2,390
    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
  •  



Click Here to Expand Forum to Full Width