File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes HTML, CSS and JavaScript and the fly likes Safari, Frames, and localhost... Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "Safari, Frames, and localhost..." Watch "Safari, Frames, and localhost..." New topic

Safari, Frames, and localhost...

Aron Daburn
Ranch Hand

Joined: Mar 18, 2007
Posts: 36
Does Safari not allow frames to link to your local host? The following frame snipit works fine in Firefox and IE, but then doesn't make the call for the frame in Safari.

But if I replace the src to, it loads google...

It is also not loading the frame contents when the pages are moved up to the server. Though, there javascript then sets the src of the frame on the page load. (It works perfect in IE and Firefox.)

What am I doing wrong for Safari? Why does it not load my page, but loads google's perfectly fine?

I just downloaded Safari 4 for Windows XP, which I now see is 'beta'. I'll try it on Safari 3 and report back...
Eric Pascarello

Joined: Nov 08, 2001
Posts: 15385
You actually test Safari on Windows? Do not think that Safari on windows acts like Safari on a Mac.

Aron Daburn
Ranch Hand

Joined: Mar 18, 2007
Posts: 36
This is just to work with locally. I will be doing final testing on a Mac.

OK, working with Safari 3 for Windows XP, *most* of the frame issues work. However, there is a rather odd behavior happening.

This code snipit does not display the frame's contents:

But this does:

The only difference is I threw in some | characters around the frameset to determine where in the page the frame was at, and then it works!? I did a double take and removed them, didn't work. Added them back, worked... what gives?
I agree. Here's the link:
subject: Safari, Frames, and localhost...
jQuery in Action, 3rd edition