On Nov 3, 6:53 pm, "Miguel Beltran R." <[EMAIL PROTECTED]> wrote:
> Sorry, type bad :(
>
> <table>
>
> > <tr>
> > <td>Value1</td>
> > <td><a href="javascript: aFtunction(801,1)">801-1</a></td>
> > </tr>
> > <tr>
> > <td>Value5</td>
> > <td><a href="javascript: aFtunction(801,1)">818-1</a></td>
> > </tr>
> > <tr>
> > <td>Value78</td>
> > <td><a href="javascript: aFtunction(801,1)">803-2</a></td>
> > </tr>
>
> Must be have diferents values when call the function, not always 801,1
>
> The problem that dynamic code.
>
> pd. Sorry by my english
Then you can store that numerical value (associated with each element)
in, say, `title` attribute and then "use" it when click event occurs:
document.observe('click', function(e, el) {
if (el = e.findElement('td > a')) {
e.stop();
aFunction(el.readAttribute('title'), 1);
}
});
--
kangax
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Prototype & script.aculo.us" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/prototype-scriptaculous?hl=en
-~----------~----~----~----~------~----~------~--~---