JavaScript Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
User Name:
Password:
Remember me
 
Go Back   Dev Articles Community ForumsProgrammingJavaScript Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Display Modes
 
Unread Dev Articles Community Forums Sponsor:
  #1  
Old November 26th, 2007, 09:30 AM
Goobz Goobz is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Nov 2007
Location: Spanaway, Washington
Posts: 3 Goobz User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 14 m 48 sec
Reputation Power: 0
Send a message via ICQ to Goobz Send a message via AIM to Goobz Send a message via MSN to Goobz Send a message via Yahoo to Goobz Send a message via Skype to Goobz
Can't Figure Out My Error To Save My Life...

I am trying to see if anyone here can help me out... We have a corporate intranet website here, that when I try and load it up on any computer within the company, I get the following error from the Internet Explorer error page. We have been going back and forth with our servers, and even Tech Support from the company our video conferencing stuff is from, and everyone is scratching their head...

Line : 131
Char: 3
Error: %1!|s! failed with error 0x%2!8.8X!
%3!|s!
Code: 0
URL: http://movi.terex.com/

I have attached the "View Source" code from the webpage for everyone to view, and hopefully help me out I'm so lost! Thanks in advance for any help you folks can give...


Code:
<html>
<head>
  <link rel="shortcut icon" href="./favicon.ico" type="image/x-icon" />
  <title>TANDBERG Movi</title>
  <script src="javascripts/testcode.js" type="text/javascript"></script>
  <script src="javascripts/movi.js" type="text/javascript"></script>
  <script src="javascripts/moviui.js" type="text/javascript"></script>
  <script src="javascripts/moviservice.js" type="text/javascript"></script>
  <script src="javascripts/moviutil.js" type="text/javascript"></script>
  <script src="javascripts/prototype.js" type="text/javascript"></script>
  <link rel="stylesheet" type="text/css" href="movi.css" /> 
  <script type="text/javascript">
  // global movi object
  var movi = null;
  var doneInitActivex = 0;
  // global logger object
  var log = new tt.util.Logger();

  function initializeActiveX() {
    //ErbiumActiveX is initialized when it's inplaced: readyforinitevent
    if (doneInitActivex == 0) {
      doneInitActivex = 1;
      log.debug('initializeActiveX');
 
      var activex = $('conference');
      if (activex) {
        var args = {
          videoWidth: 352,
          videoHeight: 288,
          username: '687797',
          
          autodial: false,
          
          version: '2.45.1.3',
          server: '10.1.33.25',
          sipProxy: '10.1.33.25',
          sipRegistrar: 'movi.terex.com',
          displayname: '687797',
          bandwidth: 384,
          framerate: 30,
          debugMode: 'off',

          id: -1,
     
   
 
          servercertificate: 'MIIBoDCCAVygAwIBAgIRAKvKAwe3iQ5ac5DPCabTPiUwCQYHK  oZIzj0EATBhMREwDwYDVQQDEwhUQU5EQkVSRzEkMCIGCSqGSIb  3DQEBARYVdGFuZGJlcmdAdGFuZGJlcmcuY29tMQ8wDQYDVQQGE  wZOb3J3YXkxFTATBgNVBAoTDFRBTkRCRVJHIEFTQTAeFw0wNzA  2MTkwMDAwMDBaFw0wOTA2MTkwMDAwMDBaMEUxQzBBBgNVBAMTO  lNlcnZlcjphMWVlOTAxYzAwZDNkZWM4NTk4ZDI4YjdhNTZhYmN  kOWM0YTkyODFjOjUwQTAxMTI2OjEwSDAQBgcqhkjOPQIBBgUrg  QQAGAM0AAQAx7qsGInNoMw6/pXyMJiCq3jqwMBhqtzDAZM2XHH7t2m/upsmp0x/+iQmnZzez7pAe6MjMCEwHwYDVR0jBBgwFoAUGvWVoFfBr3hAJL  rJjo9frszrJBAwCQYHKoZIzj0EAQMzAAAPK/Yx+F+d0wOqM6KoRSWVXqUccB8fi0MA4v+sxlDmq3uZd9aHGeqM  DIAJI5Ja12Lc',
 
          serverurl: 'http://10.1.33.25/elpf/api'

        }
        
        try {
          movi = new tt.Movi(activex, args);
          if (!movi) {
            log.error("Can't load ActiveX element!");
          }
        } catch(err) {
          log.error("Can't load ActiveX element! " + err);
        }
      }
      else {
        log.error('Could not get activex dom element');
      }
    }
    else {
      log.debug('Already initialized...');
    }
  }

  function onLoadEventHandler() {

 
    var htmlText = '<object id="conference" classid="CLSID:B59E9766-9E06-4C80-A6CF-F3E8FB0A3E38" codebase="/ErbiumActiveX.cab#Version=2,45,1,3" width="352" height="288"></object>';
 


    tt.util.writeEmbeddedCode('utopiaActiveXControl', htmlText);

   
    // init the movi application object
    initializeActiveX();
  }
  
  window.onload = onLoadEventHandler;
  </script>
  <script language="JavaScript" for="conference" event="ReadyForInit()">
      initializeActiveX();
      movi.readyForInit();
  </script>
  <script language="JavaScript" for="conference" event="SipState(inState)">
    movi.sipState(inState);
  </script>
  <script language="JavaScript" for="conference" event="ActiveCallState(inCallState)">
    movi.activeCallState(inCallState);
  </script>
  <script language="JavaScript" for="conference" event="SipMessage(inMsg)">
    movi.sipMessage(inMsg);
  </script>
  <script language="JavaScript" for="conference" event="DTMF(inDTMF)">
    movi.dtmf(inDTMF);
  </script>
  <script language="JavaScript" for="conference" event="UpdateCaptureDevices(outAudio,outVideo)">
    movi.updateCaptureDevices(outAudio,outVideo);
  </script>
  <script language="JavaScript" for="conference" event="ErrorMessage(inError)">
    movi.errorMessage(inError);
  </script>
  <script language="JavaScript" for="conference" event="Error(inErrorNumber)">
    movi.Error(inErrorNumber);
  </script>
  <script language="JavaScript" for="conference" event="LicenseRetrievalSuccess()">
    movi.licenseRetrievalSuccess();
  </script>
  <script language="JavaScript" for="conference" event="LicenseInsufficient(FunctionalityID)">
    movi.licenseInsufficient(FunctionalityID);
  </script>
  <script language="JavaScript" for="conference" event="NewSession()">
    movi.newSession();
  </script>
  <script language="JavaScript" for="conference" event="EndSession()">
    movi.endSession();
  </script>
  <script language="JavaScript" for="conference" event="Busy()">
    movi.busy();
  </script>
  <script language="JavaScript" for="conference" event="PostReadyInit(initialized, mute)">
    logmsg("postReady event called");
    movi.postReadyInit(initialized, mute);  
  </script> 
 </head>
 <body onkeyup="tt.ui.event.keyEventHandler(event)" onunload="tt.ui.event.pageUnloadEventHandler()">
  <div align="center" valign="middle">  
   <table id="MarginTable" class="MarginTable">
    <tr valign="bottom">
     <td class="TopMenu">
      <table id="MenuTable">
       <tr>
        <td colspan="5" align="right" height="22">
         <input align="right" class="MenuItemReg" hidefocus="hidefocus" id="flag" type="image" id="flag" src="/images/gif/noflag.gif" title="Info flag!\nClick to check again" onClick="CheckIfFlags()" />
        </td>
       </tr>
       <tr>
        <td height="26" colspan="3" />
       </tr>
       <tr align="right">
        <td height="18" valign="bottom" class="MenuItemReg" width="352">
         <input type="image" hidefocus="hidefocus" id="Mike_mute" src="images/gif/micmute.gif" title="Mute microphone (toggle)"onclick="mute()" />

         <input type="image" id="Volume" src="images/gif/speakermute.gif" hidefocus="hidefocus" title="Mute speaker (toggle)" onclick="volumeoff()" />
         <input width="18" valign="center" type="image" id="wrench" src="images/gif/wrench.gif" hidefocus="hidefocus" title="Settings" border="0" onclick='movi.dowarnRefresh();' />
        </td>
        <td valign="middle" width="16" height="18" ></td>
       </tr>
      </table>
     </td>
    </tr>
    <tr>
     <td border="0" bordercolor="RED" cellpadding="0" align="center" height="288" width="383" style="filter: progid:DXImageTransform.Microsoft.Fade(Overlap=1.0  0); vertical-align: top;" id="content" valign="top"  >
      <div id="vidPane" class="vidFrameEmpty" wmode="transparent">
       <div id="vidHidden" style="display:none;">
        <img src="/images/gif/arrowxx.gif" style="visibility:hidden">
        <img src="/images/gif/arrowyy.gif" style="visibility:hidden">
       </div>
       <div id="vidColor" style="">
        <span>
         <div id="floatingOption" > </div>
         <div id="utopiaActiveXControl">
         </div>
        </span>
       </div>
      </div>
      <div id="div_settings" style="display:none">
