function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Br1Br1 

Force.com Sites ajax requests limits

I'am developing an application that does a lot of ajax requests in the background to update and show data, for some reason, the third post request is blocked always.

 

Is that a limitation of Force.com Sites? where i can found information ? it depends of the license of my org? 

 

Thx

Br1

RyanGuestRyanGuest

There isn't any specific limit to the number of AJAX requests you can make from a page.

 

Can you post some sample code or a link from your page so we can check out what's going on? 

Br1Br1

Thanks for the reply Ryan,

 

The request is a simple post of a serialized form, with jquery :

 

 

// Post the form $.post("{!CollectURL}", $("form#{!StepId}").serialize(),function(response){ if(response.success){ console.info('Success'); } else { console.info('Error found!',response.exception); } },'json');

 

After that i do a get request to refresh data.

 

Nothing strange, just JQuery , after certain number of Ajax requests , I see with firebug that a post request is blocked with an "Authorization Required".

 

Maybe is related to the bandwith limit ?

 

thx 

Br1