This is a migrated thread and some comments may be shown as answers.

callback functions and web service

1 Answer 38 Views
Ajax
This is a migrated thread and some comments may be shown as answers.
Ethan
Top achievements
Rank 1
Ethan asked on 17 Oct 2010, 12:51 PM
hi,
im not sure this is the right place..
anyway, i'm having some problems with callback function of a webservice..

i'm calling the next webservice for example..
Services.Action(param, onComplete)...

function onComplete(res)
{
alert('success');
}
and for some reason the callback function doesnt always called...

i try to change the web service so it wont accept a parameter...
and called it like this: Services.Action(onComplete)...
and this time the callback function was called..

anyone got an idea, what the problem could be?

1 Answer, 1 is accepted

Sort by
0
Fiko
Telerik team
answered on 21 Oct 2010, 06:35 AM
Hi Ethan,

The problem that you experience is beyond of our support. This is a general programming task and I recommend you to search the net for a suitable solution.

What can I suggest you, however, is to specify the CallBackError function (as shown in this article) of the WebService in order to check whether the service returns error. Then you can examine the returned error message, which will be of help for you in order to find the source of the problem.

Sincerely yours,
Fiko
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Tags
Ajax
Asked by
Ethan
Top achievements
Rank 1
Answers by
Fiko
Telerik team
Share this question
or