Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/javascript/452.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
JavaScript不在emulator中执行(Android中的PhoneGap)_Javascript_Android_Jquery_Html_Cordova - Fatal编程技术网

JavaScript不在emulator中执行(Android中的PhoneGap)

JavaScript不在emulator中执行(Android中的PhoneGap),javascript,android,jquery,html,cordova,Javascript,Android,Jquery,Html,Cordova,我在我的PhoneGap应用程序中遇到了一个奇怪的行为。我是新来的,所以您的每一个帮助都是值得赞赏的 我在PhoneGap(Cordova)中开发了一个应用程序,我在其中设计了two Index.html文件。 当我点击图标(my_notification_new)时,使用Index.html文件,我移动到notification.html(从服务器加载列表视图中显示的数据) A)Index.html(它可以完美地工作) Newa:HTML模板 智能自助服务 /***********移动到No

我在我的PhoneGap应用程序中遇到了一个奇怪的行为。我是新来的,所以您的每一个帮助都是值得赞赏的

我在PhoneGap(Cordova)中开发了一个应用程序,我在其中设计了two Index.html文件。 当我点击图标(my_notification_new)时,使用Index.html文件,我移动到notification.html(从服务器加载列表视图中显示的数据)

A)Index.html(它可以完美地工作)


Newa:HTML模板
智能自助服务

/***********移动到Notification.html******************/ 通知

/********************************************************/ 自助服务请求

设置

退出

现在,在改变了一些设计之后,我制作了这个Index.html

B)Index.html(当我移动到Notification.html时,我看不到列表视图中的数据JS未执行)


工作表
#中心内容{
文本对齐:居中;
最小高度:400px;
}
#仪表板{
宽度:350px;
保证金:0px自动;
显示:块;
明确:两者皆有;
文本对齐:居中;
}
.dashu图标{
填充:块;
填充:35px;
浮动:中心;
边缘底部:10px;
}
智能自助服务
/*********移动到Notification.html*********/
/*******************/ 
这是我的Notification.html。它工作得非常好

