Hello
Unfortunately it doesn't work:
$$('div.item_content').invoke('insert', {bottom: 'input
type=checkbox class=compare_itm onclick=Itm.Click(\''+
this.getAttribute('sale_num') +'\') /' });
The script fails if I put this.getAttribute('sale_num')
On Aug 27, 6:55 pm, Walter Lee Davis
I found a fix for this. For starters, it's not scriptaculous, it's
prototype. Remove the scriptaculous library from your example and
you'll still have the problem.
Here's the fix: instead of setting your background image/colour in the
body selector, set it in the html selector, like this:
html {
Hi,
You don't want #invoke, you want #each:
$$('div.item_content').each(function(div) {
div.insert({
bottom: 'input type=checkbox class=compare_itm
onclick=Itm.Click(\''+
div.readAttribute('sale_num') +'\') /'
});
});