title: Jquery ajax function works locally but not on server
body: <p>please i need a little help with this as i've been trying all day to figure it out and i couldn't...</p>
  
  <p>So , this function here:</p>
  
  <pre><code>function doSearch(){
          $('#dg').datagrid('load',{
              search: $('#search').val()
          });
          $('#dg').datagrid('reload');
      }
  </code></pre>
  
  <p>Works perfectly on localhost but not on server, i can't find any error, please someone give me an idea...
  I use jquery-1.6.min.js and olso jquery.easyui.
  I tested, the same perfect code works on local but not in live web.</p>
  
  <p>Thanks</p>
  
  <p>CODE</p>
  
  <pre><code>&lt;script type="text/javascript" src="js/jquery-1.6.min.js"&gt;&lt;/script&gt;
      &lt;script type="text/javascript" src="js/jquery.easyui.min.js"&gt;&lt;/script&gt;
  
      &lt;script type="text/javascript"&gt;
  
          var url;
          function newUser(){
              $('#dlg').dialog('open').dialog('setTitle','New User');
              $('#fm').form('clear');
              url = 'save_er.php';
          }
          function editUser(){
              var row = $('#dg').datagrid('getSelected');
              if (row){
                  $('#dlg').dialog('open').dialog('setTitle','Edit User');
                  $('#fm').form('load',row);
                  url = 'update_er.php?id='+row.id;
              }
          }
          function doSearch(){
          $('#dg').datagrid('load',{
              search: $('#search').val()
          });
          $('#dg').datagrid('reload');
      }
  
          function saveUser(){
              $('#fm').form('submit',{
                  url: url,
                  onSubmit: function(){
                      return $(this).form('validate');
                  },
                  success: function(result){
                      var result = eval('('+result+')');
                      if (result.success){
                          $('#dlg').dialog('close');      // close the dialog
                          $('#dg').datagrid('reload');    // reload the user data
                      } else {
                          $.messager.show({
                              title: 'Error',
                              msg: result.msg
                          });
                      }
                  }
              });
          }
          function removeUser(){
      var rows = $('#dg').datagrid('getSelections');
      $.messager.confirm('Confirm','Are you sure you want to remove this user?',function(r){
          if (r){
              for(var i=0; i&lt;rows.length; i++) {        
                      $.post('remove_er.php',{id:rows[i].id},function(result){
                          if (!result.success){
                              $.messager.show({   // show error message
                                  title: 'Error',
                                  msg: result.msg
                              });
                          }
                      },'json');
              }
              $('#dg').datagrid('reload');    // reload the user data only once after deleting selected objects
          }
      });
  }
      &lt;/script&gt;
  </code></pre>