Forum Moderators: travelin cat

Message Too Old, No Replies

Javascript popup windows not working in Safari?

ONCLICK failing to work in Safari

         

LoopyLarry

7:04 pm on Oct 17, 2005 (gmt 0)



I have been informed by several people using Macs (I assume using Safari, unfortunately they didn't say) that the popup windows on this page do not work (these
are when you click View Fullsize or View Plan). These popups are done like so:

<A HREF="javascript:void(0)"
ONCLICK="open('popups/show_01_lg.htm','miniwin','toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=1,resizable=0,width=425,height=566')">

And works fine in IE and Firefox but not in Safari?

For the site, it is crucial Mac users are able to load the pics so if anyone could offer an explanation as to why it isn't working or a solution, I would be most
appreciative. The page is here:

<Sorry, no personal URLs.
See Terms of Service [webmasterworld.com]>

Thanks,
Larry

[edited by: tedster at 12:11 am (utc) on Oct. 18, 2005]

timster

8:10 pm on Oct 17, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Larry,

Hello and welcome to WebMasterWorld.

FYI, a moderator will probably be by shortly to yank the URL you posted since that is a no-no here.

But I went ahead and clicked through anyway. The popups to the larger images worked fine for my in Safari 2.0.1 and 1.3.1.

Maybe the users having problems have JavaScript off. If that's the problem, something like this might be a workaround:

<A HREF="popups/show_01_lg.htm" target="_blank"
ONCLICK="open('popups/show_01_lg.htm','miniwin','toolbar=0,location=0,directories=0,
status=0,menubar=0,scrollbars=1,resizable=0,width=425,height=566'); return false">

[edited by: tedster at 12:13 am (utc) on Oct. 18, 2005]
[edit reason] fix side-scroll [/edit]

travelin cat

9:10 pm on Oct 17, 2005 (gmt 0)

WebmasterWorld Administrator 10+ Year Member Top Contributors Of The Month



I had no problems getting the pop ups to work in Safari 2.0.1

islandlizard

5:28 pm on Oct 31, 2005 (gmt 0)

10+ Year Member



Do you have a doctype on the page? If so, and its xhtml, attirbutes in uppercase will fail.

Validate the page, fix any errors that show and take it form there. It is more likely to be a code error than safari, which has no problem with onclick or window opening.