On Dec 23, 2009, at 7:52 AM, annet wrote:
> <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?
Maybe because you never escape your Python code?
--
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.