By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,474 Members | 1,283 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,474 IT Pros & Developers. It's quick & easy.

AJAX API

P: n/a
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

Dec 5 '05 #1
Share this Question
Share on Google+
8 Replies


P: n/a
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).

--
Randy
comp.lang.javascript FAQ - http://jibbering.com/faq & newsgroup weekly
Javascript Best Practices - http://www.JavascriptToolbox.com/bestpractices/
Dec 5 '05 #2

P: n/a
On Mon, 05 Dec 2005 15:49:43 -0500, in comp.lang.javascript , Randy
Webb <Hi************@aol.com> in <x6********************@comcast.com>
wrote:
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).


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"
Dec 6 '05 #3

P: n/a
Matt Silberstein said the following on 12/5/2005 9:41 PM:
On Mon, 05 Dec 2005 15:49:43 -0500, in comp.lang.javascript , Randy
Webb <Hi************@aol.com> in <x6********************@comcast.com>
wrote:

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

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

--
Randy
comp.lang.javascript FAQ - http://jibbering.com/faq & newsgroup weekly
Javascript Best Practices - http://www.JavascriptToolbox.com/bestpractices/
Dec 6 '05 #4

P: n/a
On Tue, 06 Dec 2005 06:45:09 -0500, in comp.lang.javascript , Randy
Webb <Hi************@aol.com> in
<HZ******************************@comcast.com> wrote:
Matt Silberstein said the following on 12/5/2005 9:41 PM:
On Mon, 05 Dec 2005 15:49:43 -0500, in comp.lang.javascript , Randy
Webb <Hi************@aol.com> in <x6********************@comcast.com>
wrote:

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

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.


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.
If this was brought up before I was not around and can't find it.
<URL:
http://groups.google.com/group/comp....1d1831ba5f9d1b


Thanks, I will explore that mechanism.
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:)


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.
Does such a thing exist for JavaScript?


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"
Dec 6 '05 #5

P: n/a
Randy Webb wrote:
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).

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/javasc...oap-client/en/
for a nice ajax client to a soap web service.

--
Rémi Bastide
http://liihs.irit.fr/bastide
Dec 7 '05 #6

P: n/a
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 <Hi************@aol.com> in
<HZ******************************@comcast.com> wrote:
<snip>
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:)

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.
Does such a thing exist for JavaScript?


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


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.

--
Randy
comp.lang.javascript FAQ - http://jibbering.com/faq & newsgroup weekly
Javascript Best Practices - http://www.JavascriptToolbox.com/bestpractices/
Dec 7 '05 #7

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

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


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.

--
Randy
comp.lang.javascript FAQ - http://jibbering.com/faq & newsgroup weekly
Javascript Best Practices - http://www.JavascriptToolbox.com/bestpractices/
Dec 7 '05 #8

P: n/a
On Wed, 07 Dec 2005 16:32:25 -0500, in comp.lang.javascript , Randy
Webb <Hi************@aol.com> in
<a-******************************@comcast.com> wrote:
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 <Hi************@aol.com> in
<HZ******************************@comcast.com> wrote:


<snip>
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:)

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 mean that if I do it for me it is not particularly proprietary to do
it better so why not let you have the code?
Does such a thing exist for JavaScript?

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


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.


Ok. What I meant was something specialized to do Country/City info
lookups. I was thinking of taking the CIA Factbook, a delight of
information, and turning it into an XML DB as an exercise. And having
some "authoritative" source for Country/State/City info would be nice.
But I have drifted off.

--
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"
Dec 7 '05 #9

This discussion thread is closed

Replies have been disabled for this discussion.