Thanks for the help everyone, I solved it. My project involves sharing files with some coleagues, and someone added a conflicting js library to the header. Thank's it.
Once again, thank you very much. : D Regards, kazuo On Jul 18, 2:11 am, Michael Fuery <[email protected]> wrote: > I have a hunch... do you see your page reload when you click on one of > your links? I notice that you are not passing the event object into > the onClick closure and not stopping the click event: > > {events:{click:function(evt){ > evt.stop(); > ... (your code) > > }}} > > jsFiddle is set up to stop all link click events by default, but your > own app would not have this functionality. > > On Jul 16, 1:26 pm, KaZuo <[email protected]> wrote: > > > > > Here' s the jsFiddle. It works here, but it doesn't work when I put it > > in the actual code. =/ I wonder what's wrong... I'm using Mootools > > 1.2, btw. Thanks for the help. > > >http://jsfiddle.net/kwaZd/ > > > Regards, > > > kazuo > > > On Jul 17, 2:28 am, Ryan Florence <[email protected]> wrote: > > > > It's as okay as the going on a date with somebody who is hideous to look > > > at. Your call :P > > > > There's nothing wrong with `a.setStyle('display', 'none')` in MooTools, > > > so something is busted in your code. > > > > Looking forward to the jsfiddle. > > > > On Jul 16, 2010, at 12:06 PM, KaZuo wrote: > > > > > Thanks for the quick reply. I'll make one right away, but just a > > > > question: > > > > > document.getElementById(a.get('id')).style.display = 'none'; > > > > > Is this ok? Would this have compatibility issues with other > > > > browsers? > > > > > If the answer is no, then that means my problem's solved. Thank you so > > > > much for your help. > > > > > Regards, > > > > > kazuo > > > > > On Jul 17, 1:40 am, Paul Saukas <[email protected]> wrote: > > > >> Kazuo, > > > > >> We could help you with this if we had 1 or 2 things. Either the actual > > > >> java > > > >> script you are having a problem with, aka the button click event code, > > > >> or a > > > >> link to the jsfiddle demo working or not so we could see the code . as > > > >> it > > > >> stands best we can do is guess.
