Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3
  1. #1
    New to the CF scene
    Join Date
    Jul 2002
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    how to do back navigations within the frames when they belong to different domain????

    Hello,

    Thanx in advance for your pain to help me. Problem: I have two frames frame1 and frame2. frame1 contains only navigation links (back & next). In frame2, i will display some pages existing in the current domain and some links will be displayed over there(frame2). clicking the link will take you to some other domain. this all happens in frame2. when i click "back" button in the frame1, its showing "Access Denied" error and stays in the same page. what i should do now to take to the previous page in frame2.

    i tried the combinations like:
    parent.main.history.go(-1);
    parent.main.history.back;

    main is nothing but frame name.

    Thank you,


    Murali.
    Last edited by muralik; 07-23-2002 at 01:44 PM.

  • #2
    Regular Coder
    Join Date
    Jun 2002
    Posts
    626
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Normally parent.frame_name.history.go(-1) would work. Can you show us your code?

  • #3
    New Coder
    Join Date
    Jul 2002
    Location
    Portugal
    Posts
    44
    Thanks
    0
    Thanked 0 Times in 0 Posts
    if the document in the frame is in a diferent domain..
    you have no script acess to do anything inside the frame's DOM
    (including it's history object)

    the only thing you can do is set the location to a new page

    frame.location = 'something'

    but that means you need to know exactly the last page adress


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •