Solved

javascript error

Posted on 2010-09-16
2
412 Views
Last Modified: 2013-11-24
I am getting the following error when I try to view a video from mobile vision

Webpage error details

User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; Trident/4.0; GTB6.5; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; InfoPath.2; .NET4.0C)
Timestamp: Thu, 16 Sep 2010 12:44:56 UTC


Message: Object expected
Line: 4
Char: 5
Code: 0
URI: http://mobilevision/flashback/common/script-6.js

Can anyone help me with this?
0
Comment
Question by:colc-mis
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 40

Accepted Solution

by:
gurvinder372 earned 500 total points
ID: 33691307
not able to access your link
0
 

Author Comment

by:colc-mis
ID: 33886544
This is the message that appears when the link is accessed.

function play(seq, fileURL, daysCache, sizeCache, useCache, ftpPass, ftpUsr,
              officer, unitId, startTime, endTime, mediaLength,  units, recReason) {

    var test = 'doScriptPlay' in parent.frames[0].document.ScriptLauncher2 ? true : false;
    if (test) {
            parent.frames[0].document.ScriptLauncher2.doScriptPlay(fileURL, daysCache, sizeCache, useCache, ftpPass, ftpUsr,
                officer, unitId, startTime, endTime, mediaLength, "0", units, recReason);
    } else {
        alert("Java version 1.5 or greater is needed to view videos.\n You can download java from the following places:\n\t1) From this application on the 'System Status' -> 'System Tools' page.\n\t2) Online from www.java.com");
    }
    return false;
}

function doLiveSelect(obj) {
    var selectedItem = obj.selectedIndex;
    var selectedText = obj.options[selectedItem].value;
    var values = selectedText.split('~');
    doLive(values[0], values[1], values[2], values[3]);
}

function doLive(address, port, usr, pass) {
    var test = 'doLivePlay' in parent.frames[0].document.ScriptLauncher2 ? true : false;
    if (test) {
      parent.frames[0].document.ScriptLauncher2.doLivePlay(address, port, usr, pass);
    } else {
        alert("Java version 1.5 or greater is needed to for live view.\n You can download java from the following places:\n\t1) From this application on the 'System Status' -> 'System Tools' page.\n\t2) Online from www.java.com");
    }

    return false;
}

function doUpdateCheck(url) {
    parent.frames[0].document.ScriptLauncher2.checkForUpdate(url);
}

function doUpdateComplete(url) {
    parent.frames[0].document.ScriptLauncher2.updateComplete(url);
}

function logPlay(seq) {
    sendURL("/flashback/video.do?method=play&id=" + seq);
}
function logCaseISODownload(seq, url) {
    sendURL("/flashback/case.do?method=logDownload&id=" + seq);
    document.location = url;
}
function logVideoISODownload(seq, url) {
    sendURL("/flashback/video.do?method=logDownload&id=" + seq);
    document.location = url;
}

function getTransport() {
    var transport;
    if (window.XMLHttpRequest) {
        transport = new XMLHttpRequest();
    }
        /* branch for IE/Windows ActiveX version */
    else if (window.ActiveXObject) {
        try {
            transport = new ActiveXObject("Msxm12.XMLHTTP");
        } catch(err) {
            transport = new ActiveXObject("Microsoft.XMLHTTP");
        }
    }
    return transport
}

function sendURL(url) {
    // break into path and parms
    var parts = url.split('?');
    var path = url;
    var parms = '';
    if (parts.length > 1) {
        path = parts[0];
        parms = parts[1];
    }
//  alert("path: "+path);
    //  alert("parm: "+parms);
    var trans = getTransport();
    trans.open("POST", path, true);
    trans.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded');
    trans.send(parms);
}

function popUp(URL) {
    var day = new Date();
    var id = day.getTime();
    eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=1,location=0,statusbar=0,menubar=0,resizable=1,width=800,height=600,left = 0,top = 0');");
}

function showWifiDownloadSummaryForm()
{
var load = window.open('http://' + location.host + '/flashback/admin/wifiReport.do?method=downloadSummary','','scrollbars=yes,menubar=no,top=100,left=150,width=1000,height=650,resizable=yes,toolbar=no,location=no,status=no');
}

function sysToolsDnld(w) {
    document.getElementById(w).style.visibility = "visible";
    return false;
}
function restoreSuccess(arg) {
    document.getElementById("buttonDiv").style.visibility = "visible";
    document.getElementById("appletDiv").style.visibility = "hidden";
}
function metaButtonOut(s) {
    document.getElementById("detailVideo2:meta-"+s).src = "http://" + location.host + "/flashback/img/" + s + "-out.bmp";
}
function metaButtonOver(s) {
    document.getElementById("detailVideo2:meta-"+s).src = "http://" + location.host + "/flashback/img/" + s + "-over.bmp";
}
function noAlpha(e)
{
    var keynum;
    if(window.event) {  // IE
        keynum = e.keyCode;
    }
    else if(e.which) {  // Netscape/Firefox/Opera
        keynum = e.which;
    }
    if (keynum == undefined) return true;
    if ((keynum > 47 && keynum < 58) || keynum == 8 || keynum == 13) return true;

    return false;
}
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Introduction This article is the second of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article covers the basic installation and configuration of the test automation tools used by…
Introduction This article is the last of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article covers our test design approach and then goes through a simple test case example, how …
The viewer will learn how to implement Singleton Design Pattern in Java.
This tutorial covers a practical example of lazy loading technique and early loading technique in a Singleton Design Pattern.

726 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question