[jQuery] Re: jQuery to create dynamic HTML-Content in a table

2008-04-24 Thread KnoxBaby
I thought to do it perhaps this way: -First read the header (columns). Thererfor, I have to provide something like div id=%uid%/div in it so that jQuery can read out how many names there are and save their uids in an array -Secondly: Go throught each tr and prove wether the first td contains a

[jQuery] Re: jQuery to create dynamic HTML-Content in a table

2008-04-24 Thread KnoxBaby
I tried it myself but I have probs with some things. Look at the code, I commented it: http://nopaste.php-quake.net/26562 E.g. I don't know how to combine $(this) in the each function with another selector. $(this + ' img').attr('alt') didn't work to get the content of the 'alt' attribute

[jQuery] Re: jQuery to create dynamic HTML-Content in a table

2008-04-24 Thread Aaron Heimlich
On Thu, Apr 24, 2008 at 3:31 AM, KnoxBaby [EMAIL PROTECTED] wrote: E.g. I don't know how to combine $(this) in the each function with another selector. $(this + ' img').attr('alt') didn't work to get the content of the 'alt' attribute (which serves to be the UID)... Same with the tid ...

[jQuery] Re: jQuery to create dynamic HTML-Content in a table

2008-04-24 Thread KnoxBaby
ah ok cool, thanks so far. I'm gonna try this out! If anybody has more tipps on how to achieve my goal, just reply :) Thanks a lot!!! On 24 Apr., 10:38, Aaron Heimlich [EMAIL PROTECTED] wrote: On Thu, Apr 24, 2008 at 3:31 AM, KnoxBaby [EMAIL PROTECTED] wrote: E.g. I don't know how to combine

[jQuery] Re: jQuery to create dynamic HTML-Content in a table

2008-04-24 Thread KnoxBaby
If i use uid = jQuery(' img', this).attr(alt); no more code after this line is being executed :( E.g.: [code] $('table tr:eq(0) td:gt(0)').each(function(i) { // If it's a col that contains an img (than the td has the class 'imgg') if($(this).is('.imgg'))

[jQuery] Re: jQuery to create dynamic HTML-Content in a table

2008-04-24 Thread KnoxBaby
Argh, 'alt' not alt :) On 24 Apr., 16:32, KnoxBaby [EMAIL PROTECTED] wrote: If i use uid = jQuery(' img', this).attr(alt); no more code after this line is being executed :( E.g.: [code] $('table tr:eq(0) td:gt(0)').each(function(i) { // If it's a col that contains an

[jQuery] Re: jQuery to create dynamic HTML-Content in a table

2008-04-24 Thread Andy Matthews
for precisely. -Original Message- From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf Of KnoxBaby Sent: Thursday, April 24, 2008 9:33 AM To: jQuery (English) Subject: [jQuery] Re: jQuery to create dynamic HTML-Content in a table If i use uid = jQuery(' img', this).attr(alt

[jQuery] Re: jQuery to create dynamic HTML-Content in a table

2008-04-24 Thread KnoxBaby
24, 2008 9:33 AM To: jQuery (English) Subject: [jQuery] Re: jQuery to create dynamic HTML-Content in a table If i use uid = jQuery(' img', this).attr(alt); no more code after this line is being executed :( E.g.: [code] $('table tr:eq(0) td:gt(0)').each(function(i

[jQuery] Re: jQuery to create dynamic HTML-Content in a table

2008-04-24 Thread Andy Matthews
Ah...thought you were just correcting your post. -Original Message- From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf Of KnoxBaby Sent: Thursday, April 24, 2008 10:18 AM To: jQuery (English) Subject: [jQuery] Re: jQuery to create dynamic HTML-Content in a table Like