Thanks :) james
On Jul 12, 7:43 am, Karl Swedberg <[EMAIL PROTECTED]> wrote: > Hi James, > > Sorry for the late entry into this thread. > > "Map" is just an informal term we like to use for "object literal." > > You can read more about object literals here: > > http://developer.mozilla.org/en/docs/ > Core_JavaScript_1.5_Guide:Literals#Object_Literals > > --Karl > _________________ > Karl Swedbergwww.englishrules.comwww.learningjquery.com > > On Jul 11, 2007, at 2:26 AM, james_027 wrote: > > > > > Thanks for your time benjamin, so the above code is still right? > > > cheers, > > james > > > On Jul 11, 1:08 pm, "Benjamin Sterling" > > <[EMAIL PROTECTED]> wrote: > >> 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 Sterlinghttp://www.KenzoMedia.comhttp://www.KenzoHosting.com