AJAX API

D

DartmanX

Hi,

Looking for recommendations for a decent API for AJAX work. I need it
to be somewhat documented so I can figure out how to actually use it.

My most critical need right now is clean code for a "triple" chained
selector (state->county->city).

Jason
 
R

Randy Webb

DartmanX said the following on 12/5/2005 8:06 AM:
Hi,

Looking for recommendations for a decent API for AJAX work. I need it
to be somewhat documented so I can figure out how to actually use it.

My most critical need right now is clean code for a "triple" chained
selector (state->county->city).

That has been discussed here before. I believe it was actually you who
brought up the question last time. It was answered then. Your most
cross-browser compatible solution is not AJAX (nor Borax for that matter).
 
M

Matt Silberstein

DartmanX said the following on 12/5/2005 8:06 AM:

That has been discussed here before. I believe it was actually you who
brought up the question last time. It was answered then. Your most
cross-browser compatible solution is not AJAX (nor Borax for that matter).

Are you recommending JSON? (And if I understand correctly JSON
replaces the X in AJAX, right?)

If this was brought up before I was not around and can't find it. It
seems to me that a library with standard calls for things like state
and city and such would be a good thing. Does such a thing exist for
JavaScript?


--
Matt Silberstein

Do something today about the Darfur Genocide

http://www.beawitness.org
http://www.darfurgenocide.org
http://www.savedarfur.org

"Darfur: A Genocide We can Stop"
 
R

Randy Webb

Matt Silberstein said the following on 12/5/2005 9:41 PM:
Are you recommending JSON? (And if I understand correctly JSON
replaces the X in AJAX, right?)

I didn't recommend JSON. And no it doesn't replace the X in the
so-called AJAX.

JSON is a data structure.
AJAX (as its called) is a transfer method.

You have to get data from the server to the client.

JSON is the structure of that data, AJAX is how you get it from the
server. And this new-fangled "AJAX" is probably the least supported way
to get data from the server to the client.
If this was brought up before I was not around and can't find it.
<URL:
http://groups.google.com/group/comp...andy+webb+dynamically&rnum=2#1f1d1831ba5f9d1b

Is one such thread with an explanation.
It seems to me that a library with standard calls for things like state
and city and such would be a good thing.

Only in the US perhaps:)
Does such a thing exist for JavaScript?

Without a doubt. It is simple dependent select lists and loading files
from the server.
 
M

Matt Silberstein

Matt Silberstein said the following on 12/5/2005 9:41 PM:

I didn't recommend JSON. And no it doesn't replace the X in the
so-called AJAX.

JSON is a data structure.
AJAX (as its called) is a transfer method.

But isn't JSON not XML?
You have to get data from the server to the client.

JSON is the structure of that data, AJAX is how you get it from the
server. And this new-fangled "AJAX" is probably the least supported way
to get data from the server to the client.


<URL:
http://groups.google.com/group/comp...andy+webb+dynamically&rnum=2#1f1d1831ba5f9d1b

Thanks, I will explore that mechanism.
Is one such thread with an explanation.


Only in the US perhaps:)

There are other data sets that have some standard usage. But
Country/Province/City is not just for the U.S. And working up a
library/database for the world is complex enough to not want to do it
twice.
Without a doubt. It is simple dependent select lists and loading files
from the server.

I meant such a specific library.

--
Matt Silberstein

Do something today about the Darfur Genocide

http://www.beawitness.org
http://www.darfurgenocide.org
http://www.savedarfur.org

"Darfur: A Genocide We can Stop"
 
R

Rémi Bastide

Randy said:
DartmanX said the following on 12/5/2005 8:06 AM:

That has been discussed here before. I believe it was actually you who
brought up the question last time. It was answered then. Your most
cross-browser compatible solution is not AJAX (nor Borax for that matter).
Actually, I find that AJAX-based solutions work quite well on any decent and
reasonably recent browser. I think this is better than using outdated
javascripts hacks. See for instance:
http://www.guru4.net/articoli/javascript-soap-client/en/
for a nice ajax client to a soap web service.
 
R

Randy Webb

Matt Silberstein said the following on 12/6/2005 9:02 AM:
On Tue, 06 Dec 2005 06:45:09 -0500, in comp.lang.javascript , Randy
Webb <[email protected]> in



There are other data sets that have some standard usage. But
Country/Province/City is not just for the U.S. And working up a
library/database for the world is complex enough to not want to do it
twice.

I don't see why anybody would do it twice if they did it once. But a
valid point.
I meant such a specific library.

Probably not as it is actually two seperate tasks. You have to get the
data from the server and then you have to populate the select lists.
There are general libraries that do both so the idea of combining two
libraries just to have a third specific one doesn't make sense.
 
R

Randy Webb

Rémi Bastide said the following on 12/6/2005 10:47 AM:
Randy Webb wrote:



Actually, I find that AJAX-based solutions work quite well on any decent and
reasonably recent browser.

So an ActiveX warning is "quite well" when it can be avoided?

I disagree.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,430
Messages
2,571,676
Members
48,796
Latest member
Greg L.

Latest Threads

Top