Forum Moderators: open

Message Too Old, No Replies

Mac os10 with missing javascript link in IE and Safari

JavaScript link disappears in browser

         

nicetony

12:53 pm on Jul 2, 2004 (gmt 0)

10+ Year Member



I have a javascript link that opens a window on a site that I am designing.

<a href="javascript:popUp('sms.html')">sms</a>

It works fine on os 9 in IE and Netscape but disappears when using os 10 using either IE or Safari.

If anyone has any ideas I would be most grateful and I am sorry if I am missing something obvious.

Thank you for your time.

Nicetony.

BlobFisk

1:55 pm on Jul 2, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Hi niceTony,

Could you post the popUp() function?

nicetony

2:07 pm on Jul 2, 2004 (gmt 0)

10+ Year Member



Certainly.

<SCRIPT LANGUAGE="JavaScript">
<!-- Idea by: Nic Wolfe -->
<!-- This script and many more are available free online at -->
<!-- The JavaScript Source! -->
<!-- Begin
function popUp(URL) {
day = new Date();
id = day.getTime();
eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=0,left=530,top=250,statusbar=0,menubar=0,resizable=1,width=200,height=340');");
}
// End -->
</script>

Thanks

AWildman

4:16 pm on Jul 7, 2004 (gmt 0)

10+ Year Member



Isn't there a default pop-up blocker in Safari that is likely blocking your pop-up? That doesn't explain why its not working in IE, but at least it explains Safari.

nicetony

9:39 am on Jul 8, 2004 (gmt 0)

10+ Year Member



Hello AWildman,
Thanks very much for having a look at my problem. I have tried it with both the PopUp disabled and enabled in Safari and still nothing. The link just does not show up, just nothing there at all!
Thanks very much for the advice and your time.
Cheers
Nice Tony

bird

10:44 am on Jul 8, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



<SCRIPT LANGUAGE="JavaScript">

This may nor may not be the reason, but you should change it anyway:

<script type="text/javascript">

The standards don't specify a "language" attribute for the "script" tag.

AWildman

11:59 am on Jul 8, 2004 (gmt 0)

10+ Year Member



Just for fun, why don't you get rid of the eval statement and simply do a window.open. I'm just curious to see whether its some minute JS syntax error that's causing the problem.

nicetony

8:48 am on Jul 9, 2004 (gmt 0)

10+ Year Member



Bird and AWildman,
I will try these out asap and let you know.
Thanks very much again!
NiceTony

nicetony

9:23 am on Jul 9, 2004 (gmt 0)

10+ Year Member



The text/javascript did not help, sadly!
I have also tried the open.window and this also does not help, booo!

I think I should look for another script.

Thanks very much! I will continue my quest. If you do think of anything though I would be grateful.

Cheers
NiceTony