Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3
  1. #1
    New Coder
    Join Date
    Jun 2010
    Posts
    39
    Thanks
    1
    Thanked 0 Times in 0 Posts

    jQuery UI Autocomplete with JSON

    I'm trying to write a jQuery UI autocomplete by reading an external file (i.e. data.json).
    The code works fine when I try to read it from an array but if I try to read it from an external file, it doesn't work anymore!?! Not sure why!!


    Here's my code:

    Plunker

  • #2
    New Coder
    Join Date
    Jun 2010
    Posts
    39
    Thanks
    1
    Thanked 0 Times in 0 Posts
    I was able to read the external source using XML, instead of JSON.
    Problem solved.

  • #3
    New Coder
    Join Date
    Apr 2004
    Posts
    50
    Thanks
    2
    Thanked 0 Times in 0 Posts
    Quote Originally Posted by hiyatran View Post
    I was able to read the external source using XML, instead of JSON.
    Problem solved.
    Hi Hiyatran,

    Just wondering how you managed to link to an xml file? I am in exactly the same position (have an external json file I am trying to link to) but cannot link externally.

    Thanks


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •