CascadeDropDown not working!
CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 5 of 5

Thread: CascadeDropDown not working!

  1. #1
    Join Date
    Aug 2007
    Posts
    47

    Question 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...

  2. #2
    Join Date
    Jul 2007
    Location
    Sweden
    Posts
    331

    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.

  3. #3
    Join Date
    Aug 2007
    Posts
    47

    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...

  4. #4
    Join Date
    Jul 2007
    Location
    Sweden
    Posts
    331

    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.

  5. #5
    Join Date
    Nov 2005
    Posts
    49

    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
  •  


Azure Activities Information Page

Windows Mobile Development Center


Click Here to Expand Forum to Full Width

This is a CodeGuru survey question.


Featured


HTML5 Development Center