WorldViz User Forum

WorldViz User Forum (https://forum.worldviz.com/index.php)
-   Vizard (https://forum.worldviz.com/forumdisplay.php?f=17)
-   -   vizhtml (https://forum.worldviz.com/showthread.php?t=5033)

roobert 05-06-2014 10:25 AM

vizhtml
 
Hello fellow today need your help to make a website connect through vizhtml.

The tutorial says
http://docs.worldviz.com/vizard/inde...te_browser.htm

* "Vizhtml.registerCode (url, code, directory = None) "

but it is I'm doing wrong, this is my code
"
import viz
import vizhtml

viz.go ()

url = 'http://localhost/DemoVizard1/index.html'
filename = 'index.html'

vizhtml.registerFile (url, filename)

"
and my html is:




<br /> Domain Parameters in Vizard <br /> </ title> <br /> </ head> <br /> <body> <br /> <form name="the_form" method="post"> <br /> **** Variable: <input> <br /> </ form> <br /> </ body> <br /> </ html> <br /> <br /> Why I can not see my page? <br /> I'm trying to get in this way <br /> (localhost:8080/vizhtml/http://localhost/DemoVizard1/index.html/)</div> </td> </tr> </table> <br /><table class="tborder" cellpadding="6" cellspacing="1" border="0" width="100%"> <tr> <td class="page"> <table cellpadding="0" cellspacing="0" border="0" width="100%"> <tr valign="bottom"> <td style="font-size:14pt">Jeff</td> <td class="smallfont" align="right">05-15-2014 12:11 AM</td> </tr> </table> <hr /> <div>If index.html is in the same directory as the vizard script you could use:<br /> <div style="margin:20px; margin-top:5px"> <div class="smallfont" style="margin-bottom:2px">Code:</div> <hr /><code style="margin:0px" dir="ltr" style="text-align:left">vizhtml.registerFile('','index.html')</code><hr /> </div>Then enter the following in the browser:<br /> <div style="margin:20px; margin-top:5px"> <div class="smallfont" style="margin-bottom:2px">Code:</div> <hr /><code style="margin:0px" dir="ltr" style="text-align:left">http://localhost:8080/vizhtml/index.html</code><hr /> </div></div> </td> </tr> </table> <br /> <br /> <table cellpadding="0" cellspacing="0" border="0" width="100%"> <tr valign="top"> <td class="smallfont">All times are GMT -7. The time now is <span class="time">08:51 PM</span>.</td> <td align="right"> <div class="smallfont"></div> </td> </tr> </table> <p class="smallfont" align="center"> Powered by vBulletin® Version 3.8.7<br />Copyright ©2000 - 2024, vBulletin Solutions, Inc. <br /> Copyright 2002-2023 WorldViz LLC </p> </body> </html>