Javascript Ajax页面重定向在localhost页面中工作,但在live页面中不工作

Javascript Ajax页面重定向在localhost页面中工作,但在live页面中不工作,javascript,php,jquery,html,ajax,Javascript,Php,Jquery,Html,Ajax,Ajax页面重定向作为本地主机页面工作,但在实时环境中不工作。 xmlhttp.open(“GET”http://priceyogi.com/sriram/user_qua.php“,对) 这在netbeans项目中有效,我希望它能在实时服务器上工作 <html> <head> <script src="93/2153_1.js"></script> <meta charset=

Ajax页面重定向作为本地主机页面工作,但在实时环境中不工作。
xmlhttp.open(“GET”http://priceyogi.com/sriram/user_qua.php“,对)

这在netbeans项目中有效,我希望它能在实时服务器上工作

<html>
        <head>
            <script src="93/2153_1.js"></script>
            <meta charset="UTF-8">
            <title>AMS</title>
            <style type="text/css">
                @import url("240/1010.css");
                @import url("240/fonts.css");
                #printable { display: none; }
                @media print
                {
                    .noprint {display:none;}
                }
            </style>
        </head>

    </style>

    <script>
            function S014578()
        {
            var xmlhttp = new XMLHttpRequest();
            xmlhttp.onreadystatechange = function ()
            {
                if (xmlhttp.readyState == 4 && xmlhttp.status == 200)
                {
                    if (xmlhttp.responseText == 'E810')
                    {
                        alert('DB CONNECTION ERROR');
                    } else
                    {

                        document.getElementById("ActionScreen").innerHTML = xmlhttp.responseText;
                    }
                }
            }

            xmlhttp.open("GET", "http://priceyogi.com/sriram/user_qua.php", true);
            alert("jddejb");

            xmlhttp.send();
        }
    </script>
    <body >
        <div id="TRANS">
            <div id="companyheader">
                <div class="noprint">
                    <cmpanyname><img src="images/L1010.png"  align="center" width="70px" style="margin-top:-27px;"/>  Packers & Movers</cmpanyname>
                    <br><cmapnymo>your respiratory partner</cmapnymo>
                    <div id="WV"></div>
                </div>
            </div><BR><BR>
    <?php
    date_default_timezone_set('Asia/Kolkata');
    echo '<div id="body" >';
    echo '<div class="noprint">';
    echo '<div id="home" >';
    echo'<div class="noprint">';
    echo '<div id="menu">';
    echo '</div>';
    echo '</div>';
    echo '<div id="ActionScreen">';
    echo '<input placeholder="USER NAME" value="" style="text-align:center; margin-top: 50px; width: 300px; height: 50px;" id="SH233455UN" type="text"><br>';
    echo '<input placeholder="PASSWORD" value="" style="text-align:center; margin-top: 20px; width: 300px; height: 50px;" id="SH233455PWD" type="text"><br>';
    echo '<input placeholder="PASSWORD" value="LOGIN" style="text-align:center; margin-top: 30px; width: 300px; height: 50px;" id="SH233455PWD" type="button" onClick="S014578()";>';
    echo '</div> ';
    echo '</div>';
    echo '</div>';
    echo '</div>';
    echo '</div>';
    echo ' <span id ="PS"></span>';
    ?>
            <script>
                W2153_1_3();
            </script> 
    </body>
    </html>

AMS
@导入url(“240/1010.css”);
@导入url(“240/fonts.css”);
#可打印{显示:无;}
@媒体印刷品
{
.noprint{display:none;}
}
函数S014578()
{
var xmlhttp=new XMLHttpRequest();
xmlhttp.onreadystatechange=函数()
{
if(xmlhttp.readyState==4&&xmlhttp.status==200)
{
如果(xmlhttp.responseText=='E810')
{
警报(“数据库连接错误”);
}否则
{
document.getElementById(“ActionScreen”).innerHTML=xmlhttp.responseText;
}
}
}
open(“GET”http://priceyogi.com/sriram/user_qua.php“,对);
警报(“jddejb”);
xmlhttp.send();
}
包装工和搬运工

你的呼吸伙伴

W2153_1_3();
为什么要回显HTML?只是正常输出,但这不是问题。你真的需要定义“不工作”。进行一些基本的调试:您是否在控制台中收到错误消息?“网络”选项卡中发生了什么?您是否收到服务器的响应?如果是,情况如何?