I have ajax calls with jquery
$.ajax({
url: '/pretraga/oglasi-broj/format/json',
dataType: 'json',
data: form.serialize(),
beforeSend: function() {
},
complete: function() {
},
success: function(response) {
});
which are handled by ajaxContext with no problem, in normal browsers made by
human beings.
But in IE7 (Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; AskTB5.5)) or
if you like 7.0.5730.13 it fails with "exception 'Zend_View_Exception' with
message 'script 'blabla.phtml' not found in path...".
I tested $this->getRequest()->isXmlHttpRequest() and it gives false!
here is $_SERVER variable
array (
'ALLUSERSPROFILE' => 'C:\\Documents and Settings\\All Users',
'CommonProgramFiles' => 'C:\\Program Files\\Common Files',
'COMPUTERNAME' => 'UMPIRSKY',
'ComSpec' => 'C:\\WINDOWS\\system32\\cmd.exe',
'FP_NO_HOST_CHECK' => 'NO',
'GS_PROG' => 'C:\\Program Files\\gs\\gs8.70\\bin\\gswin32.exe',
'NUMBER_OF_PROCESSORS' => '2',
'OS' => 'Windows_NT',
'Path' =>
'C:\\WINDOWS\\system32;C:\\WINDOWS;C:\\WINDOWS\\System32\\Wbem;C:\\Program
Files\\ATI Technologies\\ATI.ACE\\Core-Static;C:\\Program
Files\\Zend\\ZendServer\\bin',
'PATHEXT' => '.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH',
'PHPRC' => 'C:\\Program Files\\Zend\\ZendServer\\etc',
'PHP_FCGI_MAX_REQUESTS' => '10000',
'PROCESSOR_ARCHITECTURE' => 'x86',
'PROCESSOR_IDENTIFIER' => 'x86 Family 15 Model 107 Stepping 1,
AuthenticAMD',
'PROCESSOR_LEVEL' => '15',
'PROCESSOR_REVISION' => '6b01',
'ProgramFiles' => 'C:\\Program Files',
'SystemDrive' => 'C:',
'SystemRoot' => 'C:\\WINDOWS',
'TEMP' => 'C:\\DOCUME~1\\Sale\\LOCALS~1\\Temp',
'TMP' => 'C:\\WINDOWS\\TEMP',
'USERPROFILE' => 'C:\\Documents and Settings\\LocalService',
'windir' => 'C:\\WINDOWS',
'AP_PARENT_PID' => '1688',
'_FCGI_CLIENT_PID_' => '316',
'_FCGI_MUTEX_' => '1192',
'_FCGI_NTAUTH_IMPERSONATE_' => '1',
'_FCGI_SHUTDOWN_EVENT_' => '1196',
'FCGI_ROLE' => 'RESPONDER',
'REDIRECT_APPLICATION_ENV' => 'testing',
'REDIRECT_STATUS' => '200',
'APPLICATION_ENV' => 'testing',
'HTTP_ACCEPT' => '*/*',
'HTTP_USER_AGENT' => 'Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1;
AskTB5.5)',
'HTTP_HOST' => 'test.mysite:81',
'HTTP_CONNECTION' => 'Keep-Alive',
'HTTP_COOKIE' =>
'__utma=62429628.983232331.1267458911.1273073746.1273074286.5;
__utmz=62429628.1273073748.4.2.utmcsr=ask|utmccn=(organic)|utmcmd=organic|utmctr=mysite;
PHPSESSID=5jrao2eelhelb74p7ohcjr1dn1',
'PATH' =>
'C:\\WINDOWS\\system32;C:\\WINDOWS;C:\\WINDOWS\\system32\\wbem;C:\\Program
Files\\ATI Technologies\\ATI.ACE\\Core-Static;C:\\Program
Files\\Zend\\ZendServer\\bin\\php.exe',
'COMSPEC' => 'C:\\WINDOWS\\system32\\cmd.exe',
'WINDIR' => 'C:\\WINDOWS',
'SERVER_SIGNATURE' => '',
'SERVER_SOFTWARE' => 'Apache/2.2.8 (Win32) mod_ssl/2.2.8 OpenSSL/0.9.8i',
'SERVER_NAME' => 'test.mysite',
'SERVER_ADDR' => '127.0.0.1',
'SERVER_PORT' => '80',
'REMOTE_ADDR' => '127.0.0.1',
'DOCUMENT_ROOT' => 'G:/projects/PHP/mysite/wwwroot',
'SERVER_ADMIN' => '[email protected]',
'SCRIPT_FILENAME' => 'G:/projects/PHP/mysite/wwwroot/index.php',
'REMOTE_PORT' => '1465',
'REDIRECT_QUERY_STRING' =>
'price%5B0%5D=0&price%5B1%5D=100000&year%5B0%5D=1960&year%5B1%5D=2010&fuel=&city=0&sort_by=0&mode=0',
'REDIRECT_URL' => '/pretraga/oglasi-broj/format/json',
'GATEWAY_INTERFACE' => 'CGI/1.1',
'SERVER_PROTOCOL' => 'HTTP/1.1',
'REQUEST_METHOD' => 'GET',
'QUERY_STRING' =>
'price%5B0%5D=0&price%5B1%5D=100000&year%5B0%5D=1960&year%5B1%5D=2010&fuel=&city=0&sort_by=0&mode=0',
'REQUEST_URI' =>
'/pretraga/oglasi-broj/format/json?price%5B0%5D=0&price%5B1%5D=100000&year%5B0%5D=1960&year%5B1%5D=2010&fuel=&city=0&sort_by=0&mode=0',
'SCRIPT_NAME' => '/index.php',
'PHP_SELF' => '/index.php',
'REQUEST_TIME' => 1273083120,
'argv' =>
array (
0 =>
'price%5B0%5D=0&price%5B1%5D=100000&year%5B0%5D=1960&year%5B1%5D=2010&fuel=&city=0&sort_by=0&mode=0',
),
'argc' => 1,
)
Also, with this version of IE, I get empty post variable after posting
simple form, happends to one of forms on my site.
Regards,
Saša Stamenković