[jQuery] Re: <3 Solitaire

2009-07-14 Thread John Newman
excellent, very nice. I am not a fan of flash, this is refreshing. I guess none of this is open source? On Jul 14, 12:30 pm, "Rick Faircloth" wrote: > very good, weepy! > > From: jquery-en@googlegroups.com [mailto:jquery...@googlegroups.com] On > Behalf Of Michael Lawson > Sent: Tuesday, July

[jQuery] Jquery bind with parameters? replace inline onclick for server side generated lists

2009-07-02 Thread John Newman
Hello, I've wondered if there is a way to do this for a while. Perhaps I am missing something or should use a different approach altogether. Say I have a dynamic page that generates some td elements. The syntax here is freemarker but you can easily envision your favorite serverside text gener

[jQuery] Jquery bind with parameters? Replace inline onclick for server side generated lists, onclick(x, y, z)

2009-07-02 Thread John Newman
Hello First off if this is a double post I apoligize, I sent my first message an hour ago and it is not showing up. Anyway: I've wondered if there is a way to do this for a while. Perhaps I am missing something or should use a different approach altogether. Say I have a dynamic page that gene

[jQuery] Re: jQuery - Click function + Ajax

2009-07-02 Thread John Newman
You can't have 2 elements with the same id on the same page. Instead do isn't that invalid html and rejected by some browsers? or is that normal and just fine to do? On Jul 2, 12:44 pm, Glazz wrote: > Hi there, > > I have a hyperlink ( ) after i click on that hyperlink, the script > sends

[jQuery] Re: Jquery bind with parameters? Replace inline onclick for server side generated lists, onclick(x, y, z)

2009-07-02 Thread John Newman
v").click(function() { >      var id = this.id.split('_')[1]; // 12345 > > }); > > Otherwise if you want to generated it client-side and have a list of > recordID's ready, you can use jQuery's .data() method to store data > with the element:http://docs.jquery

[jQuery] Re: Jquery bind with parameters? Replace inline onclick for server side generated lists, onclick(x, y, z)

2009-07-03 Thread John Newman
; mode in all browsers and perfectly valid attributes: > > ${record.name} > > $('td.trigger').click(function(){ >    alert( $(this).attr('data-recordID') ); > > }); > > Seehttp://ejohn.org/blog/html-5-data-attributes/for more info. > > cheers >