Hi everybody,
i'm new to jQuery and so i got the following question:
var defaults = {
width: 100,
items: 0,
from: false
};
var ul = $(".myUL");
if (config.from!=false) {
ul.children().remove()
ul.load(config.from);
}
var li = ul.children('li');
config.items = li.length;
ul.width(config.items*config.width);
The problem is, that i won't see mi list-items, when loaded from php-file, because ul.width will be 0 anyway. i could configure ul.width in the load-callback-function, but then i'd have to do it again in case items aren't loaded asyncronously. and there is way more then just some css adjustments to do twice then.
anybody got an idea?
TIA
David (from Germany... sorry form grammar etc.)