i'm new at Ajax, i could populate 2 dropdownlists using cascadedropdown... using methods and webservices... getting data from databases... not XML...
but it works when i do this:
ServicePath="service.asmx"
but if i publish my webservice and i try with this
ServicePath="http://localhost/WS/service.asmx" it does nothing!
it shows me the LoadingText only....
what am i missing?
Your issue might stem from the fact that requests in JavaScript are limited to the scope of the page they are used on. You can't use absolute paths when requesting something with XmlHttpRequest (AJAX.)
(Have to put this in too: AJAX is only the process of requesting XML data asynchronously from JavaScript, and has nothing to do with ASP.NET nor its controls.)
Last edited by andreasblixt; August 29th, 2007 at 01:39 AM.
As far as i know, ajax do not allow to call page from other domain. e.g. if my site is hosted on localhost and i try to call yahoo pages through ajax then it is not allowed. But if i give the path of local host page like http://localhost/anypage.php then it will work.
Bookmarks