<script type="text/javascript">
var fileTypes=["bmp","gif","png","jpg","jpeg"];
var outImage="picture";
var showMoreSettings = 0;
var videoIndex = -2;
var audioIndex = -2;
var audioCapIndex = -2;
var perfMonId = -1;


// Preview of the account picture
var newPicture;
function preview(what) {
  var source=what.value;
  var ext=source.substring(source.lastIndexOf(".")+1,source.length).toLowerCase();
  for (var i=0; i<fileTypes.length; i++) if (fileTypes[i]==ext) break;
  newPicture=new Image();
  if (i<fileTypes.length) {
    newPicture.src=source;
    loadNewPicture();
  } else {
    alert("The picture you selected is not valid!\n\nPlease select a picture file with one of the following extensions:\n\n"+fileTypes.join(", "));
  }
}

function loadNewPicture() {
  if (!newPicture.complete) {
    setTimeout("loadNewPicture()", 100);
    return;
  }
  if (parseInt(newPicture.fileSize) > 102400) {
    alert("The picture you selected is to large!\n\nThe maxium allowed file size is 100k.");
  } else {
    setTimeout("applyChanges()",200);
  }
}
function applyChanges() {
  var field=document.getElementById(outImage);
  var x=parseInt(newPicture.width);
  var y=parseInt(newPicture.height);
  field.style.display=(x<1 || y<1)?"none":"";
  field.src=newPicture.src;
  field.width=50;
  field.height=50;
}

