New To Mac-Forums?

Welcome to our community! Join the discussion today by registering your FREE account. If you have any problems with the registration process, please contact us!

Get your questions answered by community gurus Advice and insight from world-class Apple enthusiasts Exclusive access to members-only contests, giveaways and deals

Join today!

 
Start a Discussion
 

Mac-Forums Brief

Subscribe to Mac-Forums Brief to receive special offers from Mac-Forums partners and sponsors

Join the conversation RSS
Web Design and Hosting Creating sites, scripting, and hosting discussions.

Javascript and Frames problem in Safari


Post Reply New Thread Subscribe

 
Thread Tools
HarrySpier
Guest
 
Posts: n/a

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:
<script>
. . .
parent.mainFrame.document.location = page1;
</script>

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:
<script>
. . .
parent.mainFrame.document.location = page2;
</script>

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,
Harry
QUOTE Thanks
RobDreugan
Guest
 
Posts: n/a

it might help to actually show the page.

I'm just don't understand why yer using frames
QUOTE Thanks
ChicoWeb
Guest
 
Posts: n/a

Why frames?
QUOTE Thanks
HarrySpier
Guest
 
Posts: n/a

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.

Harry
QUOTE Thanks

Post Reply New Thread Subscribe


« What .com name should i use? | MySQL »
Thread Tools

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off
Forum Jump

All times are GMT -4. The time now is 05:00 PM.

Powered by vBulletin
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
X

Welcome to Mac-Forums.com

Create your username to jump into the discussion!

New members like you have made this community the ultimate source for your Mac since 2003!


(4 digit year)

Already a member?