Thanks a lot  it works for me. I realized that IE is not recognizing child
selectors. 

Cybolic wrote:
> 
> 
> IE has problems with selectors on dynamic elements (elements created
> in script), but can handle classes just fine, so if you can change
> your code to hunt classes instead, that should work.
> 
> ...or use Geneshjii's advice and see if you can't speed that up
> instead.
> 
> Having class="srRow" on every tr and doing $('tr.srRow',
> '#srTable>tbody') looks to me like a good mix.
> 
> Good luck with IE.
> 
> On Aug 18, 4:30 pm, Potluri <[EMAIL PROTECTED]> wrote:
>> I Ganesh,
>>   The way you are suggesting to loop through is not the optimal way for
>> tables with 500 rows but the way I'm trying to loop through results is
>> faster and efficient even though it seems to be complicated. Do you have
>> any
>> idea how to make this work.
>> Thanks.
>>
>>
>>
>> Ganeshji Marwaha wrote:
>>
>> > i don't see why the selector needs to be that complex.
>>
>> > I would do it this way...
>>
>> > $("#srTable tr").each(function() {
>> >    alert("test");
>> > });
>>
>> > -GTG
>>
>> > On 8/17/07, Potluri <[EMAIL PROTECTED]> wrote:
>>
>> >> sorry that a typo.. I know that rows contain colomns. My table already
>> >> has
>> >> multiple colomns.  I just provided example to make you understand
>> >> clearly.
>> >> The main problem is looping forget abt the way table is right now. I
>> want
>> >> the optimal way to loop through the rows in table which works in both
>> >> browsers. Thats the bottom line. Thnaks any way..
>>
>> >> Stephan Beal-3 wrote:
>>
>> >> > On Aug 17, 7:36 pm, Potluri <[EMAIL PROTECTED]>
>> wrote:
>> >> >> <table id="srTable">
>> >> >> <tbody>
>> >> >> <tr>a1 </tr>
>> >> >> <tr>a2 </tr>
>> >> >> <tr>a3 </tr>
>> >> >> <tr>a4 </tr>
>> >> >> </tbody>
>> >> >> </table>
>>
>> >> > This isn't legal HTML. TR elements can only contain TD elements, not
>> >> > text.
>> >> > Try replacing each row with:
>>
>> >> > <tr><td>a1</td></tr>
>>
>> >> --
>> >> View this message in context:
>> >>http://www.nabble.com/problem-with-selector-in-IE-tf4287169s15494.htm...
>> >> Sent from the JQuery mailing list archive at Nabble.com.
>>
>> --
>> View this message in
>> context:http://www.nabble.com/problem-with-selector-in-IE-tf4287169s15494.htm...
>> Sent from the JQuery mailing list archive at Nabble.com.
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/problem-with-selector-in-IE-tf4287169s15494.html#a12216773
Sent from the JQuery mailing list archive at Nabble.com.

Reply via email to