function OnSelectVideo()
{
  videoIndex = document.getElementById("SelectVideo").selectedIndex;
  if(videoIndex>= conference.VideoDeviceCount)
    videoIndex = -1;
  
}
function OnSelectAudio()
{
  audioIndex = document.getElementById("SelectAudio").selectedIndex;
  if(audioIndex >= conference.AudioDeviceCount2)
    audioIndex = -1;

}

function OnSelectAudioCap()
{
  audioCapIndex = document.getElementById("SelectAudioCap").selectedIndex;
  if(audioCapIndex >= conference.AudioCapDeviceCount)
    audioCapIndex = -1;
}


function DisplayVideo()
 {
   var selectVideoTag="<select name='SelectVideo' style='display: inline;width: 200px;' onchange='javascript: OnSelectVideo()'";
   var tmpVideoTag = "";
   var videoCount = conference.UpdateVideoDeviceCount;
   var selectedVideoIndex = conference.ActiveVideoDeviceIndex; 
   var tmpHoverText = "";
   var i = 0;
   
   for (i = 0; i < videoCount; i++)
   {
       tmpVideoTag += "<option ";
       if(videoIndex > -1)
       {
        if(videoIndex == i)
         tmpVideoTag += " selected='selected' ";
        
       }else if(i == selectedVideoIndex)
       {
         videoIndex = i;
         tmpVideoTag += " selected='selected' ";
       }
       if(i == selectedVideoIndex)
        tmpHoverText = "title ='Active video index: " + selectedVideoIndex + " \n        " + conference.VideoDeviceName(i) + "'";
       
       tmpVideoTag += " value=" +i +" >" + conference.VideoDeviceName(i) + "</option>";
   }
   i++;
   tmpVideoTag += "<option value=" + i + " >Default device</option>"; 
   tmpVideoTag += "</select>";
   selectVideoTag += tmpHoverText + " >" + tmpVideoTag;
   document.getElementById("SpanVideo").innerHTML  = selectVideoTag;
 }
 function DisplayAudio()
 {
   var selectAudioTag="<select name='SelectAudio' style='display: inline;width: 200px;' onchange='javascript: OnSelectAudio()' ";
   var audioCount = conference.UpdateAudioDeviceCount2;
   var selectedAudioIndex = conference.ActiveAudioDeviceIndex2; 
   var tmpAudioTag = "";
   var tmpHoverText = "";
   var i = 0;

   for (i = 0; i < audioCount; i++)
   {
       tmpAudioTag += "<option ";
       if(audioIndex > -1)
       {
        if(audioIndex == i)
          tmpAudioTag += " selected='selected' ";
       }else if(i == selectedAudioIndex)
       {
        audioIndex = i;
        tmpAudioTag += " selected='selected' ";
       }
       
       if(i == selectedAudioIndex)
         tmpHoverText = "title ='Active audio index: " + selectedAudioIndex + " \n        " + conference.AudioDeviceName2(i) + "'";
       
       tmpAudioTag += " value=" +i +" >" + conference.AudioDeviceName2(i) + "</option>";
   }
   i++;
   tmpAudioTag += "<option value=" + i + " >Default device</option>";
   tmpAudioTag += "</select>";
   
   selectAudioTag += tmpHoverText +  " >" + tmpAudioTag;
   document.getElementById("SpanAudio").innerHTML  = selectAudioTag;
 }
 function DisplayAudioCap()
  {
    var selectAudioCapTag="<select name='SelectAudioCap' style='display: inline;width: 200px;' onchange='javascript: OnSelectAudioCap()' ";
    var audioCapCount = conference.UpdateAudioCapDeviceCount;
    var selectedAudioCapIndex = conference.ActiveAudioCapDeviceIndex; 
    var tmpAudioCapTag = "";
    var tmpHoverText = "";
    var i = 0;
 
    for (i = 0; i < audioCapCount; i++)
    {
        tmpAudioCapTag += "<option ";
        if(audioCapIndex > -1)
        {
          if(audioCapIndex == i)
           tmpAudioCapTag += " selected='selected' ";
          
        }else if(i == selectedAudioCapIndex)
        {
          tmpAudioCapTag += " selected='selected' ";
          audioCapIndex = i;
        }
        
        if(i == selectedAudioCapIndex)
         tmpHoverText = "title ='Active audio cap index: " + selectedAudioCapIndex + " \n        " + conference.AudioCapDeviceName(i) + "'";
         
        tmpAudioCapTag += " value=" +i +" >" + conference.AudioCapDeviceName(i) + "</option>";
    }
    i++;
    tmpAudioCapTag += "<option value=" + i + " >Default device</option>";
    tmpAudioCapTag += "</select>";
    
    selectAudioCapTag += tmpHoverText +  " >" + tmpAudioCapTag;   
    document.getElementById("SpanAudioCap").innerHTML  = selectAudioCapTag;
 }
 
 
 function SetConfigParemeters(theForm)
  {
    var activeCalls = conference.ActiveCall +1;
    
    if(activeCalls > 0)
    {
      alert("Can't change config settings during a call!\n Active call(s): " + activeCalls);
      return true;
    }
    if(audioIndex > -2)
      conference.AudioDeviceIndex2 = audioIndex;
    if(audioCapIndex > -2)
      conference.AudioCapDeviceIndex = audioCapIndex;
    if(videoIndex > -2)
      conference.VideoDeviceIndex = videoIndex;
       
    if(theForm)
    {
     perfMonId = -1;
     videoIndex= -1;
     audioIndex= -1;
     audioCapIndex = -1;
     theForm.submit();
    }
 }

 function DisplayPerfMon()
 {
    var perfMonTag = "<select name='performance_profile_id' style='font-family:tahoma;font-size:10px;height:18px;width:200'>";
    var serverPerfMonId = 1;
    var perfMonArray=new Array();
    var elPerfMon;
    var index = 1;
    
    perfMonArray[1] = " Automatic ";
    
    perfMonArray[2] = " Minimum ";
    
    perfMonArray[3] = " Medium ";
    
    perfMonArray[4] = " Maximum ";
    
    
    if(perfMonId < 0)
    {
 	perfMonId = serverPerfMonId;
    }
    
    for(index = 1; index < perfMonArray.length; index++)
    {
    	perfMonTag += "<option value='" + index + "'"; 
    	if(index == perfMonId)
    	{
    	 perfMonTag += " selected";
    	}
    	perfMonTag += ">" + perfMonArray[index] + "</option>";
    }
    perfMonTag += "</select><input type='hidden' id='performance_profile_id' name='performance_profile_id' />";
    
    document.getElementById("confPerfMon").innerHTML = perfMonTag;
    
 }
 
 function doShowConfig(displayview)
 {
    switch(displayview) 
    {
      case 2:
        document.getElementById("tabMyAccount").className = "tabConfigCss";
	document.getElementById("tabAudioAndVideo").className = "tabConfigSelCss";
        document.getElementById("tabConnection").className = "tabConfigCss";
        
        document.getElementById("configMyAccount").style.display = "none";
        document.getElementById("configAudioVideo").style.display = "";
        document.getElementById("configConnection").style.display = "none";
        
        
        
        DisplayVideo();
        DisplayAudio();
        DisplayAudioCap();
      break;
      case 1:
        document.getElementById("tabMyAccount").className = "tabConfigCss";
        document.getElementById("tabAudioAndVideo").className = "tabConfigCss";
        document.getElementById("tabConnection").className = "tabConfigSelCss";
        
        document.getElementById("configMyAccount").style.display = "none";
        document.getElementById("configAudioVideo").style.display = "none";
        document.getElementById("configConnection").style.display = "";
        
        DisplayPerfMon();
       break;
      default:
        document.getElementById("tabMyAccount").className = "tabConfigSelCss";
	document.getElementById("tabAudioAndVideo").className = "tabConfigCss";
        document.getElementById("tabConnection").className = "tabConfigCss";
        
        document.getElementById("configMyAccount").style.display = "";
        document.getElementById("configAudioVideo").style.display = "none";
        document.getElementById("configConnection").style.display = "none";

        break;
     }
      
 }
 
 function doConfCancel()
 {
   perfMonId = -1;
   videoIndex= -1;
   audioIndex= -1;
   audioCapIndex = -1;
   
   if(document.getElementById("configConnection").style.display == "") 
     DisplayPerfMon();
   
   if(document.getElementById("configAudioVideo").style.display == "")
   {
     DisplayVideo();
     DisplayAudio();
     DisplayAudioCap();
   }
   
   showView('utopiaActiveXControl');
 }
