![]() |
|
#1
|
|||
|
|||
|
Problems with vizhtml displayURL
Hi
the following code works fine Code:
import viz
import viztask
import vizhtml
viz.go()
html = """
<html>
<body onload="document.the_form.first_name.focus();">
<form name="the_form" method="post">
<table>
<tr>
<td>First Name</td>
<td><input type="text" name="first_name"></td>
</tr>
<tr>
<td>Last Name</td>
<td><input type="text" name="last_name"></td>
</tr>
<tr>
<td></td>
<td><input type="submit" value="Submit"></td>
</tr>
</table>
</form>
</body>
</html>"""
vizhtml.displayCode(html)
def HandleForm(e):
print "wooho form submited"
vizhtml.onFormSubmit(HandleForm)
Code:
import viz
import viztask
import vizhtml
viz.go()
vizhtml.displayURL("simple.html")
def HandleForm(e):
print "wooho form submited"
vizhtml.onFormSubmit(HandleForm)
Thanks TarkaDahl |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| problems with makepy applications | Darkmax | Vizard | 0 | 10-12-2010 10:47 AM |
| problems nagivating around | ruby21 | Vizard | 2 | 05-18-2010 04:22 PM |
| Problems loading WRL file | DrunkenBrit | Vizard | 2 | 01-29-2009 01:58 AM |
| Problems with spawn point. | just alex | Vizard | 1 | 11-24-2008 10:51 AM |
| Problems with lighting in 2.0 | murm | Vizard | 6 | 04-21-2004 10:59 AM |