![]() |
|
#1
|
|||
|
|||
I want to embed my javascript based visualization model into a screen in virtual world. However vizhtml is not working with javascript. Nothing is displayed if I use vizhtml module to load website. For example if I try to open website www.d3js.org and when I go to examples page (containing Javascript based models) then nothing is displayed on the screen.
Is it possible to execeute that Javascript in window? Actually I want to implement similar model which is given in d3js.org (http://mbostock.github.com/d3/talk/2...-parallel.html). Please provide the suitable solution. Thanks |
#2
|
|||
|
|||
The embedded browser is based on the Windows native web browser control. It appears that the browser defaults to IE7 mode, and the web page you are trying to view is not compatible with IE7.
However, you can specify which version of IE to use for the embedded browser through a registry setting. The following sample code will force the embedded browser to use IE9 and then opens the sample page you previously mentioned. Code:
import viz viz.go() import _winreg reg = _winreg.OpenKey(_winreg.HKEY_CURRENT_USER, r'Software\Microsoft\Internet Explorer\Main\FeatureControl\FEATURE_BROWSER_EMULATION',0,_winreg.KEY_ALL_ACCESS) _winreg.SetValueEx(reg,'VizHTMLViewer.exe',0,_winreg.REG_DWORD,9999) viz.window.displayHTML('http://mbostock.github.com/d3/talk/20111116/iris-parallel.html') |
![]() |
Thread Tools | |
Display Modes | Rate This Thread |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Realistic Light and Shadows Using Vizard and 3DS Max | jde | Vizard | 4 | 07-13-2012 10:58 AM |
Vizard 4 Beta Testing | farshizzo | Announcements | 0 | 02-01-2011 10:46 AM |
Vizard 4 Beta Testing | farshizzo | Vizard | 0 | 02-01-2011 10:46 AM |
Vizard tech tip: Using the Python Imaging Library (PIL) | Jeff | Vizard | 0 | 03-23-2009 11:13 AM |
Vizard tech tip: Text to Speech | Jeff | Vizard | 1 | 01-15-2009 09:39 PM |