</script>

<table width="352" height="20">
 <tr>
 <td>
 </td>
 </tr>
</table>
 <table width="352">
 <tr>
  <td width="100" id="tabMyAccount" onclick="javascript: doShowConfig(0);" title="My Account" class="tabConfigSelCss">Account</td>
  <td width="100" id="tabConnection" onclick="javascript: doShowConfig(1);" title="Connection");"  class="tabConfigCss">Connection</td>
  <td width="100" id="tabAudioAndVideo"   onclick="javascript: doShowConfig(2);" title="Audio/Video");"  class="tabConfigCss" >Video/Audio</td>
  <td>&nbsp;</td>
 </tr> 
</table>
<form action="/client/update/258?form=settingsform" enctype="multipart/form-data" method="post">
<table width="352" height="170" style="background-image: url('./images/gif/white_bg_round_t.gif');">
 <tr>
  <td>

 <div id="configMyAccount">   
  <table cellspacing="2" cellpadding="2" border="0" bordercolor="red">
   <tr>
    <td class="settingshead">My Account</td> 
   </tr>
   <tr>
    <td align=left class="confPrompt">&nbsp;&nbsp;Display Name:</td>
    
    <td align="left" colspan="3" title="Personalise your Name"><input type="text" class="inputtext" maxlength="30" name="displayname" value="687797" /></td>
    
   </tr>
   
   <tr>
     <td align="left" class="confPrompt">&nbsp;&nbsp;Current Address (URI):</td>
     <td align="left" class="confPrompt" colspan="3" title="Your current unique ID" width="200">687797@movi.terex.com</td>
   </tr> 
   <tr>
      <td align=left class="confPrompt">&nbsp;&nbsp;Change Name:</td>
      <td align=left colspan="3" title="Change adress (URI) name:
