Great,

Happy to hear that it a solved issue now.

As a sidenote, this kind of namespacing issue just hasn't really been  
solved yet.

Sometimes I wonder if we should not go for the really verbose in such  
cases:

     element._extended_by_prototype

or something of the like.

Cheers,

Tobie



On 24 janv. 2007, at 10:07, Les wrote:

>
> Guys, thank you for your responses.  I found out what the problem is,
> see the code fragment below.
>
> I used the _extended attribute on one of the divs...  If I changed the
> attribute to anything else, the the alert would correctly displays  
> 2 as
> the number of elements with the recnum attribute.  Turns out Prototype
> uses the _extended attribute internally in IE.
>
> BTW prepending the universal selector had no impact.
>
> <html>
>     <head>
>         <script type="text/javascript"
> src="/w2gi/javascript/prototype.js"></script>
>         <script>
>             function init() {
>
> alert($('panel').getElementsBySelector('*[recnum]').length)
>
>             }
>         </script>
>     </head>
>     <body onload="init();">
>         <div id="panel">
>             <TABLE>
>                 <TBODY>
>                     <TR>
>                         <TD>
>                             <DIV _extended="true"  
> templateid="default">
>                                 <DIV>
>                                     <DIV recnum="1">1</DIV>
>                                 </DIV>
>                             </DIV>
>                         </TD>
>                         <TD>
>                             <A href="#" recnum="1">Link</A>
>                         </TD>
>                     </TR>
>                 </TBODY>
>             </TABLE>
>         </div>
>     </body>
> </html>
>
>
> >


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Spinoffs" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-spinoffs?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to