I
iannorton
Hi there,
I Recently started experimenting with AJAX and succesfully created an
autocomplete box using a script that returned html from a serverside
javascript page.
I'm now at the point where i want to integrate it with an existing web
service.
I have 2 servers, the application's on one, and the data i need's on
the other, as xmlhttprequest doesn't work across domains what are my
options?
I've seen people mentioning JSON, i'm not clear how this works other
than the way the data's returned. Surely i'd still have to make the
xmlhttprequest call in the first place to request the data? Does anyone
know any good guides for autocomplete scripts using json.
My alternative is to use an Apache Proxy which seems the easiest
solution, but i'd like to experiment with JSON to see if it offers any
speed benefits, i'm just veryy unclear as to how i go about
transferring the JSON data without using xmlhttp.
Any pointers anyone?
Regards,
Ian
I Recently started experimenting with AJAX and succesfully created an
autocomplete box using a script that returned html from a serverside
javascript page.
I'm now at the point where i want to integrate it with an existing web
service.
I have 2 servers, the application's on one, and the data i need's on
the other, as xmlhttprequest doesn't work across domains what are my
options?
I've seen people mentioning JSON, i'm not clear how this works other
than the way the data's returned. Surely i'd still have to make the
xmlhttprequest call in the first place to request the data? Does anyone
know any good guides for autocomplete scripts using json.
My alternative is to use an Apache Proxy which seems the easiest
solution, but i'd like to experiment with JSON to see if it offers any
speed benefits, i'm just veryy unclear as to how i go about
transferring the JSON data without using xmlhttp.
Any pointers anyone?
Regards,
Ian