annet,

DOM methods are just javascript.  In order to run them, they have to be 
in a script tag...like so:

<script type="text/javascript">
function goHome() {
    window.open('/', 'mywindow', height=600, width=400,menubar=false);
}
</script>

Then you can put a button anywhere you need:

<button onclick="goHome()">Home</home>

-tim

annet wrote:
> Thanks, the _ solved the problem. Another question though: is it
> possible to use the HTML DOM open() method in web2py?
>
> Consider the same <td></td> element, is it possible to include
> something like: window.open('URL', 'mywindow', 'height=600, width=400,
> menubar=no')
>
>
> 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 web2py@googlegroups.com
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
-~----------~----~----~----~------~----~------~--~---

begin:vcard
fn:Timothy Farrell
n:Farrell;Timothy
org:Statewide General Insurance Agency;IT
adr:;;4501 East 31st Street;Tulsa;OK;74135;US
email;internet:[EMAIL PROTECTED]
title:Computer Guy
tel;work:(918)492-1446
url:www.swgen.com
version:2.1
end:vcard

Reply via email to