URL" width="200"><input type="text" class="inputtext" maxlength="30" name="theusername" value="687797" /></td> 
   </tr>
   
   <tr>
   <!-- check for cache v1 -->
    <td align=left class="confPrompt">&nbsp;&nbsp;Share My Details:</td>
    <td align=left class="confPrompt" colspan="3" title="Send an e-mail with all your Movi contact details!">
    <a href="mailto:?body=Hi%21%0A%0AMy%20user%20name%20in%20Mo  vi%20is%3A%20%27687797%27%20and%20my%20display%20n  ame%20is%3A%20%27687797%27.%20%0AClick%20this%20li  nk%20to%20call%20me%3A%20http%3A%2F%2F10.1.33.25%2  F%3Fdial%3D687797%40movi.terex.com%26auto%20%0A%0A  Please%20use%20Internet%20Explorer.&subject=My%20Movi%20contact%20details"><img src=images/mail.gif></a>
   </tr>                                                                                                                                                                                                
   <tr>
    <td></td>
    <td colspan="2" align=left></td>
   </tr> 
   <tr>
    <td></td>
    <td colspan="2" align=left></td>
    <td></td>
   </tr>
  <div id="commitdiv" style= "display: none">
   <input name="commit" type="submit" value="Done" />
  </div>
 </table>
 <table height="20"> 
  <tr>
   <td>&nbsp;
   </td>
  </tr>
</table>
</div>

<div id="configConnection" style="display:none">
<table cellspacing="2" cellpadding="2" border="0" bordercolor="red" align="left">
 <tr align=left>
  <td  class="settingshead">Connection</td>
 </tr>
   <tr>
    <td align=left class="confPrompt" title="Note that a change in performance requires a restart of the video call session!">&nbsp;Performance:</td>
    <td align=left colspan="3" class="confPrompt" title="Note that a change in performance requires a restart of the video call session! class="confPrompt" width="200"">   
    <div id="confPerfMon">
     <select name="performance_profile_id" style='font-family:tahoma;font-size:10px;height:18px;width:200'> 
 
      <option value="1" selected > Automatic </a>
 
      <option value="2"  > Minimum </a>
 
      <option value="3"  > Medium </a>
 
      <option value="4"  > Maximum </a>
 
     </select>
    <input type="hidden" id="performance_profile_id" name="performance_profile_id" />
    </div>
   </td>
   <td colspan="2"></td>
  </tr>
</table>
<table height="140"> 
 <tr>
  <td>&nbsp;
  </td>
 </tr>
</table>
</div>

<div id="configAudioVideo" style="display:none">

