Results 1 to 4 of 4

Thread: Javascript and Frames problem in Safari

  1. #1
    Javascript and Frames problem in Safari
    Dear list members,

    The following problem only occurs in Safari on the Mac. (I'm using OS-X 10.3 and I've just upgraded to 10.3.6) The problem doesn't occur on the PC or on the Mac with Netscape, IE, or Firefox.

    A page on my website is a frameset that consists of a main frame and several smaller control frames. Executing Javascript in the smaller control frames loads content into the main frame by changing its location property.

    For example:
    control frame 1:
    . . .
    parent.mainFrame.document.location = page1;

    But in Safari after I've done this once, if I execute another javascript statement to again change the location property of the main frame it doesn't work.

    I.e. after executing the above javascript in control frame 1 if I then execute the following javascript in control frame 2 it does nothing.

    control frame 2:
    . . .
    parent.mainFrame.document.location = page2;

    This problem only occurs in Safari, not in the other browsers. In the other browsers I can keep loading pages into the main frame by changing its location property from the smaller control frames.

    I've tried clearing the cache but this doesn't help.

    Does anyone have any ideas how to either fix the problem or get around it.

    Many thanks,

  2. #2
    it might help to actually show the page.

    I'm just don't understand why yer using frames

  3. #3
    Why frames?

  4. #4
    Quote Originally Posted by ChicoWeb
    Why frames?
    Its a digital library application. A digitized page of a book is loaded into the main frame and the control frames control viewing options and switching back to indexes of books. This allows the control options to always be viewable as the user pages thru a book etc.


Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Javascript problems in safari
    By pandora_dora in forum Web Design and Hosting
    Replies: 1
    Last Post: 09-27-2011, 10:59 PM
  2. Safari Javascript Help
    By bluecollar01 in forum Web Design and Hosting
    Replies: 0
    Last Post: 04-12-2011, 09:13 AM
  3. Javascript Problem: Safari 4.0 for Windows XP
    By dipesh in forum Running Windows (or anything else) on your Mac
    Replies: 1
    Last Post: 09-04-2009, 09:38 AM
  4. Safari and javascript problem.
    By DaveDawn in forum Web Design and Hosting
    Replies: 3
    Last Post: 06-28-2008, 12:55 PM
  5. Safari Javascript problem
    By babszem in forum Web Design and Hosting
    Replies: 0
    Last Post: 02-26-2004, 04:21 PM

Posting Permissions

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