Hai folks,

in below code the refresh(); , an ajax function does not invoke

Code:
onclick="add_emp();refresh();"
but this works

Code:
onclick="add_emp();refresh();refresh();refresh();refresh();"
Now it works . Strange trick is it

So whats the problem really?