I got the error on Error Stage that means the post is not working The problem is not in all servers for test purposes i just echo a hello world in ajax.php
On Apr 22, 10:38 pm, Josh Powell <seas...@gmail.com> wrote: > what does ajax.php return? > > at what stage is the error, beforesend, error, success, complete? Put > in a console.log and see if it is executed in each of the states. > > Just a style suggest, but reverse your usage of quotes: > $('#searchresult').html('<div align="center" valign="middle" > style:"height:300px;position:fixed;"><img src="loading.gif" / > > > <img src="text.gif" /></div>'); > > instead of > > $('#searchresult').html("<div align='center' valign='middle' > style:'height:300px;position:fixed;'><img src='loading.gif' / > > > <img src='text.gif' /></div>"); > > On Apr 22, 6:34 am, "Geo.." <g...@netbios.in> wrote: > > > Hi friends > > I tried to develop an ajax request using jQuery > > It works fine with IE and Even Chrome > > But I always getting same error in firefox "411 Length Required" On > > firebug > > error shows on jquery.js line no 19 > > > my code is given below > > $.ajax({ > > type:'POST', > > url:'ajax.php', > > dataType:"html", > > cache:false, > > timeout:10000, > > beforeSend:function(){ > > $('#searchresult').html("<div > > align='center' valign='middle' > > style:'height:300px;position:fixed;'><img src='loading.gif' > > /> <img src='text.gif' /></div>"); > > > }, > > error:function(){ > > $('#searchresult').text("Server Not Responding ,Try > > again ").show > > ().fadeOut(2000); > > }, > > success:function(data){ > > $('#searchresult').html(data); > > } > > > }); > > > Is there any common error with jquery + firefox + ajax > > > I tried versions of jquery 1.2.6 and 1.3.2 > > > expecting your help > > > Geo ..