Sorry for the late follow up. I just wanted to let any one know who
searches for this problem on here that it was what
kangax suggested. Global variable name conflicts.
On May 27, 9:22 am, kangax <[EMAIL PROTECTED]> wrote:
> Try eliminating global variable declaration (i.e."elem", "parent",
> etc.)
> Also, check that all id's are unique on the page.
>
> Best,
> kangax
>
> On May 23, 8:00 pm, louis w <[EMAIL PROTECTED]> wrote:
>
> > any idea ? :(
>
> > On May 22, 6:17 pm, louis w <[EMAIL PROTECTED]> wrote:
>
> > > Here is more complete idea of the code:
> > > As I said, IE7 triggers a 'not implemented' error on the line with
> > > parent = $(elem).up('li');
> > > Also, I am on proto v 1.6.0.2
>
> > > <script language="javascript">
>
> > > var TreeNav = {
>
> > > init: function(tree) {
> > > $(tree).observe('click',
> > > this.toggleChildren.bindAsEventListener(this));
> > > }
>
> > > , toggleChildren: function(evnt) {
>
> > > elem = Event.element(evnt);
>
> > > // Is this a node?
> > > if
> > > (!(elem.hasClassName('node-open') || elem.hasClassName('node-
> > > closed'))) return;
>
> > > evnt.stop();
>
> > > console.log('elem: '+elem);
> > > console.log('elem tag:
> > > '+elem.tagName);
> > > console.log('elem class:
> > > '+elem.className);
>
> > > parent = $(elem).up('li');
>
> > > console.log('parent: '+parent);
>
> > > return;
>
> > > }
>
> > > };
>
> > > document.observe('dom:loaded', function(event) {
> > > TreeNav.init('treeav');
> > > });
> > > </script>
>
> > > On May 22, 5:41 pm, louis w <[EMAIL PROTECTED]> wrote:
>
> > > > Let me try to workupan example. The entire script is more then you
> > > > need to see.
>
> > > > On May 22, 5:15 pm, "Justin Perkins" <[EMAIL PROTECTED]> wrote:
>
> > > > > What does your complete code look like?
>
> > > > > -justin
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---