-
August 28th, 2007, 04:51 PM
#1
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...
-
August 29th, 2007, 01:33 AM
#2
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.)
Last edited by andreasblixt; August 29th, 2007 at 01:39 AM.
-
August 29th, 2007, 09:23 AM
#3
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...
-
August 29th, 2007, 10:04 AM
#4
Re: CascadeDropDown not working!
I'm pretty sure most XmlHttpRequest implementations will allow any relative paths, so yes, that should work.
Last edited by andreasblixt; August 29th, 2007 at 10:06 AM.
-
August 30th, 2007, 01:50 AM
#5
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.
Muhammad Waqas Badar
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|