<table cellspacing="2" cellpadding="2" border="0" bordercolor="red">
 <tr>
  <td  class="settingshead">Audio and Video</td>
 </tr>
 <tr> 
  <td class="confPrompt">Video Capture:</td>
  <td colspan="3" class="confPrompt" width="200">
   <div id='DivVideo'>
    <span id='SpanVideo'>
     <select name='SelectVideo'   onchange='javascript: OnSelectVideo()'>
      <option value='0' selected='selected'>WebCam 1</option>
      <option value='1'>WebCam 2</option>
     </select>
    </span> 
   </div>
  </td>  
 </tr>
 <tr>
  <td class="confPrompt">Audio Capture:</td>
  <td colspan="3" class="confPrompt" width="200">
   <div id='DivAudioCap'>
    <span id='SpanAudioCap'> 
     <select name='SelectAudioCap' style='font-family:tahoma;font-size:8px;height:18px;width:200'  onchange='javascript: OnSelectAudioCap()'>
      <option value='0' selected='selected'>AudioCap 1</option> 
      <option value='1'>AudioCap 2</option> 
     </select>
    </span>
   </div>
  </td>
 </tr> 
 <tr>
  <td class="confPrompt">Audio Out:</td>
  <td colspan="3" class="confPrompt" width="200">
   <div id='DivAudio'>
    <span id='SpanAudio'>
     <select name='SelectAudio' style='font-family:tahoma;font-size:8px;height:18px;width:200'  onchange='javascript: OnSelectAudio()'>
       <option value='0' selected='selected'>Audio 1</option>
       <option value='1'>Audio 2</option> 
     </select>
   </span>
  </div>
  </td>
  </tr>
</table>
<table height="40"> 
 <tr>
  <td>&nbsp;
  </td>
 </tr>
</table>
</div>
</td>
</tr>
</table>
<table valign="bottom" style="background-image: url('./images/gif/white_bg_round_b.gif');" width="352" height="45" >
  <tr valign="bottom">
   <td >
   <tr>
  <td class="confPrompt" title="TANDBERG">
  &nbsp;&nbsp;&nbsp;v.2.45.1.3
  <br />&nbsp;&nbsp;&nbsp;<a href="MoviLicense.html" target="_blank">Copyright&copy 2007 TANDBERG</a> 
  <br />&nbsp;&nbsp;&nbsp;<a href="MoviEULA.html" target="_blank">Movi EULA</a>
  </td>
     <td colspan="3" >
      <div class="dropdownButton" onClick="doConfCancel()" style="display: inline" 
                onmouseover="document.getElementById('cancelb').src = './images/gif/cancel_selected.gif'"
                onmouseout="document.getElementById('cancelb').src = './images/gif/cancel.gif'">
       <table cellspacing="0" cellpadding="0" border="0" width="60" title="Discard changes, and return to video">
        <tr align="right">
         <td><img id="cancelb"  src="images/gif/cancel.gif"  /></td>
  
        </tr>
       </table>
      </div>  &nbsp;
      <div class="dropdownButton" onclick="javascript: SetConfigParemeters(forms[0]);" style="display: inline"
                onmouseover="document.getElementById('saveb').src = './images/gif/save_selected.gif'"
                onmouseout="document.getElementById('saveb').src = './images/gif/save.gif'">
       <table cellspacing="0" cellpadding="0" border="0" width="60" title="Save changes and restart.
Note that a change in more setting requires a restart of the application!"">
        <tr align="right">
         <td><img src="images/gif/save.gif" id="saveb"/></td>
        </tr>
       </table>
      </div>
   </td>
  <td>&nbsp;&nbsp;</td>
 </tr>
</table>

</form>

      </div>
      <div id="div_incomingalert" style="display:none">
<center>
<table cellspacing="0" cellpadding="2" border="0" bordercolor="red" width="90%" height="100%">
  <tr>
   <td width=345px" align="center" >
    <br />
    <div id="div_caller"></div>
    <br />
    <span class="incomingcall" id="mycaller"></span>
    <p />
    <class="settingsprompt"><b>
    <script language="javascript">
    <!--
     var message="Incoming call..."
     var neonbasecolor="orange"
     var neontextcolor="white"
     var flashspeed=100  //in milliseconds

     var n=0
     if (document.all||document.getElementById){
	document.write('<font color="'+neonbasecolor+'">')
	for (m=0;m<message.length;m++)
	document.write('<span id="neonlight'+m+'">'+message.charAt(m)+'</span>')
	document.write('</font>')
     }else document.write(message)

     function crossref(number){
	var crossobj=document.all? eval("document.all.neonlight"+number) : document.getElementById("neonlight"+number)
	return crossobj
     }

     function neon(){
      //Change all letters to base color
      if (n==0){
        for (m=0;m<message.length;m++)
	//eval("document.all.neonlight"+m).style.color=neonbasecolor
	crossref(m).style.color=neonbasecolor
       }

      //cycle through and change individual letters to neon color
      crossref(n).style.color=neontextcolor

      if (n<message.length-1)
        n++
      else{
	n=0
	clearInterval(flashing)
	setTimeout("beginneon()",1500)
	return
       }
     }

     function beginneon(){
      if (document.all||document.getElementById)
        flashing=setInterval("neon()",flashspeed)
      }
     beginneon()
      //-->
    </script>
    </b>
    <p />
    <span id="mycallerstat"></span>
    </class>
   </td>
  </tr>
 </table>
