Ah... I just looked at the api and see what you mean by MAP.
On 7/11/07, Benjamin Sterling <[EMAIL PROTECTED]> wrote:
James, Pardon my ignorance, but could not find what you mean by map, but your example looks like json to me. Keep in mind that although I know how program, I am very bad with what things are named. but to answer your question, your example is how I normally send information back and for thru ajax. Now, I usually use the $.ajax function for all my ajax needs, but more or less, the do the same thing. a_map = {name:'james', age:27, location:'HK'}; So: $.post('myurl.php', a_map); Should work fine. On 7/10/07, james_027 <[EMAIL PROTECTED]> wrote: > > > Hi, > > I am using the $.post() function, the second parameter is a Map which > is Key/value pairs that will be sent to the server. how do I create a > map to use in $.post(). > > I can't find any information about map for javascript may be it's not > supported? and this map is in jquery only? is this correct way to make > a map? > > a_map = {name:'james', age:'27', location:'HK'} > > Thanks > james > > -- Benjamin Sterling http://www.KenzoMedia.com http://www.KenzoHosting.com
-- Benjamin Sterling http://www.KenzoMedia.com http://www.KenzoHosting.com