Welcome Guest, Not a member yet? Register   Sign In
An AJAX How?
#11

[eluser]Kyle Johnson[/eluser]
I downloaded some premade functions for the jQuery portion of it, it doesn't use JSON, but it seems to work as advertised, with a lot of extra [could be read: bloat] functionality too.

http://www.pengoworks.com/workshop/jquer...mplete.htm

I am looking through the code/documentation/css provided to understand a bit better. The code is currently using $.get instead of my preferred $.post so I will have to look at how to convert the function that passes the URL to the function, as it appends the data in a proper fashion.

****Also, I commented out all the comments of "addToCache" within the jquery.autocomplete.js file as it was caching all the data even when turning off the cache. Very strange behavior, but with the commented out sections it works just perfectly. Smile ****

I think my JSON requests weren't properly formatted as array objects but rather numerous JSON objects themselves. I'm not too sure which, because JSON is new to me. Each row was being returned {"suggest":"Some Text Here", "id":"1234"}{...etc}




Theme © iAndrew 2016 - Forum software by © MyBB