CascadeDropDown not working!
hi..
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?
thanks in advance...
Re: CascadeDropDown not working!
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.)
Re: CascadeDropDown not working!
then i'll have to try installing my whole application like this:
my_app (virtual directory)
webservices (subdirectory)
app_code
bin
pages
in pages i mean the page i told you yesterday with cascadedropdown...
and i'll try servicepath="/webservices/service.asmx"
do you think this may work?
thanks...
Re: CascadeDropDown not working!
I'm pretty sure most XmlHttpRequest implementations will allow any relative paths, so yes, that should work.
Re: CascadeDropDown not working!
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.