Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Software - Troubleshooting and Discussion > Applications > safari and javascript compatability

safari and javascript compatability
Thread Tools
Fresh-Faced Recruit
Join Date: Mar 2004
Status: Offline
Reply With Quote
Mar 26, 2004, 11:22 AM
 
First, I don't use a Mac (or have access to one) - all of my machines are GNU/Linux, or Windoze. So, set flame-throwers to stun, only.

I'm having some problems debugging some javascript that is not rendering the way it should when browsed using safari (and yet which works perfectly under every other browser out there). I'm hoping someone here can help:

Basically, I have a form A, which when the user hits the submit button, it calls, via Javascript, a popup window B, which is a confirmation window (containing the HTML in confirm.html). I call the function makePop, and it looks like:

function makePop() {
popup = window.open(" ","B","width=120,height=120");
popup.location.href="confirm.html";
if (popup.opener==null) popup.opener=window;
}


Now, as noted, this works perfectly under every other browser I've tried, but about 5% of the user base seems to want to use safari. And, the preceding does not work under safari - rather than a popup contain confirm.html, a popup is generated containing the HTML code of the originating (parent) page!

Any suggestions? As noted, my machines are either GNU/Linux or Windoze, so I can't test out safari on my own.

Thanks much in advance...
     
Mac Elite
Join Date: Sep 2001
Location: Chico, CA and Carlsbad, CA.
Status: Offline
Reply With Quote
Mar 26, 2004, 12:14 PM
 
Originally posted by cooch:
Any suggestions? As noted, my machines are either GNU/Linux or Windoze, so I can't test out safari on my own.

Thanks much in advance...
I'm not a web developer so I'm not too keen on Safari's shortcomings or incompatibilities as far as JavaScript goes, but were you aware that Safari is based on Konquerer? Have you tried your code in Konquerer under GNU/Linux?
"In Nomine Patris, Et Fili, Et Spiritus Sancti"

     
   
Thread Tools
Forum Links
Forum 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 On
Top
Privacy Policy
All times are GMT -5. The time now is 11:11 AM.
All contents of these forums © 1995-2011 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.7 © 2000-2011, Jelsoft Enterprises Ltd., Content Relevant URLs by vBSEO 3.3.2