Connecting Tech Pros Worldwide Help | Site Map

AJAX API

 
LinkBack Thread Tools Search this Thread
  #1  
Old December 5th, 2005, 12:15 PM
DartmanX
Guest
 
Posts: n/a
Default AJAX API

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


  #2  
Old December 5th, 2005, 07:55 PM
Randy Webb
Guest
 
Posts: n/a
Default Re: AJAX API

DartmanX said the following on 12/5/2005 8:06 AM:[color=blue]
> 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).[/color]

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/
  #3  
Old December 6th, 2005, 01:55 AM
Matt Silberstein
Guest
 
Posts: n/a
Default Re: AJAX API

On Mon, 05 Dec 2005 15:49:43 -0500, in comp.lang.javascript , Randy
Webb <HikksNotAtHome@aol.com> in <x6mdnZqCheD1OgneRVn-gA@comcast.com>
wrote:
[color=blue]
>DartmanX said the following on 12/5/2005 8:06 AM:[color=green]
>> 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).[/color]
>
>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).[/color]

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"
  #4  
Old December 6th, 2005, 10:55 AM
Randy Webb
Guest
 
Posts: n/a
Default Re: AJAX API

Matt Silberstein said the following on 12/5/2005 9:41 PM:[color=blue]
> On Mon, 05 Dec 2005 15:49:43 -0500, in comp.lang.javascript , Randy
> Webb <HikksNotAtHome@aol.com> in <x6mdnZqCheD1OgneRVn-gA@comcast.com>
> wrote:
>
>[color=green]
>>DartmanX said the following on 12/5/2005 8:06 AM:
>>[color=darkred]
>>>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).[/color]
>>
>>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).[/color]
>
>
> Are you recommending JSON? (And if I understand correctly JSON
> replaces the X in AJAX, right?)[/color]

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.
[color=blue]
> If this was brought up before I was not around and can't find it.[/color]

<URL:
http://groups.google.com/group/comp....1d1831ba5f9d1b[color=blue]
>[/color]

Is one such thread with an explanation.
[color=blue]
> It seems to me that a library with standard calls for things like state
> and city and such would be a good thing.[/color]

Only in the US perhaps:)
[color=blue]
> Does such a thing exist for JavaScript?[/color]

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/
  #5  
Old December 6th, 2005, 01:15 PM
Matt Silberstein
Guest
 
Posts: n/a
Default Re: AJAX API

On Tue, 06 Dec 2005 06:45:09 -0500, in comp.lang.javascript , Randy
Webb <HikksNotAtHome@aol.com> in
<HZqdnbdu35Xz5AjenZ2dnUVZ_tydnZ2d@comcast.com> wrote:
[color=blue]
>Matt Silberstein said the following on 12/5/2005 9:41 PM:[color=green]
>> On Mon, 05 Dec 2005 15:49:43 -0500, in comp.lang.javascript , Randy
>> Webb <HikksNotAtHome@aol.com> in <x6mdnZqCheD1OgneRVn-gA@comcast.com>
>> wrote:
>>
>>[color=darkred]
>>>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).[/color]
>>
>>
>> Are you recommending JSON? (And if I understand correctly JSON
>> replaces the X in AJAX, right?)[/color]
>
>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.[/color]

But isn't JSON not XML?
[color=blue]
>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.
>[color=green]
>> If this was brought up before I was not around and can't find it.[/color]
>
><URL:
>http://groups.google.com/group/comp....1d1831ba5f9d1b[/color]

Thanks, I will explore that mechanism.[color=blue]
>
>Is one such thread with an explanation.
>[color=green]
>> It seems to me that a library with standard calls for things like state
>> and city and such would be a good thing.[/color]
>
>Only in the US perhaps:)[/color]

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.
[color=blue][color=green]
>> Does such a thing exist for JavaScript?[/color]
>
>Without a doubt. It is simple dependent select lists and loading files
>from the server.[/color]

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"
  #6  
Old December 7th, 2005, 01:25 PM
Rémi Bastide
Guest
 
Posts: n/a
Default Re: AJAX API

Randy Webb wrote:
[color=blue]
> DartmanX said the following on 12/5/2005 8:06 AM:[color=green]
>> 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).[/color]
>
> 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).[/color]
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
  #7  
Old December 7th, 2005, 08:45 PM
Randy Webb
Guest
 
Posts: n/a
Default Re: AJAX API

Matt Silberstein said the following on 12/6/2005 9:02 AM:[color=blue]
> On Tue, 06 Dec 2005 06:45:09 -0500, in comp.lang.javascript , Randy
> Webb <HikksNotAtHome@aol.com> in
> <HZqdnbdu35Xz5AjenZ2dnUVZ_tydnZ2d@comcast.com> wrote:[/color]

<snip>
[color=blue][color=green][color=darkred]
>>>It seems to me that a library with standard calls for things like state
>>>and city and such would be a good thing.[/color]
>>
>>Only in the US perhaps:)[/color]
>
>
> 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.[/color]

I don't see why anybody would do it twice if they did it once. But a
valid point.
[color=blue]
>[color=green][color=darkred]
>>>Does such a thing exist for JavaScript?[/color]
>>
>>Without a doubt. It is simple dependent select lists and loading files
>>from the server.[/color]
>
> I meant such a specific library.[/color]

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/
  #8  
Old December 7th, 2005, 08:55 PM
Randy Webb
Guest
 
Posts: n/a
Default Re: AJAX API

Rémi Bastide said the following on 12/6/2005 10:47 AM:[color=blue]
> Randy Webb wrote:
>
>[color=green]
>>DartmanX said the following on 12/5/2005 8:06 AM:
>>[color=darkred]
>>>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).[/color]
>>
>>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).[/color]
>
> Actually, I find that AJAX-based solutions work quite well on any decent and
> reasonably recent browser.[/color]

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/
  #9  
Old December 7th, 2005, 09:45 PM
Matt Silberstein
Guest
 
Posts: n/a
Default Re: AJAX API

On Wed, 07 Dec 2005 16:32:25 -0500, in comp.lang.javascript , Randy
Webb <HikksNotAtHome@aol.com> in
<a-CdnW5_1cE_yQrenZ2dnUVZ_sGdnZ2d@comcast.com> wrote:
[color=blue]
>Matt Silberstein said the following on 12/6/2005 9:02 AM:[color=green]
>> On Tue, 06 Dec 2005 06:45:09 -0500, in comp.lang.javascript , Randy
>> Webb <HikksNotAtHome@aol.com> in
>> <HZqdnbdu35Xz5AjenZ2dnUVZ_tydnZ2d@comcast.com> wrote:[/color]
>
><snip>
>[color=green][color=darkred]
>>>>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:)[/color]
>>
>>
>> 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.[/color]
>
>I don't see why anybody would do it twice if they did it once. But a
>valid point.[/color]

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?[color=blue][color=green]
>>[color=darkred]
>>>>Does such a thing exist for JavaScript?
>>>
>>>Without a doubt. It is simple dependent select lists and loading files
>>>from the server.[/color]
>>
>> I meant such a specific library.[/color]
>
>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.[/color]

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"
 

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Popular Articles

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over 220,989 network members.