Tema: Re: ajax ir IE8
Autorius: lens
Data: 2011-08-17 21:05:53
googlas sako:

header("Expires: Tue, 03 Jul 2001 06:00:00 GMT");
header("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT");
header("Cache-Control: no-store, no-cache, must-revalidate, max-age=0");
header("Cache-Control: post-check=0, pre-check=0", false);
header("Pragma: no-cache");

bet taip pat nepadejo.
"lens" <raimis200@gmail.com> wrote in message 
news:j2gsh3$a1d$1@trimpas.omnitel.net...
> Kodel sitas kodas neveikia su IE8,7? su kitom narsyklem viskas gerai.
> Daromi trys select box'ai. Uzkrovus puslapi pirma buna jau sukrautas is 
> db, pagal pirma isrenka antra ir t.t.
>
>
>
> <script language=Javascript>
> function Inint_AJAX() {
> try { return new ActiveXObject("Msxml2.XMLHTTP"); } catch(e) {} //IE
> try { return new ActiveXObject("Microsoft.XMLHTTP"); } catch(e) {} //IE
> try { return new XMLHttpRequest(); } catch(e) {} //Native Javascript
> alert("XMLHttpRequest not supported");
> return null;
> };
>
> function dochange(src, val) {
> var req = Inint_AJAX();
> req.onreadystatechange = function () {
> if (req.readyState==4) {
> if (req.status==200) {
> document.getElementById(src).innerHTML=req.responseText;
> }
> }
> };
> req.open("GET", "technique.php?data="+src+"&val="+val);
> req.setRequestHeader("Content-Type", 
> "application/x-www-form-urlencoded;charset=utf-8"); // set Header
> req.send(null);
> }
>
>