无法重置/纠正Firefox警告

时间:2011-05-05 06:58:34

标签: php javascript jquery html

调试后,我无法重置从Firefox错误控制台找到的警告。请指导我做一些必要的修改。

下面提到的是代码

<html><head>
<script type="text/javascript" src="include/jquery.js"></script>
<script type="text/javascript" src="include/jquery.dimensions.js"></script>
<script type="text/javascript" src="include/jquery.form.js"></script>
<script type="text/javascript" src="include/jquery.datepick.min.js"></script>
<style type="text/css"> 
    @import url('include/flora.datepick.css');
    @import url('include/mainstyle.css');
</style>
</head><body>
<div id="framecontentTop">
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" width="1250" height="100">
  <param name="movie" value="test5.swf" />
  <param name="quality" value="high" />
  <param name="allowScriptAccess" value="always" />
  <param name="wmode" value="transparent" />
     <embed src="test5.swf"
      quality="high"
      type="application/x-shockwave-flash"
      WMODE="transparent"
      width="1250"
      height="100"
      pluginspage="http://www.macromedia.com/go/getflashplayer"
      allowScriptAccess="always" />
</object>
</div>
<div align="left" ></div>
   <div id="framecontentLeft">
    <div id="floatMenu">
                <ul class="menu1"> <li><a href="jobs.php" class="active" onMouseOver="window.status='Now your here'; return true;" onMouseOut="window.status='';" > Jobs Home</a></li> </ul>
<?php if($login_val[1]<=3){ ?>
                <ul class="menu3"> <li><a href="page_cnd.php" onMouseOver="window.status='Corporate networking'; return true;" onMouseOut="window.status='';" >Corp Net</a></li></ul>
                <ul class="menu4"> <li><a href="page_isy.php" onMouseOver="window.status='List of Login Tracking'; return true;" onMouseOut="window.status='';" > MIS </a></li> </ul>
                <ul class="menu5"> <li><a href="page_ope.php" onMouseOver="window.status='Center Lists'; return true;" onMouseOut="window.status='';" > Operations </a></li> </ul>
                <ul class="menu6"> <li><a href="page_res.php" onMouseOver="window.status='Center Lists'; return true;" onMouseOut="window.status='';" > HR </a></li> </ul>
                <ul class="menu7"> <li><a href="page_trk.php" onMouseOver="window.status='Center Lists'; return true;" onMouseOut="window.status='';" > User Tracking</a></li> </ul>
                <ul class="menu8"> <li><a href="page_dum.php" onMouseOver="window.status='Center Lists'; return true;" onMouseOut="window.status='';" > RESERVED </a></li> </ul>
<?php } ?>
<?php if($login_val[1]<=0){ ?>
                <ul class="menu15"> <li><a href="login_tab_master.php" onMouseOver="window.status='Hello administrator'; return true;" onMouseOut="window.status='';" > Administrator </a></li> </ul>
        <?php } ?>
    </div>
<div id="loginline" align="center"> <?php echo "<strong><span class='welnote'>(- Welcome -) </span><br><em><span class='visnote'>$login_val[0]</span></em></strong>"; ?></div>
   </div>
