Hi

I have problem with Internet Explorer and jQuery ajax.

My jQuery code is:

Code: Select all
    $.ajax({
       type : 'POST',
       url : 'ajax_user_func.php',
       dataType : 'html',
       data: {
          iv_filter_mode: $('#filter_realtime:checked').val(),
          team: $('#filter_team').val(),
          country: $('#filter_country').val(),
          account_type: $('#filter_account_type').val(),
          iv_sorting: iv_sorting,
          iv_sorting_type: iv_sorting_type                           
       },
       error:function(xhr, status, errorThrown) {
            alert(errorThrown+'\n'+status+'\n'+xhr.statusText);
            },
       success: function(data){
       if(data.length >0) {
          alert(data);
          $('#user_list').html(data);
          }



Problem is that if in ajax_user_func.php file there is included or required
any .php file which contains other include or require function, then rest of
ajax_user_func.php file's code is not processed. In this file I attached
adodb library in order to create an object to communicate with MySQL data
base. After including adodb.inc.php rest of the code in ajax_user_func.php
is not processed so I' cant get any data from database. All code written
before line:

Code: Select all
    require_once('adodb/adodb.inc.php');


is displayed both in alert and and <div> with id="user_list", so it seems
that under Internet Explorer it is possible to get correct response from
ajax only if in requested .php file there is no code attached from other
files.
This happens under IE only. In FireFox everything is working fine.

Do you have any solution for this problem?

Thank you in advance for help.
-- 
View this message in context: 
http://old.nabble.com/IE-issue---not-all-data-received-from-ajax-response-tp26901897s27240p26901897.html
Sent from the jQuery General Discussion mailing list archive at Nabble.com.

Reply via email to