Hi Nicolas!
I'm thinking to use this: http://plugins.jquery.com/project/rowSelect to make single or multiple rows selectable by clicking them. However, to make it work properly I need to add an attribute to <tr>, in order to define the position in the list. See the source code of http://www.nettoweb.no/rowSelect/ what I need is something like <tr entId="1">... Since this is probably going to come up over and over again in table/lists manipulation, is there any way to add attributes to just any tag without actually disrupting the existing code? Berto -- ============================== Constitution du 24 juin 1793 - Article 35. - Quand le gouvernement viole les droits du peuple, l'insurrection est, pour le peuple et pour chaque portion du peuple, le plus sacré des droits et le plus indispensable des devoirs. _______________________________________________ help-smalltalk mailing list [hidden email] http://lists.gnu.org/mailman/listinfo/help-smalltalk |
Le dimanche 15 novembre 2009 à 16:05 +0200, Bèrto ëd Sèra a écrit :
> Hi Nicolas! > > I'm thinking to use this: http://plugins.jquery.com/project/rowSelect > to make single or multiple rows selectable by clicking them. Hi, I'm sorry, but I don't really like the idea of using a jquery library, and write hard-coded javascript in Iliad widgets. There are two reasons for that. First, one of the ideas behind iliad is to have automatic AJAX, but widgets should still work without javascript, just degrading requests to normal ones, and I would like to keep it this way. The second reason is that Iliad shouldn't depend on jquery. One could write an iliad.js file using PrototypeJs or Mootools or whatever, and Iliad should still work. That said, there is nothing wrong with using libraries in your own applications, of course. Cheers! Nico _______________________________________________ help-smalltalk mailing list [hidden email] http://lists.gnu.org/mailman/listinfo/help-smalltalk signature.asc (205 bytes) Download Attachment |
In reply to this post by Bèrto ëd Sèra
Le dimanche 15 novembre 2009 à 16:05 +0200, Bèrto ëd Sèra a écrit :
> Since this is probably going to come up over and over again in > table/lists manipulation, is there any way to add attributes to just > any tag without actually disrupting the existing code? You can use Element>>attributeAt:put: like this: tr attributeAt: 'entId' put: '1' Cheers! Nico _______________________________________________ help-smalltalk mailing list [hidden email] http://lists.gnu.org/mailman/listinfo/help-smalltalk signature.asc (205 bytes) Download Attachment |
In reply to this post by Nicolas Petton
Hi!
> That said, there is nothing wrong with using libraries in your own > applications, of course. Yes, I see your point. There is also another reason: lots of javascript tends to really slow down clients. In our app I have to depend on jQuery anyway, since I can only use CSS buttons and there's no other way to submit a form with them, but this cannot be assumed to be a general need. I'll see what I can do without using js in the datagrid. Berto _______________________________________________ help-smalltalk mailing list [hidden email] http://lists.gnu.org/mailman/listinfo/help-smalltalk |
Le dimanche 15 novembre 2009 à 16:53 +0200, Bèrto ëd Sèra a écrit :
> Hi! > > > That said, there is nothing wrong with using libraries in your own > > applications, of course. > > Yes, I see your point. There is also another reason: lots of > javascript tends to really slow down clients. In our app I have to > depend on jQuery anyway, since I can only use CSS buttons and there's > no other way to submit a form with them, but this cannot be assumed to > be a general need. > > I'll see what I can do without using js in the datagrid. bit of css. Cheers! Nico _______________________________________________ help-smalltalk mailing list [hidden email] http://lists.gnu.org/mailman/listinfo/help-smalltalk signature.asc (205 bytes) Download Attachment |
Free forum by Nabble | Edit this page |