boltrix Posted April 3, 2007 Report Share Posted April 3, 2007 Lieta tāda ka esmu izveidojis mājas lapu, bet problēma ir kautkur ieksh AJAX 1)Kad lapa stāv uz mana datora ieksh FF viss ir kārtība, bet uz IE netrādā navigācija. 2)Kad lapa uzlikta uz servera nestrādā ne uz FF ne uz IE. Lūdzu jūs palīdzēt, jau ieprieksh paldies var loading = 'Loading'; function get_request() { try { request = new XMLHttpRequest(); } catch (e) { try { request = new ActiveXObject("Msxml2.XMLHTTP"); } catch (e) { try { request = new ActiveXObject("Microsoft.XMLHTTP"); } catch (E) { request = false; } } } } function get_content(what,where) { get_request(); request.open("GET", what, true); request.onreadystatechange = function() { if (request.readyState == 4) { if (request.status == 0) { var res = request.responseText; document.getElementById(where).innerHTML = res; } else { document.getElementById(where).innerHTML = loading; } } } request.send(null); } Link to comment Share on other sites More sharing options...
Delfins Posted April 3, 2007 Report Share Posted April 3, 2007 request ir kā globāls ? Link to comment Share on other sites More sharing options...
boltrix Posted April 3, 2007 Author Report Share Posted April 3, 2007 request ir kā globāls ? Jaa Link to comment Share on other sites More sharing options...
andrisp Posted April 3, 2007 Report Share Posted April 3, 2007 error console neko nesaka ? Link to comment Share on other sites More sharing options...
Kaklz Posted April 4, 2007 Report Share Posted April 4, 2007 Nav ko mocīties, izmanto jQuery iebūvēto AJAX funkcionalitāti ;) Link to comment Share on other sites More sharing options...
andrisp Posted April 4, 2007 Report Share Posted April 4, 2007 Pārbaudi vai tev ar URL'iem un PATH'iem viss kārtībā, ja nestrādā līdz ko uzliec uz servera. Link to comment Share on other sites More sharing options...
Recommended Posts