<!DOCTYPE html> 
<html> 
<head> 
    <title>My Page</title>
    <meta name="viewport" content="width=device-width, initial-scale=1"> 
    <link rel="stylesheet" href="http://code.jquery.com/mobile/1.2.0/jquery.mobile-1.2.0.min.css"/>
    <script src="moment.min.js"></script>
    <script type="text/javascript" src="http://code.jquery.com/jquery-1.8.2.min.js"></script>
    <script type="text/javascript" src="http://code.jquery.com/mobile/1.2.0/jquery.mobile-1.2.0.min.js"></script>
    <script type="text/javascript">
        function soap() {

            Hr_Offer();
            Hr_Vacancy();
            function Hr_Offer() {

            var xmlhttp = new XMLHttpRequest();
            xmlhttp.open("POST","http://180.211.97.41:7777/orabpel/default/XXNotificationListRetrieval/1.0",true);

            /*** Soap Envelop ***/      
            var sr= "<?xml version='1.0' encoding='UTF-8'?>";
                sr+="<soap:Envelope xmlns:soap=\"http://schemas.xmlsoap.org/soap/envelope/\" xmlns:wsu=\"http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd\">";
                sr+="<soap:Header>";    
                sr+="<wsse:Security xmlns:wsse=\"http:\//docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd\" xmlns=\"http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd\" xmlns:env=\"http://schemas.xmlsoap.org/soap/envelope/\" soap:mustUnderstand=\"1\">";
                sr+="<wsse:UsernameToken xmlns:wsse=\"http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd\" xmlns=\"http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd\">";
                sr+="<wsse:Username>CBROWN<\/wsse:Username>";
                sr+="<wsse:Password Type=\"http:\//docs.oasis-open.org\/wss\/2004\/01\/oasis-200401-wss-username-token-profile-1.0#PasswordText\">welcome<\/wsse:Password>";
                sr+="<\/wsse:UsernameToken>";
                sr+="<\/wsse:Security>";
                sr+="<\/soap:Header>";  
                sr+="<soap:Body xmlns:ns1=\"http://xmlns.oracle.com/bpel/mobile/Notificationlist\">";
                sr+="<ns1:NotificationlistRetrievalREQ>";
                sr+="<ns1:NotificationlistType>HR_OFFER<\/ns1:NotificationlistType>";
                sr+="<ns1:Status>TODO<\/ns1:Status>";
                sr+="<\/ns1:NotificationlistRetrievalREQ>";
                sr+="<\/soap:Body>";
                sr+="<\/soap:Envelope>";


            /*** Send the POST request ***/
            xmlhttp.setRequestHeader("Accept", "application/xml", "text/xml", "\*/\*");
            xmlhttp.setRequestHeader("SOAPAction", "process");
            xmlhttp.setRequestHeader("Content-Type", "text/xml; charset=utf-8");
            xmlhttp.send(sr);


            xmlhttp.onreadystatechange = function () {

                if (xmlhttp.readyState == 4) {

                    if (xmlhttp.status == 200) {

                        //alert('Response'+xmlhttp.responseXML);
                        var xmlResult=xmlhttp.responseXML;
                        /*** Pull out the quote and author elements ***/
                        var notificationId = xmlResult.getElementsByTagName('NotificationId');
                        var notificationContext = xmlResult.getElementsByTagName('NotificationContext');
                        var subject = xmlResult.getElementsByTagName('Subject');
                        var startDate = xmlResult.getElementsByTagName('BeginDate');
                        var dueDate = xmlResult.getElementsByTagName('DueDate');

                        /*** Create arrays***/
                        var arrNotificationId=new Array();
                        var arrNotificationContext=new Array();
                        var arrSubject=new Array();
                        var arrStartDate=new Array();
                        var arrDueDate=new Array();

                        /*** Loop through each quote elements yanking out the values and pushing them into the array ***/
                        for (i=0; i<notificationId.length; i++)
                        {
                            arrNotificationId.push(notificationId[i].childNodes[0].nodeValue);
                            arrNotificationContext.push(notificationContext[i].childNodes[0].nodeValue);
                            arrSubject.push(subject[i].childNodes[0].nodeValue);
                            //alert(startDate[i].childNodes[0].nodeValue);

                            var tempStart=startDate[i].childNodes[0].nodeValue;
                            var date_start = moment(tempStart).format("DD-MM-YYYY");
                            arrStartDate.push(date_start);

                            var tempDue=startDate[i].childNodes[0].nodeValue;
                            var date_due= moment(tempDue).format("DD-MM-YYYY");
                            arrDueDate.push(date_due);
                        }

                        /*** Display in Listview ***/
                        for (var s in arrNotificationId) {
                            //alert(arrSubject[s]);
                            $("#list_workList").append($("<li><a style=\"white-space:pre-wrap;\" href='" + arrSubject[s].link + "'>"+ arrSubject[s].toString()  +"\n"+"Start Date :"+arrStartDate[s]+"   "+"Due Date :"+arrDueDate[s]+ "</a></li>"));

                        }
                        $('#list_workList').listview('refresh');
                    }
                    else
                    {
                        alert('Error '+xmlhttp.status);
                    }
                }
            }               
        }

        function Hr_Vacancy() {

            var xmlhttp = new XMLHttpRequest();
            xmlhttp.open("POST","http://ip:port/orabpel/default/XXNotificationListRetrieval/1.0",true);

            /*** Soap Envelop ***/      
            var sr= "<?xml version='1.0' encoding='UTF-8'?>";
                sr+="<soap:Envelope xmlns:soap=\"http://schemas.xmlsoap.org/soap/envelope/\" xmlns:wsu=\"http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd\">";
                sr+="<soap:Header>";    
                sr+="<wsse:Security xmlns:wsse=\"http:\//docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd\" xmlns=\"http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd\" xmlns:env=\"http://schemas.xmlsoap.org/soap/envelope/\" soap:mustUnderstand=\"1\">";
                sr+="<wsse:UsernameToken xmlns:wsse=\"http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd\" xmlns=\"http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd\">";
                sr+="<wsse:Username>Hello<\/wsse:Username>";
                sr+="<wsse:Password Type=\"http:\//docs.oasis-open.org\/wss\/2004\/01\/oasis-200401-wss-username-token-profile-1.0#PasswordText\">world<\/wsse:Password>";
                sr+="<\/wsse:UsernameToken>";
                sr+="<\/wsse:Security>";
                sr+="<\/soap:Header>";  
                sr+="<soap:Body xmlns:ns1=\"http://xmlns.oracle.com/bpel/mobile/Notificationlist\">";
                sr+="<ns1:NotificationlistRetrievalREQ>";
                sr+="<ns1:NotificationlistType>HR_VACANCY<\/ns1:NotificationlistType>";
                sr+="<ns1:Status>TODO<\/ns1:Status>";
                sr+="<\/ns1:NotificationlistRetrievalREQ>";
                sr+="<\/soap:Body>";
                sr+="<\/soap:Envelope>";


            /*** Send the POST request ***/
            xmlhttp.setRequestHeader("Accept", "application/xml", "text/xml", "\*/\*");
            xmlhttp.setRequestHeader("SOAPAction", "action_name");
            xmlhttp.setRequestHeader("Content-Type", "text/xml; charset=utf-8");
            xmlhttp.send(sr);


            xmlhttp.onreadystatechange = function () {

                if (xmlhttp.readyState == 4) {

                    if (xmlhttp.status == 200) {

                        //alert('Response'+xmlhttp.responseXML);
                        var xmlResult=xmlhttp.responseXML;
                        /*** Pull out the quote and author elements ***/
                        var notificationId = xmlResult.getElementsByTagName('NotificationId');
                        var notificationContext = xmlResult.getElementsByTagName('NotificationContext');
                        var subject = xmlResult.getElementsByTagName('Subject');
                        var startDate = xmlResult.getElementsByTagName('BeginDate');
                        var dueDate = xmlResult.getElementsByTagName('DueDate');

                        /*** Create arrays***/
                        var arrNotificationId=new Array();
                        var arrNotificationContext=new Array();
                        var arrSubject=new Array();
                        var arrStartDate=new Array();
                        var arrDueDate=new Array();

                        /*** Loop through each quote elements yanking out the values and pushing them into the array ***/
                        for (i=0; i<notificationId.length; i++)
                        {
                            arrNotificationId.push(notificationId[i].childNodes[0].nodeValue);
                            arrNotificationContext.push(notificationContext[i].childNodes[0].nodeValue);
                            arrSubject.push(subject[i].childNodes[0].nodeValue);

                            var tempStart=startDate[i].childNodes[0].nodeValue;
                            var date_start = moment(tempStart).format("DD-MM-YYYY");
                            arrStartDate.push(date_start);

                            var tempDue=startDate[i].childNodes[0].nodeValue;
                            var date_due= moment(tempDue).format("DD-MM-YYYY");
                            arrDueDate.push(date_due);
                        }

                        /*** Display in Listview ***/
                        for (var s in arrNotificationId) {
                            //alert(arrSubject[s]);
                            $("#list_workList").append($("<li><a style=\"white-space:pre-wrap;\" href='" + arrSubject[s].link + "'>"+ arrSubject[s].toString() +"\n"+"Start Date :"+arrStartDate[s]+"   "+"Due Date :"+arrDueDate[s]+ "</a></li>"));

                        }
                        $('#list_workList').listview('refresh');
                    }
                    else
                    {
                        alert('Error '+xmlhttp.status);
                    }
                }
            }               
        }        
}
    </script>
