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
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
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
3 matches
Mail list logo