thanks so much for your time investigating this. i too started playing
wiih the idea of using a jquery function, but i didnt understand why
it worked for otherr jquery methods and not livequery. i learned a lot
reading your post! thanks!
On Jan 23, 4:32 am, h0tzen <[EMAIL PROTECTED]> wrote:
> i f
i forgot,with an normal "each" (not using livequery) and a jquery-
plugin, it works
$.fn.andThen = function(cb) {
cb.call(this);
return this;
}
$(document).ready(function() {
$('div.rating').each(function() {
$('#log').append("" + $(this).text() +
i think encapsulating your whole code with parantheses wont work
"( $('*').livequery(function(){ . } ).andThen"
you may use a plugin like this:
1
2
3
$.fn.andThen = function(cb) {
cb.call(this);
return this;
}
$(document).ready(function() {
$('div.rating').live
sorry, correction, first i had to wrap the jquery function in another
function. and although this "worked", i think because of the looping
or something, the second function was executed before all the jquery
stuff finished
( function(){
$('div[class="rating"]').livequery(function(){
well, yeah it would be, if i were smart enough to figure out how to
actually use in the context of jquery chained functions. the above
example is what i want it to do. the closest i got was this:
( $('div[class="rating"]').livequery(function(){
var $this = $(this);
var opts = func
this is pretty smart.
why not just use prototyping? thats what jscript is all about and
personally i think, its *the* best idea to add that feature.
6 matches
Mail list logo