Annet,

Other observation, is I have modified the default popup() in
web2py_ajax.html to accept two arguments rather than just one --

function popup(url, attribs) {
  newwindow=window.open(url,'name', attribs);
  if (window.focus) newwindow.focus();
  return false;
}

attribs can be any properly formatted string per the window.open()
specification. Provides popup() a little more power as the attribute
string can be defined as needed.

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