Viewpoint Developer Central    Viewpoint Forums    Viewpoint Forums  Hop To Forum Categories  Viewpoint Media Player Support    Viewpoint with ie7 and Vista

Moderators: e_phoenix13
Go
New
Find
Notify
Tools
Reply
  
-star Rating Rate It!  Login/Join 
xai
Member
Posted
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
 
Posts: 20 | Registered: October 01, 2006Reply With QuoteEdit or Delete MessageReport This Post
Member
Picture of beili
Posted Hide Post
is the path to MTS3Interface correct? Please check your mtx file and make sure the path is correct.
 
Posts: 13 | Registered: May 24, 2007Reply With QuoteEdit or Delete MessageReport This Post
xai
Member
Posted Hide Post
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
 
Posts: 20 | Registered: October 01, 2006Reply With QuoteEdit or Delete MessageReport This Post
EnIgMaTiCScOrPioN
Member
Picture of e_phoenix13
Posted Hide Post
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
 
Posts: 557 | Location: India | Registered: February 12, 2003Reply With QuoteEdit or Delete MessageReport This Post
xai
Member
Posted Hide Post
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?!?!?
 
Posts: 20 | Registered: October 01, 2006Reply With QuoteEdit or Delete MessageReport This Post
EnIgMaTiCScOrPioN
Member
Picture of e_phoenix13
Posted Hide Post
What is the line number of the JS error you get?
Can you send the URL to your project?
 
Posts: 557 | Location: India | Registered: February 12, 2003Reply With QuoteEdit or Delete MessageReport This Post
Member
Picture of beili
Posted Hide Post
you need a "/"
<script language="javascript" src="/MyBed_FirstProjekt_resources/MTS3Interface.js"></script>
 
Posts: 13 | Registered: May 24, 2007Reply With QuoteEdit or Delete MessageReport This Post
Member
Picture of beili
Posted Hide Post
I do have a Vista machine, you can send me the URL. But I'm pretty sure it's the "/"
 
Posts: 13 | Registered: May 24, 2007Reply With QuoteEdit or Delete MessageReport This Post
xai
Member
Posted Hide Post
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

ImageAufzeichnen.JPG (39 KB, 31 downloads) Javascript Error Picture
 
Posts: 20 | Registered: October 01, 2006Reply With QuoteEdit or Delete MessageReport This Post
EnIgMaTiCScOrPioN
Member
Picture of e_phoenix13
Posted Hide Post
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?
 
Posts: 557 | Location: India | Registered: February 12, 2003Reply With QuoteEdit or Delete MessageReport This Post
Member
Picture of beili
Posted Hide Post
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>');
 
Posts: 13 | Registered: May 24, 2007Reply With QuoteEdit or Delete MessageReport This Post
xai
Member
Posted Hide Post
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 Frown
 
Posts: 20 | Registered: October 01, 2006Reply With QuoteEdit or Delete MessageReport This Post
xai
Member
Posted Hide Post
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 Frown
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,

ImageAufzeichnen.JPG (39 KB, 22 downloads) The next error message
 
Posts: 20 | Registered: October 01, 2006Reply With QuoteEdit or Delete MessageReport This Post
Member
Picture of beili
Posted Hide Post
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.
 
Posts: 13 | Registered: May 24, 2007Reply With QuoteEdit or Delete MessageReport This Post
xai
Member
Posted Hide Post
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?
 
Posts: 20 | Registered: October 01, 2006Reply With QuoteEdit or Delete MessageReport This Post
Member
Picture of beili
Posted Hide Post
That's right.
 
Posts: 13 | Registered: May 24, 2007Reply With QuoteEdit or Delete MessageReport This Post
xai
Member
Posted Hide Post
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 Smile
Someone else her who have the same error at http://www.conarts.de/mybox2/mybox2.html ?
 
Posts: 20 | Registered: October 01, 2006Reply With QuoteEdit or Delete MessageReport This Post
Member
Picture of beili
Posted Hide Post
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.
 
Posts: 13 | Registered: May 24, 2007Reply With QuoteEdit or Delete MessageReport This Post
xai
Member
Posted Hide Post
? 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"?
 
Posts: 20 | Registered: October 01, 2006Reply With QuoteEdit or Delete MessageReport This Post
  Powered by Eve Community  
 

Viewpoint Developer Central    Viewpoint Forums    Viewpoint Forums  Hop To Forum Categories  Viewpoint Media Player Support    Viewpoint with ie7 and Vista