[jQuery] Re: Manipulating returned date

2008-05-15 Thread Karl Rudd
Blah, once more: $.post( 'somewhere', {something:'or other'}, function( data ) { var commaAt = data.indexOf(','); $( '#' + data.substr(0, commaAt) ).text( data.substr(commaAt+1) ); }); Karl Rudd On Fri, May 16, 2008 at 1:27 PM, Karl Rudd <[EMAIL PROTECTED]> wrote: > Oh, beg your pardon, that

[jQuery] Re: Manipulating returned date

2008-05-15 Thread Karl Rudd
Oh, beg your pardon, that should have been: $.post( 'somewhere', {something:'or other'}, function( data ) { var stuff = data.split(',', 1); $( '#' + stuff[0] ).text( stuff[1] ); }); Karl Rudd On Fri, May 16, 2008 at 1:24 PM, Karl Rudd <[EMAIL PROTECTED]> wrote: > So you're trying to update

[jQuery] Re: Manipulating returned date

2008-05-15 Thread Karl Rudd
So you're trying to update a particular section / element with some text? You could try this (untested): $.post( 'somewhere', {something:'or other'}, function( data ) { var stuff = data.split(','); $( stuff[0] ).text( stuff[1] ); }); Karl Rudd On Fri, May 16, 2008 at 8:51 AM, teazer <[EMAI