InTrance Posted September 25, 2011 Report Share Posted September 25, 2011 Saskāros ar problēmu.. reizi 3 sekundēs kodam jātjauno ir divs, šajā variantā tikai teksts.. uz local vis strādā, bet uz servera sākas problēmas.. met: [object Object]error[object Error] function Fgg(){ $.ajax({ type: "POST", url: "page1.php", cache: false, dataType: "html", success: function(html){ $("#life2").html(html); }, error: function(h1, h2, h3){ $("#life2").html(h1+h2+h3); } }); } setInterval("Fgg();",3000); Quote Link to post Share on other sites
briedis Posted September 25, 2011 Report Share Posted September 25, 2011 Izmanto Firebug konsoli, skaties, kas tieši tiek atgriezts no ajax pieprasījuma. Quote Link to post Share on other sites
codez Posted September 25, 2011 Report Share Posted September 25, 2011 ieteiktu izmanto absolūtos ceļus urļiem. Quote Link to post Share on other sites
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.