Solved

javascript error

Posted on 2010-09-16
2
404 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
2 Comments
 
LVL 40

Accepted Solution

by:
gurvinder372 earned 500 total points
Comment Utility
not able to access your link
0
 

Author Comment

by:colc-mis
Comment Utility
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

Find Ransomware Secrets With All-Source Analysis

Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
EvenOdd challenge 10 81
Problem to setup 18 78
wordcount challenge 11 73
groovy example issue 10 65
I had a project requirement for a displaying a user workbench .This workbench would consist multiple data grids .In each grid the user will be able to see a large number of data. These data grids should allow the user to 1. Sort 2. Export the …
International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
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.

772 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

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now