</head> 
<body onload="soap()">
<div data-role="page" data-theme="f"> 
    <form name="Worklist" action="" method="post">
        <div>
            <div id="response" />
        </div>
    </form>


    <div data-role="header" data-position="fixed">
        <h1>Worklist</h1>
    </div><!-- /header -->

    <div data-role="content">   
        <ul data-role="listview" data-theme="c" id="list_workList">
        </ul>
    </div><!-- /content -->

</div><!-- /page -->

</body>
</html>

我的页面
函数soap(){
Hr_Offer();
Hr_空缺();
功能Hr_Offer(){
var xmlhttp=new XMLHttpRequest();
open(“POST”http://180.211.97.41:7777/orabpel/default/XXNotificationListRetrieval/1.0“,对);
/***肥皂信封***/
var sr=“”;
sr+=”;
sr+=”;
sr+=”;
sr+=”;
sr+=“CBROWN”;
sr+=“欢迎”;
sr+=”;
sr+=”;
sr+=”;
sr+=”;
sr+=”;
sr+=“人力资源报价”;
sr+=“待办事项”;
sr+=”;
sr+=”;
sr+=”;
/***发送POST请求***/
setRequestHeader(“接受”、“应用程序/xml”、“文本/xml”、“\*/\*”);
setRequestHeader(“SOAPAction”、“process”);
setRequestHeader(“内容类型”,“text/xml;charset=utf-8”);
xmlhttp.send(sr);
xmlhttp.onreadystatechange=函数(){
if(xmlhttp.readyState==4){
if(xmlhttp.status==200){
//警报('Response'+xmlhttp.responseXML);
var xmlResult=xmlhttp.responseXML;
/***拉出quote和author元素***/
var notificationId=xmlResult.getElementsByTagName('notificationId');
var notificationContext=xmlResult.getElementsByTagName('notificationContext');
var subject=xmlResult.getElementsByTagName('subject');
var startDate=xmlResult.getElementsByTagName('BeginDate');
var dueDate=xmlResult.getElementsByTagName('dueDate');
/***创建数组***/
var arrNotificationId=新数组();
var arrNotificationContext=新数组();
var arrSubject=新数组();
var arrStartDate=新数组();
var arrDueDate=新数组();
/***循环遍历每个引号元素,拉出值并将其推入数组***/
对于(i=0;i

奇怪的是,它可以在ECLICE浏览器和预览中工作。

如果您想重定向Notification.html上的页面,请在锚定标记中添加数据ajax=“false”
if you want to redirect page on Notification.html then add data-ajax="false" in your anchor tag


<a href="Notification.html" data-ajax="false">

如果你想重定向Notification.html上的页面,那么在你的锚定标记中添加数据ajax=“false”。@Ved Great………它有效……:)哇..我花了整个昨天的时间,你的一句话变魔术了:)如果你发布你的答案,我想接受:)好的..但我在以前的html中没有这样做,那么它为什么有效>?
<!DOCTYPE html> 
<html> 
<head> 
    <title>My Page</title>
    <meta name="viewport" content="width=device-width, initial-scale=1"> 
    <link rel="stylesheet" href="http://code.jquery.com/mobile/1.2.0/jquery.mobile-1.2.0.min.css"/>
    <script src="moment.min.js"></script>
    <script type="text/javascript" src="http://code.jquery.com/jquery-1.8.2.min.js"></script>
    <script type="text/javascript" src="http://code.jquery.com/mobile/1.2.0/jquery.mobile-1.2.0.min.js"></script>
    <script type="text/javascript">
        function soap() {

            Hr_Offer();
            Hr_Vacancy();
            function Hr_Offer() {

            var xmlhttp = new XMLHttpRequest();
            xmlhttp.open("POST","http://180.211.97.41:7777/orabpel/default/XXNotificationListRetrieval/1.0",true);

            /*** Soap Envelop ***/      
            var sr= "<?xml version='1.0' encoding='UTF-8'?>";
                sr+="<soap:Envelope xmlns:soap=\"http://schemas.xmlsoap.org/soap/envelope/\" xmlns:wsu=\"http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd\">";
                sr+="<soap:Header>";    
                sr+="<wsse:Security xmlns:wsse=\"http:\//docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd\" xmlns=\"http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd\" xmlns:env=\"http://schemas.xmlsoap.org/soap/envelope/\" soap:mustUnderstand=\"1\">";
                sr+="<wsse:UsernameToken xmlns:wsse=\"http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd\" xmlns=\"http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd\">";
                sr+="<wsse:Username>CBROWN<\/wsse:Username>";
                sr+="<wsse:Password Type=\"http:\//docs.oasis-open.org\/wss\/2004\/01\/oasis-200401-wss-username-token-profile-1.0#PasswordText\">welcome<\/wsse:Password>";
                sr+="<\/wsse:UsernameToken>";
                sr+="<\/wsse:Security>";
                sr+="<\/soap:Header>";  
                sr+="<soap:Body xmlns:ns1=\"http://xmlns.oracle.com/bpel/mobile/Notificationlist\">";
                sr+="<ns1:NotificationlistRetrievalREQ>";
                sr+="<ns1:NotificationlistType>HR_OFFER<\/ns1:NotificationlistType>";
                sr+="<ns1:Status>TODO<\/ns1:Status>";
                sr+="<\/ns1:NotificationlistRetrievalREQ>";
                sr+="<\/soap:Body>";
                sr+="<\/soap:Envelope>";


            /*** Send the POST request ***/
            xmlhttp.setRequestHeader("Accept", "application/xml", "text/xml", "\*/\*");
            xmlhttp.setRequestHeader("SOAPAction", "process");
            xmlhttp.setRequestHeader("Content-Type", "text/xml; charset=utf-8");
            xmlhttp.send(sr);


            xmlhttp.onreadystatechange = function () {

                if (xmlhttp.readyState == 4) {

                    if (xmlhttp.status == 200) {

                        //alert('Response'+xmlhttp.responseXML);
                        var xmlResult=xmlhttp.responseXML;
                        /*** Pull out the quote and author elements ***/
                        var notificationId = xmlResult.getElementsByTagName('NotificationId');
                        var notificationContext = xmlResult.getElementsByTagName('NotificationContext');
                        var subject = xmlResult.getElementsByTagName('Subject');
                        var startDate = xmlResult.getElementsByTagName('BeginDate');
                        var dueDate = xmlResult.getElementsByTagName('DueDate');

                        /*** Create arrays***/
                        var arrNotificationId=new Array();
                        var arrNotificationContext=new Array();
                        var arrSubject=new Array();
                        var arrStartDate=new Array();
                        var arrDueDate=new Array();

                        /*** Loop through each quote elements yanking out the values and pushing them into the array ***/
                        for (i=0; i<notificationId.length; i++)
                        {
                            arrNotificationId.push(notificationId[i].childNodes[0].nodeValue);
                            arrNotificationContext.push(notificationContext[i].childNodes[0].nodeValue);
                            arrSubject.push(subject[i].childNodes[0].nodeValue);
                            //alert(startDate[i].childNodes[0].nodeValue);

                            var tempStart=startDate[i].childNodes[0].nodeValue;
                            var date_start = moment(tempStart).format("DD-MM-YYYY");
                            arrStartDate.push(date_start);

                            var tempDue=startDate[i].childNodes[0].nodeValue;
                            var date_due= moment(tempDue).format("DD-MM-YYYY");
                            arrDueDate.push(date_due);
                        }

                        /*** Display in Listview ***/
                        for (var s in arrNotificationId) {
                            //alert(arrSubject[s]);
                            $("#list_workList").append($("<li><a style=\"white-space:pre-wrap;\" href='" + arrSubject[s].link + "'>"+ arrSubject[s].toString()  +"\n"+"Start Date :"+arrStartDate[s]+"   "+"Due Date :"+arrDueDate[s]+ "</a></li>"));

                        }
                        $('#list_workList').listview('refresh');
                    }
                    else
                    {
                        alert('Error '+xmlhttp.status);
                    }
                }
            }               
        }

        function Hr_Vacancy() {

            var xmlhttp = new XMLHttpRequest();
            xmlhttp.open("POST","http://ip:port/orabpel/default/XXNotificationListRetrieval/1.0",true);

            /*** Soap Envelop ***/      
            var sr= "<?xml version='1.0' encoding='UTF-8'?>";
                sr+="<soap:Envelope xmlns:soap=\"http://schemas.xmlsoap.org/soap/envelope/\" xmlns:wsu=\"http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd\">";
                sr+="<soap:Header>";    
                sr+="<wsse:Security xmlns:wsse=\"http:\//docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd\" xmlns=\"http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd\" xmlns:env=\"http://schemas.xmlsoap.org/soap/envelope/\" soap:mustUnderstand=\"1\">";
                sr+="<wsse:UsernameToken xmlns:wsse=\"http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd\" xmlns=\"http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd\">";
                sr+="<wsse:Username>Hello<\/wsse:Username>";
                sr+="<wsse:Password Type=\"http:\//docs.oasis-open.org\/wss\/2004\/01\/oasis-200401-wss-username-token-profile-1.0#PasswordText\">world<\/wsse:Password>";
                sr+="<\/wsse:UsernameToken>";
                sr+="<\/wsse:Security>";
                sr+="<\/soap:Header>";  
                sr+="<soap:Body xmlns:ns1=\"http://xmlns.oracle.com/bpel/mobile/Notificationlist\">";
                sr+="<ns1:NotificationlistRetrievalREQ>";
                sr+="<ns1:NotificationlistType>HR_VACANCY<\/ns1:NotificationlistType>";
                sr+="<ns1:Status>TODO<\/ns1:Status>";
                sr+="<\/ns1:NotificationlistRetrievalREQ>";
                sr+="<\/soap:Body>";
                sr+="<\/soap:Envelope>";


            /*** Send the POST request ***/
            xmlhttp.setRequestHeader("Accept", "application/xml", "text/xml", "\*/\*");
            xmlhttp.setRequestHeader("SOAPAction", "action_name");
            xmlhttp.setRequestHeader("Content-Type", "text/xml; charset=utf-8");
            xmlhttp.send(sr);


            xmlhttp.onreadystatechange = function () {

                if (xmlhttp.readyState == 4) {

                    if (xmlhttp.status == 200) {

                        //alert('Response'+xmlhttp.responseXML);
                        var xmlResult=xmlhttp.responseXML;
                        /*** Pull out the quote and author elements ***/
                        var notificationId = xmlResult.getElementsByTagName('NotificationId');
                        var notificationContext = xmlResult.getElementsByTagName('NotificationContext');
                        var subject = xmlResult.getElementsByTagName('Subject');
                        var startDate = xmlResult.getElementsByTagName('BeginDate');
                        var dueDate = xmlResult.getElementsByTagName('DueDate');

                        /*** Create arrays***/
                        var arrNotificationId=new Array();
                        var arrNotificationContext=new Array();
                        var arrSubject=new Array();
                        var arrStartDate=new Array();
                        var arrDueDate=new Array();

                        /*** Loop through each quote elements yanking out the values and pushing them into the array ***/
                        for (i=0; i<notificationId.length; i++)
                        {
                            arrNotificationId.push(notificationId[i].childNodes[0].nodeValue);
                            arrNotificationContext.push(notificationContext[i].childNodes[0].nodeValue);
                            arrSubject.push(subject[i].childNodes[0].nodeValue);

                            var tempStart=startDate[i].childNodes[0].nodeValue;
                            var date_start = moment(tempStart).format("DD-MM-YYYY");
                            arrStartDate.push(date_start);

                            var tempDue=startDate[i].childNodes[0].nodeValue;
                            var date_due= moment(tempDue).format("DD-MM-YYYY");
                            arrDueDate.push(date_due);
                        }

                        /*** Display in Listview ***/
                        for (var s in arrNotificationId) {
                            //alert(arrSubject[s]);
                            $("#list_workList").append($("<li><a style=\"white-space:pre-wrap;\" href='" + arrSubject[s].link + "'>"+ arrSubject[s].toString() +"\n"+"Start Date :"+arrStartDate[s]+"   "+"Due Date :"+arrDueDate[s]+ "</a></li>"));

                        }
                        $('#list_workList').listview('refresh');
                    }
                    else
                    {
                        alert('Error '+xmlhttp.status);
                    }
                }
            }               
        }        
}
    </script>
</head> 
<body onload="soap()">
<div data-role="page" data-theme="f"> 
    <form name="Worklist" action="" method="post">
        <div>
            <div id="response" />
        </div>
    </form>


    <div data-role="header" data-position="fixed">
        <h1>Worklist</h1>
    </div><!-- /header -->

    <div data-role="content">   
        <ul data-role="listview" data-theme="c" id="list_workList">
        </ul>
    </div><!-- /content -->

</div><!-- /page -->

</body>
</html>
if you want to redirect page on Notification.html then add data-ajax="false" in your anchor tag


<a href="Notification.html" data-ajax="false">