Viewpoint Forums
Viewpoint Forums
Viewpoint Media Player Support
Viewpoint with ie7 and Vista|
Go
![]() |
New
![]() |
Find
![]() |
Notify
![]() |
Tools
![]() |
Reply
![]() |
|
|
Member |
Hi!
On my own development and your viewpoint 3d stuff I always get the javascript error "'undefined' is null or not an object". On this PC Viewpoint issn´t installed yet, but no option about downloading appears. What´s the problem with Vista? With another PC and Windows XP Pro running and the ie7 it still works. I uses the newest Version of the MTS3Interface.js with the Version: VET_IfVer="05.00.02.13", thx for help |
||
|
|
Member |
is the path to MTS3Interface correct? Please check your mtx file and make sure the path is correct.
|
|||
|
|
Member |
You mean the path in the top of the html-file?
<script language="javascript" src="MyBed_FirstProject_resources/MTS3Interface.js"></script> Or should I make an / before the whole path like: <script language="javascript" src="/MyBed_FirstProject_resources/MTS3Interface.js"></script> Which path in the mtx-file you mean? This?: <MTSTimeElem Type="MTSStream" Name="MyBed_FirstProject" Path="MyBed_FirstProject.mts"> <Target Name="MTSInstance.MyBed_FirstProject" /> </MTSTimeElem> Beili: Do you have Vista installed on your PC? So I can send you the URL to my project? thx, xai |
|||
|
|
EnIgMaTiCScOrPioN Member |
Hi Xai,
Try looking for references on this page.... http://developer.viewpoint.com/dc/features/mts5/index.shtml Also, can you show how is your constructor line in the HTML file written? Cheers, Anup |
|||
|
|
Member |
Nice url, thanks.
My HTML-File: <!-- Viewpoint Generic Media Publisher file. --> <!-- Build 3.5.0.131 --> <!-- Created: Wed May 16 23:07:00 2007 --> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <html> <title>Viewpoint Experience Technology</title> <head> <script language="javascript" src="MyBed_FirstProjekt_resources/MTS3Interface.js"></script> <script language="javascript"> <!-- var vmp; ..... </script> </head> <body> ... <script language="javascript"> if (VMPInstalled()) { var vmp = new MTSPlugin("MyBed_FirstProjekt.mtx", 800, 600, "bkey.txt", 'simple', ''); }else if (VMPSupported()){ document.write("<a href='" + VMPInstallURL() + "'>Click here to download VMP!</a>"); }else{ document.write("You cannot view the content! VMP issn´t still installated!"); } </script> ... Again: On my Windows XP IE7 everything runs perfect, only on Windows Vista + IE7 no missing Viewpoint Plugin appears, no errors and no installation-request pops up?!?!? |
|||
|
|
EnIgMaTiCScOrPioN Member |
What is the line number of the JS error you get?
Can you send the URL to your project? |
|||
|
|
Member |
you need a "/"
<script language="javascript" src="/MyBed_FirstProjekt_resources/MTS3Interface.js"></script> |
|||
|
|
Member |
I do have a Vista machine, you can send me the URL. But I'm pretty sure it's the "/"
|
|||
|
|
Member |
No,
width "/" nothing is shown at my windows xp ie7/firefox and all others. Here is the Link: http://www.conarts.de/mybox2/mybox2.html I add an attachment in which the javascript-error is shown on my Vista system. thx for help, xai Aufzeichnen.JPG (39 KB, 31 downloads) Javascript Error Picture |
|||
|
|
EnIgMaTiCScOrPioN Member |
The JS error is at line number 242 in the HTML. The MTS3Interface is defined at line number 8 of the HTML file. So the error you encounter is at line number 234 of the MTS3Interface.js file. Here is the code at that line:
function VET_Ax() { if (typeof _VET_Ax != "undefined") return _VET_Ax(); else { if (VET_Vista) { var vmpCreated = false; try { var vetObj = new ActiveXObject("AxMetaStream.MetaStreamCtl"); } catch(e) { if (e.description.indexOf("Automation") != -1) return false } var VMPHostVer = vetObj.PluginCommand('GetVersion(Host)',0,0); if (VMPHostVer != "No base control" && VMPHostVer >= VET_VistaHostMin) return true; else return false; } if(VET_IEChk(VET_AxPriNa)==0)return true if(VET_AltPlugin==1&&VET_IEChk(VET_AxSecNa)==0){VET_AxID=VET_AxSecID;return true} return false } } Any ideas Admin? |
|||
|
|
Member |
I looked at the page source of the link, you have to take away the if statement. With the if-statement, content only plays when VMP is installed and does nothing when VMP is not installed. So you only need
var vmp = new MTSPlugin("mybox2.mtx", "800", "600", "", "simple", ""); and remove the IF. If you want to use the click based installation,thenleave the IF-statement and add else{ document.write('<a href="javascript:VMPInstallWithPopup()">click to install VMP</a>'); |
|||
|
|
Member |
Hmm,
three days before, I used: if (VMPInstalled()) { var vmp = new MTSPlugin("mybox2.mtx", 800, 600, "bkey.txt", "popUp", "ContentType=1"); }else if (VMPSupported()){ document.write("<a href='" + VMPInstallURL() + "'>Click here to download VMP!</a>"); }else{ document.write("You cannot view the content! VMP issn´t still installated!"); } and the same error appears... But now I delete the if-statement. After work I will test it at home...at work I have no vista |
|||
|
|
Member |
OK, now I get another error..see the attachment. I guess the ie7 issn´t able to install vmp? Why? My ie7 with WindowsXP show me in a upper frame an installbutton, ie7 with Vista not
Could it be, that the security options of the ie7 block the install frame of viewpoint? What about other Vista users? Can you run the url http://www.conarts.de/mybox2/mybox2.html without any problems? This message has been edited. Last edited by: xai, Aufzeichnen.JPG (39 KB, 22 downloads) The next error message |
|||
|
|
Member |
I open the link in IE 7 XP and IE 7 Vista, both prompt me for the NE installer. It is working, I didn't get any error msg. Please clear your IE cache and VMP cache then try again.
|
|||
|
|
Member |
Hi Beili,
so now my application is running on your vista ie7 mashine and before, when I had the if-statement around var vmp = new MTSPlugin(..), it didn´t work? Is that right? |
|||
|
|
Member |
That's right.
|
|||
|
|
Member |
Hmm, on my system I get the error in line 683 with "vmp is null or not an object" and on a friends PC with vista and ie7 he gets the first error I posted in line 242 with: "undefined is null or not an object".
Could I it be? I hate vista now Someone else her who have the same error at http://www.conarts.de/mybox2/mybox2.html ? |
|||
|
|
Member |
Have you try to delete the resource folder? On the vista machine, go to your Current User->AppData->LocalLow->Viewpoint->Viewpoint Media Player, delete the resource folder and delete IE cache, then try to load the page again.
|
|||
|
|
Member |
? On the my own Vista PC, no Viewpoint is installed! I test the whole time on Vista Systems where no Viewpoint is installed yet, so the Viewpoint-installframe should pop up...but I always get the js error inline 242.
Today I test on an PC running vista, standing in our company. The same error in line 242 with: "undefined is null or not an object". Why Vista dont you "the install viewpoint frame"? |
|||
|
| Powered by Eve Community |
| Please Wait. Your request is being processed... |
|
Viewpoint Forums
Viewpoint Forums
Viewpoint Media Player Support
Viewpoint with ie7 and Vista