<div id="maincontent">
        <div id="underlinemenu" align="right">
        <ul><li><a href="clie_lead_conv_tab_master.php"  onMouseOver="window.status='Leads converted into placements information'; return true;" onMouseOut="window.status='';" >leads converted</a></li>

            <li style="float:right"><a href="logout.php" onClick="alert('Yep ! you are out of Website - Status on Activites ');" onMouseOver="window.status='Exit DRF-DOL with you ID'; return true;" onMouseOut="window.status='';" >LogOut/Exit</a></li>
            <li style="float:right"><a href="#" id="update_pbutton" name="update_pbutton" onMouseOver="window.status='Chage password and Visible name of your ID'; return true;" onMouseOut="window.status='';" > Security </a></li>
        </ul>
        </div>
        <div class="sorton"  ALIGN = "center"> 
            <form id="sort_form" class="sort_form" method="post">
                <label for="sort_one">Sort jobs by :</label><select name="sort_one" id="sort_one">
                    <option value="">Select</option> <option value="cour_name">Domain</option> <option value="loca_name">Location</option> <option value="net_sal">Salary</option> <option value="qual">Qualification</option> <option value="posi">Designation</option> </select>
                <label for="sort_two">then by :</label><select name="sort_two" id="sort_two">
                    <option value="">Select</option> <option value="cour_name">Domain</option> <option value="loca_name">Location</option> <option value="net_sal">Salary</option> <option value="qual">Qualification</option> <option value="posi">Designation</option> </select>
                <label for="sort_three">then by :</label><select name="sort_three" id="sort_three">
                    <option value="">Select</option> <option value="cour_name">Domain</option> <option value="loca_name">Location</option> <option value="net_sal">Salary</option> <option value="qual">Qualification</option> <option value="posi">Designation</option> </select>
                <label for="sort_four">then by :</label><select name="sort_four" id="sort_four">
                    <option value="">Select</option> <option value="cour_name">Domain</option> <option value="loca_name">Location</option> <option value="net_sal">Salary</option> <option value="qual">Qualification</option> <option value="posi">Designation</option> </select>
                <input type="submit" value=" Show "/>
            </form>
        </div>
    <div class="update_pform"></div>
        <div class="container">  
            <div class="firstform"></div> 
                        <div class="name_list"></div>
        </div>
</div>
<script type="text/javascript">

// my start
$(document).ready(function(){

    $("form#sort_form").submit(function(){
    //this loads the update form
            var sortone = $('#sort_one').attr('value');
            var sorttwo = $('#sort_two').attr('value');
            var sortthree = $('#sort_three').attr('value');
            var sortfour = $('#sort_four').attr('value');
            alert(sortone + " - " + sorttwo + " - " + sortthree + " - " + sortfour );
                $.ajax({
                    type: "POST",
                    url: "jobs_load-list.php",
                    data: "sort_one="+ sortone +"& sort_two="+ sorttwo +"& sort_three="+ sortthree + "& sort_four="+ sortfour,
                    cache: false,
                    success : function(html){
                            $(".name_list").html(html);
                            }
                       });
            return false;
        });

    $.fn.clearForm = function() {
          return this.each(function() {
            var type = this.type, tag = this.tagName.toLowerCase();
            if (tag == 'form')
              return $(':input',this).clearForm();
            if (type == 'text' || type == 'password' || tag == 'textarea')
              this.value = '';
            else if (type == 'checkbox' || type == 'radio')
              this.checked = false;
            else if (tag == 'select')
              this.selectedIndex = -1;
          });
        };


        // load list start
        function loadList(){
                $.ajax({
                    url: "jobs_load-list.php",
                    cache: false,
                    success : function(html){
                            $(".name_list").html(html);
                            $(".firstform").show();
                            $(".update_pform").show();
                                }
                       });
                }

loadList();


//this loads the Pupdate form

     $("a#update_pbutton").live("click", function(e){
        e.preventDefault();
        var x=window.confirm("Are you sure you want to update this Activity?");
        if (x==true){
            $.ajax({
                url: "update-pform.php",
                cache: false,
                success: function(html){
                        $(".update_pform").html(html);
                        $(".firstform").hide();
                        $(".name_list").hide();
                                }
                       });
                }
            return false;
        });

    $("form#updatepform").live("change","submit", function(){
            var pass = $('#pa_pupdate').attr('value'); 
        var lev = $('#ulev_pupdate').attr('value');
        var idpvaluein = $('#id_pupdate').attr('value');
        var x=window.confirm("Are you sure you want to update password ?");
            if (x==true){
            $.ajax({
                type: "POST",
                url: "updatep.php",
                data: "pass="+ pass_update +"& id="+ idpvaluein+"& ulev="+ ulevel_update,
                cache: false,
                success: function(){
                          $(".update_pform").empty();
                        $(".firstform").show();
                        $(".name_list").show();
                    loadList();
                }
            }); 
            }
             return false;  
        });
});
</script> 

