Annet,

I took your function and put it in a test block with a button onclick=
with Firefox. It works. Two items --

A) Make sure the windows.open has the open parens '(' on the same
line. I assume google groups did the line breaking this way, not you.

B) Change '_blank' to anything else, ex 'name'. Use of the _blank is
not the issue. But do you use the _blank anywhere else in the
Javascript name space? If you do it might be causing a conflict.

Other than that I don't see a problem. Can you post how you invoke the
function here on the list?

JohnMc

On Jun 20, 11:12 am, annet <[email protected]> wrote:
> This code in web2py_ajax.html
>
> function eventlistdetails(url) {
>   var eventdetailswindow=window.open
> (url,'_blank','toolbar=no,location=no,directories=no,status=no,\
>   menubar=no,scrollbars=no,resizable=no,width=800,height=700');
>   if (window.focus) eventdetailswindow.focus();
>   return false;
>
> }
>
> ... works in Safari, however, when I expose a function which makes use
> this code in Firefox the master page displays 'false' and the URL
> reads like javascript:eventlistdetails('/core/eventlist/details/1')
> The details page display in a new window but the URL is displayed as
> well, in Safari it is not.
>
> I know I need the return false for IE's sake, how do I solve the
> problem in Firefox?
>
> Kind regards,
>
> Annet.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"web2py Web Framework" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to