Peter,
I make calls asynchronously to the web service.
So the data come back through,
objHttp.onreadystatechange
The function calling web service is in a javascript
file. Because it is a asynchronous call, the data is
not directly returned by the function. Instead, the
code in js file calls javascript function defined
in aspx to do some web control updating. That's why,
I need to call back to the functions in aspx file.
Anyway, this is just an option. I can either put all
the javascript code in aspx page OR, call web service
synchronously so the data will be directly returned. I
think this is what you suggested.
Thanks!
Eva
Peter Brunone <[EMAIL PROTECTED]> wrote:
I'm not sure what you mean by "call back to my aspx page"; it sounds like
you want to do a postback, but if you're using this approach, it's because you
*don't* want to post back to the server to get more data.
From: Eva Li <[EMAIL PROTECTED]>
Peter,
Thank you for your suggestion a while ago. I tried to use
XMLHTTP object and it works. Actually, I used XMLHTTP
technology a couple of years ago to make synchronous call.
This time, I make asynchronous call.
Now, I'm one step to reach my goal. I have a js file that I keep
my generic functions that call web service. This js file is included
in aspx pages that need to get data from web service. As I said,
the calls are made in the js file by using XMLHTTP asynchronously.
When the data is ready, how can I call back to my aspx page?
Any idea?
Thanks!
Eva
Peter Brunone wrote:
Hi Eva,
In my opinion, WSB is overly complex, and of course it only works in IE. I
suggest you look into using the XMLHTTPRequest object, which I am told works on
Mozilla as well. Furthermore, you might want to read up on AJAX, which is a
methodology for using this object to get data from the server. Some people have
already written ajax modules that encapsulate all the functionality you'll
need.
Regards,
Peter
From: Eva Li [EMAIL PROTECTED]
Hi All,
I'm using Web Service Behavior. I heard that Microsoft no longer support this.
One of the problems I heard was that using Web Service Behavior has serious
memory leaks.
I did searches on possible resources and could find topics about the above
problems. Does any one have know anything about this?
Eva
[Non-text portions of this message have been removed]
---------------------------------
Yahoo! Groups Links
To visit your group on the web, go to:
http://groups.yahoo.com/group/AspNetAnyQuestionIsOk/
To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
[Non-text portions of this message have been removed]
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/AspNetAnyQuestionIsOk/
<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/