I'm guessing webkit somehow postpones the actual ajax call. Have you tried with Chrome?
Anyway, I'm puzzled by the use of timeout. If you don't expect any answer from the server, simply do not provide any success callback. Using a timeout could have the consequence of cancelling the operation serverside if the server has an increase in charge, your page makes use of sessions (in php especially when another request has been issued concurrently for the same user) or in case of network contention. 2009/9/16 kedarme <kedar...@gmail.com> > > Hi > > We are making an ajax request to post some data to the server. As we > do not want any response from the server we have a small timeout for > these requests > > function ajaxFunc(ajaxURL, dataString, isPost, dataTypeVal) { > > try { > $.ajax({ > async: true, > cache: false, > type: (isPost) ? "POST" : "GET", > url: ajaxURL, > data: (dataTypeVal!=null && dataTypeVal.toLowerCase > ()=="json")? > JSON.stringify(dataString):dataString, > datatype:(dataTypeVal==null)?"xml":dataTypeVal, > timeout:10 > }) ; > } catch(e) { > console.log(e); > } > > } > > This works for all browers except safari. Safari requests fail to > reach the servers. > Increasing the timeout to close to 150 ms makes it work on Safari. > > Any pointer what could be the reason? > > Thanks > Kedar > > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "jQuery Development" group. To post to this group, send email to jquery-dev@googlegroups.com To unsubscribe from this group, send email to jquery-dev+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/jquery-dev?hl=en -~----------~----~----~----~------~----~------~--~---