Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Message from discussion Alternative to 'onclick' for a variable number of links?
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Rolf Langenhuijzen  
View profile  
 More options Nov 12 2012, 3:38 pm
From: Rolf Langenhuijzen <plentyofr...@gmail.com>
Date: Mon, 12 Nov 2012 12:38:06 -0800 (PST)
Local: Mon, Nov 12 2012 3:38 pm
Subject: Re: [Moo] Alternative to 'onclick' for a variable number of links?

gotcha... $$(eval).destroy();

On Monday, November 12, 2012 5:56:01 AM UTC+1, Sanford Whiteman wrote:

> > Am I approaching this the wrong way?

> If you're using eval(), it's *definitely* the wrong way.

> See the touchups I made here:

>     http://jsfiddle.net/Dfa5h/1/

> · you can chain addEvent right on the result of $$(). $$() returns an
> array of Elements, and you can run any Element method, such as
> addEvent() on Elements as well, and it will map each item in the array
> to the method

> · use data-* attributes and you don't need to pollute the href
> attribute, which should be useable in scriptless environments or at
> the very least give a nice display in the status bar

> · simple split() instead of eval -- eval must be destroyed

> -- Sandy


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.