</center>
      </div>
      <div id="div_errormessages" style="display:none">
<center>
<table cellspacing="0" cellpadding="2" border="0" bordercolor="red" width="90%" height="100%">
  <tr>
    <td colspan="3" align="center" class="incomingcall">
      <br>
      <span class="usermessages" id="usermessages"></span>
      
      <p>  
      </td>
  </tr>
 </table>
</center>

      </div>
      <div id="div_contacts"  style="display:none;">
      </div>
      <div id="div_recentcalls" style="display:none;">
      </div>
     </td>
    </tr>
    <tr>  
     <td valign="bottom" class="BottomMenu" height="30">
      <center>
       <div>
       <input id="StatusInfoBar"  class="displayinfotext" readonly="readonly"  style="width: 349px;text-align:center;color: black;background-color: transparent;" type="text" value="Not intialized!" />
       </div> 
      </center> 
     </td>
    </tr>
    <tr>
     <td class="BottomMenu" valign="bottom">
      <table cellpadding="3px" border="0px solid" heigth="100%" width="100%">
       <tr>
        <td class="MenuItemCall" valign="top" align="center"><input  type="image" src="images/gif/call.gif" hidefocus="hidefocus" title="Place or accept call" name="Call" id="Call" onClick='movi.answer() || movi.invite2(true)'  
            onmouseout="tt.ui.callImgGreen(0,0)"
            onmouseover="tt.ui.callImgGreen(1,0)" 
            onmousedown="tt.ui.callImgGreen(2,0)" 
            onmouseup="tt.ui.callImgGreen(3,0)"/>
        </td>
        <td  valign="center" align="right" >
         <input type="image" hidefgifocus="hidefocus" title="Click to search the phonebook" src="images/gif/contacts.gif" onclick='showView("div_contacts"); tt.ui.phonebook.highlightEntry(0); tt.ui.phonebook.updatePhonebookWithOffset();' onkeypress="tt.ui.phonebook.callUri.setFocus();"/>
        </td>
        <td class="MenuItem" valign="center" align="right" width="20">
         <input  type="text" width="18" valign="center" align="center" title="Enter name or URI to search or call" id="CallUri" name="CallUri" value="" onkeypress="return tt.ui.event.callUriKeyEventHandler(event)"/>
        </td>
        <td align="right" valign="center">
         <input  type="image" hidefgifocus="hidefocus" title="Recent calls" src="images/gif/recentcalls.gif" onclick="tt.ui.phonebook.showRecentCalls();" onkeypress="tt.ui.phonebook.callUri.setFocus();"/>
        </td>
        <td class="MenuItemCall" valign="top" align="center"><input   type="image" src="images/gif/end_call.gif" hidefocus="hidefocus" title="End or reject call" id="Hangup" onClick="javascript: movi.hangup()" 
            onmouseout="document.getElementById('Hangup').src = 'images/gif/end_call.gif'" 
            onmouseover="document.getElementById('Hangup').src = 'images/gif/end_call_hover.gif'" 
            onmousedown="document.getElementById('Hangup').src = 'images/gif/end_call.gif'" 
            onmouseup="document.getElementById('Hangup').src = 'images/gif/end_call_hover.gif'"/>
        </td>
       </tr>
      </table>
     </td>
    </tr>
   </table>

   </div>
 </body>
</html>

Last edited by Goobz : November 26th, 2007 at 09:33 AM. Reason: Missed one character in error message...

Reply With Quote
  #2  
Old December 1st, 2007, 03:44 PM
Mittineague's Avatar
Mittineague Mittineague is offline
Contributing User
Dev Articles Novice (500 - 999 posts)
 
Join Date: Jul 2005
Location: West Springfield, Massachusetts
Posts: 549 Mittineague User rank is Private First Class (20 - 50 Reputation Level)Mittineague User rank is Private First Class (20 - 50 Reputation Level) 
Time spent in forums: 1 Week 1 Day 7 h 3 m
Reputation Power: 4
strange error

Hi Goobz, welcome to the forum.
That's an intimidating amount of code. Is 'line 131' this line
Code:
movi.newSession();
??
The error message looks very odd to me. I'm guessing it may be a character encoding issue, or maybe something to do with serialized data.
__________________
WP plugins - Error Reporting, Clean Options
http://www.mittineague.com/dev/er.php
http://www.mittineague.com/dev/co.php

Reply With Quote
  #3  
