Annet,
change this --
{{=A(event.event,_href="javascript:eventlistdetails('%s')"%URL
(r=request,f='eventdetails',args=[event.id]))}}
to this --
{{=A(event.event, _onmouseover="this.style.cursor='pointer';",
_onclick="javascript:eventlistdetails('%s')"%URL
(r=request,f='eventdetails',args=[event.id]))}}
That should solve the behavior problem of the 'false' display in main
window. My general style is -- for anything other than the default
behavior for a link (href) it is best not to use href and be explicit
in the alternate behavior you do want. The reason being is you won't
know the side affects of href in the various browsers as you are using
it.
I think what you are seeing is that not only are the browsers
executing the javascript code as directed but are also attempting to
resolve the references in the main window to a page for the A()
helper.
One of these days I will get around to loading Safari on Wine. But let
me know if this works on Safari.
JohnMc
On Jun 21, 1:20 am, annet <[email protected]> wrote:
> John,
>
> Thanks for your reply.
>(snip)
> {{=A(event.event,_href="javascript:eventlistdetails('%s')"%URL
> (r=request,f='eventdetails',args=[event.id]))}}
>
> In Firefox the address in the master window reads like:
> javascript:eventlistdetails('/demo/site/eventdetails/2')
> and in the details window:http://127.0.0.1:8000/demo/site/eventdetails/2
>
> In Safari the address in the master window reads
> like:http://127.0.0.1:8000/demo/site/eventlist
> and in the details window it doesn't display, because of the
> attributes in the window.open()
>
> I hope I provided you with sufficient information to help me solve the
> problem.
>
> 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
-~----------~----~----~----~------~----~------~--~---