下面提到的是在Firefox的错误控制台中找到的错误

  1. 警告:功能Ka并非总是如此 返回值源文件:     http://localhost/drf-dol/include/jquery.min.js     行:18,专栏:446
  2. 警告:测试是否相等(==)         错误的分配(=)?资源         文件:         http://localhost/drf-dol/include/jquery.min.js         行:20,专栏:19
  3. 警告:测试是否相等(==)     错误的分配(=)?资源     文件:     http://localhost/drf-dol/include/jquery.min.js     行:24,专栏:299
  4. 警告:匿名函数没有         总是返回一个值源文件:         http://localhost/drf-dol/include/jquery.min.js         行:29,专栏:229
  5. 警告:匿名函数没有         总是返回一个值源文件:         http://localhost/drf-dol/include/jquery.min.js         行:30,专栏:93
  6. 警告:匿名函数没有         总是返回一个值源文件:         http://localhost/drf-dol/include/jquery.min.js         行:31,专栏:461
  7. 警告:匿名函数没有         总是返回一个值源文件:         http://localhost/drf-dol/include/jquery.min.js         行:43,专栏:247
  8. 警告:匿名函数可以  不          总是返回一个值源文件:          http://localhost/drf-dol/include/jquery.min.js          行:46,专栏:103
  9. 警告:测试是否相等(==)      错误的分配(=)?资源      文件:      http://localhost/drf-dol/include/jquery.min.js      行:56,专栏:228
  10. 警告:测试是否相等(==)      错误的分配(=)?资源      文件:      http://localhost/drf-dol/include/jquery.min.js      行:59,栏目:70
  11. 警告:测试是否相等(==)      错误的分配(=)?资源      文件:      http://localhost/drf-dol/include/jquery.min.js      行:60,栏目:8
  12. 警告:测试是否相等(==)      错误的分配(=)?资源      文件:      http://localhost/drf-dol/include/jquery.min.js      行:62,专栏:166
  13. 警告:匿名函数可以  不      总是返回一个值源文件:      http://localhost/drf-dol/include/jquery.min.js      行:67,专栏:24
  14. 警告:匿名函数可以  不      总是返回一个值源文件:      http://localhost/drf-dol/include/jquery.min.js      行:69,栏目:400
  15. 警告:匿名函数可以  不      总是返回一个值源文件:      http://localhost/drf-dol/include/jquery.min.js      行:71,栏目:422
  16. 警告:匿名函数可以  不      总是返回一个值源文件:      http://localhost/drf-dol/include/jquery.min.js      行:74,专栏:457
  17. 警告:测试是否相等(==)      错误的分配(=)?资源      文件:      http://localhost/drf-dol/include/jquery.min.js      行:79,专栏:465
  18. 警告:匿名函数可以  不      总是返回一个值源文件:      http://localhost/drf-dol/include/jquery.form.js      行:360,列:2源代码:};
  19. 警告:匿名函数可以  不      总是返回一个值源文件:      http://localhost/drf-dol/login_tab_master.php      行:155,列:31源代码:          });
  20. 警告:引用undefined      property a [c.expando]源文件:      http://localhost/drf-dol/include/jquery.min.js      行:42
  21. 警告:引用undefined      属性j [++ H]源文件:      http://localhost/drf-dol/include/jquery.min.js      行:33
  22. 警告:引用undefined      property b.dataType源文件:      http://localhost/drf-dol/include/jquery.min.js      行:140

1 个答案:

答案 0 :(得分:0)

如果您想隐藏这些警告(而不是修复它们),请参阅此帖子:
FireBug: How can I get rid of annoying messages?