Old December 3rd, 2007, 08:32 AM
Goobz Goobz is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Nov 2007
Location: Spanaway, Washington
Posts: 3 Goobz User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 14 m 48 sec
Reputation Power: 0
Send a message via ICQ to Goobz Send a message via AIM to Goobz Send a message via MSN to Goobz Send a message via Yahoo to Goobz Send a message via Skype to Goobz
Quote:
Originally Posted by Mittineague
Hi Goobz, welcome to the forum.
That's an intimidating amount of code. Is 'line 131' this line
Code:
movi.newSession();
??
The error message looks very odd to me. I'm guessing it may be a character encoding issue, or maybe something to do with serialized data.


According to Microsoft Word 2003, Here's what it comes up with...

124 <script language="JavaScript" for="conference" 125event="LicenseRetrievalSuccess()">
126 movi.licenseRetrievalSuccess();
127 </script>
128 <script language="JavaScript" for="conference" 129event="LicenseInsufficient(FunctionalityID)">
130 movi.licenseInsufficient(FunctionalityID);
131 </script>
132 <script language="JavaScript" for="conference" 133event="NewSession()">
134 movi.newSession();
135 </script>

What gets me, is our SIP server has unlimited licensing for this product, but it looks like it's kickin it back, unless there's something I'm just not seeing....

Reply With Quote
  #4  
Old December 3rd, 2007, 01:27 PM
Mittineague's Avatar
Mittineague Mittineague is offline
Contributing User
Dev Articles Novice (500 - 999 posts)
 
Join Date: Jul 2005
Location: West Springfield, Massachusetts
Posts: 549 Mittineague User rank is Private First Class (20 - 50 Reputation Level)Mittineague User rank is Private First Class (20 - 50 Reputation Level) 
Time spent in forums: 1 Week 1 Day 7 h 3 m
Reputation Power: 4
error

I don't know if this will help, but I found some .c file code that looks like
Code:
	if (!result && GetLastError() != ERROR_INSUFFICIENT_BUFFER)
	{
		rc = GetLastError();
		DPRINT("SetupDiGetDriverInfoDetail() failed with error 0x%lx\n", rc);
		goto cleanup;
	}
If you look at the LicenseInsufficient function, does the "failed with error" look anything like "%1!|s! failed with error 0x%2!8.8X! %3!|s!".
If so, that should at least help determine what's causing the error.

Reply With Quote
  #5  
Old December 3rd, 2007, 01:31 PM
Goobz Goobz is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Nov 2007
Location: Spanaway, Washington
Posts: 3 Goobz User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 14 m 48 sec
Reputation Power: 0
Send a message via ICQ to Goobz Send a message via AIM to Goobz Send a message via MSN to Goobz Send a message via Yahoo to Goobz Send a message via Skype to Goobz
Quote:
Originally Posted by Mittineague
I don't know if this will help, but I found some .c file code that looks like
Code:
	if (!result && GetLastError() != ERROR_INSUFFICIENT_BUFFER)
	{
		rc = GetLastError();
		DPRINT("SetupDiGetDriverInfoDetail() failed with error 0x%lx\n", rc);
		goto cleanup;
	}
If you look at the LicenseInsufficient function, does the "failed with error" look anything like "%1!|s! failed with error 0x%2!8.8X! %3!|s!".
If so, that should at least help determine what's causing the error.


That's actually exactly what my error says. Are you talking about when I click on the Yellow Exclamation point on the bottom left of the IE window? If so, then yes that's the error. The complete error is...

Line : 131
Char: 3
Error: %1!|s! failed with error 0x%2!8.8X! %3!|s!
Code: 0
URL: http://movi.terex.com/

Reply With Quote
  #6  
Old December 3rd, 2007, 06:08 PM
Mittineague's Avatar
Mittineague Mittineague is offline
Contributing User
Dev Articles Novice (500 - 999 posts)
 
Join Date: Jul 2005
Location: West Springfield, Massachusetts
Posts: 549 Mittineague User rank is Private First Class (20 - 50 Reputation Level)Mittineague User rank is Private First Class (20 - 50 Reputation Level) 
Time spent in forums: 1 Week 1 Day 7 h 3 m
Reputation Power: 4
error

I don't mean the error message, but the file that's generating the error message. That is, (most likely) the file that has the LicenseInsufficient function in it. If you can find the conditional test that's throwing the error, you will have some idea as to what the problem is.

Reply With Quote
  #7  
Old January 28th, 2008, 05:59 AM
boeli boeli is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Jan 2008
Posts: 1 boeli User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 3 m 22 sec
Reputation Power: 0
Hi Goobz,

Were you able to fix it, because I'm having the same problem.

Regards, boeli

Reply With Quote
Reply

Viewing: Dev Articles Community ForumsProgrammingJavaScript Development > Can't Figure Out My Error To Save My Life...


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support |