In my code I have a asp button which has OnClientClick event like this
OnClientClick="return validateAndSend();"
This function calls another function where it posts message on facebook and then after that call it returns a boolean value something like this
function validateAndSend()
{
//some processing
postOnFacebook();
return validateResult;
}
Now the problem is when I click that button, it kind of not execute postOnFacebook
function and returns validateResult
that makes my page get posted back.
I want it to first completely run postOnFacebook
function and waits for its completion and then return validateResult
However, when I put breakpoint on postOnFacebook()
call line on firebug the function gets properly called.
I am not getting why this is happening, any idea?