I do not why but why not just

<a class="adiv" href={{=URL(r=request,c='demo',f='index')}}
target="demo">

On Dec 23, 9:52 am, annet <[email protected]> wrote:
> In one of my views (http://127.0.0.1:8000/frame/default/index) I have
> the following link:
>
> <a class="adiv" href={{=URL(r=request,c='demo',f='index')}}>
>   <h2>Fitwise Demo Applicatie</h2>
>   <p>In de Demo Applicatie ...</p>
> </a> <!-- adiv -->
>
> It renders the whole div as a link, and works. Since I would like the
> url to open in its
> own window I replaced the url with the following code. In the view:
>
> <a class="adiv" onmouseover="this.style.cursor='pointer';"
> onclick="javascript:demo('%s')"%URL(r=request,c='demo',f='index')>
>   <h2>Fitwise Demo Applicatie</h2>
>   <p>In de Demo Applicatie ...</p>
> </a> <!-- adiv -->
>
> ... and in the _ajax.html file:
>
> function demo(url) {
> demowindow=window.open
> (url,'name','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=no,width=800,height=700');
>   if (window.focus) demowindow.focus();
>   return false;
>
> }
>
> When I click the div, a new window opens, however, the url reads like:
>
> http://127.0.0.1/frame/default/%s
>
> whereas, it should read like:
>
> http://127.0.0.1:8000/frame/demo/index
>
> Why doesn't this work?
>
> Kind regards,
>
> Annet.

--

You received this message because you are subscribed to the Google Groups 
"web2py-users" 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