[jQuery] Re: getJSON() or post() parameter question

2007-05-17 Thread Ⓙⓐⓚⓔ
$.ajax is much cooler that the simpler $.post Deprecated doesn't mean it won't work... it just means "May not work on a future release, someday" $.post will alway be available, either in the core or in a compat plugin. On 5/17/07, Brian Ronk <[EMAIL PROTECTED]> wrote: Depreciated? On the

[jQuery] Re: getJSON() or post() parameter question

2007-05-17 Thread Brian Ronk
Depreciated? On the docs page it gives no indication for that, and it's updated for 1.1.2. Rob said that it was depreciated in 1.1.1 it looks like. Was this not noted somewhere, or maybe it's depreciated in 1.1.3? On May 17, 4:50 pm, Christopher Jordan <[EMAIL PROTECTED]> wrote: > Karl, > > Ro

[jQuery] Re: getJSON() or post() parameter question

2007-05-17 Thread Christopher Jordan
Karl, Rob Gonda made the comment on his blog in responding to one of his readers. He said: "... BTW, the $.post() function was deprecated with jQuery 1.1 in favor for .ajax()." That's where I read it

[jQuery] Re: getJSON() or post() parameter question

2007-05-17 Thread Christopher Jordan
Hmm... I just read that today, or last night I think. Okay. I'll put up or shut-up. I'll try and find where I read that. :o) Chris Karl Swedberg wrote: I could be wrong, but I don't think $.post() is deprecated. --Karl _ Karl Swedberg www.englishrules.com www.learningjquery.

[jQuery] Re: getJSON() or post() parameter question

2007-05-17 Thread Karl Swedberg
I could be wrong, but I don't think $.post() is deprecated. --Karl _ Karl Swedberg www.englishrules.com www.learningjquery.com On May 17, 2007, at 4:31 PM, Christopher Jordan wrote: Also, Brian, $.post() has been deprecated in favor of $.ajax(). where you would write someth

[jQuery] Re: getJSON() or post() parameter question

2007-05-17 Thread Christopher Jordan
Also, Brian, $.post() has been deprecated in favor of $.ajax(). where you would write something like: $.ajax({ type: 'POST', url: 'page.php', datatype: 'html', // or json, or xml or script depending on what's getting returned data: {'name':'Joe', 'age':'24',...},//also I think you c

[jQuery] Re: getJSON() or post() parameter question

2007-05-17 Thread Jake McGraw
$.post() accepts a collection of name/value pairs, I don't think multi-dimensional arrays/objects work, so what you've already suggested: $post('page.php',{name:'Joe',age:'24'},...); will work. - jake On 5/17/07, Brian Ronk <[EMAIL PROTECTED]> wrote: This is actually probably more relevant