dhvani Posted July 25, 2009 Share Posted July 25, 2009 Hi All, I am having a problem while using window.addEvent('domready',function({})); It is giving me error that window.addEvent() is not a function. while its working fine in home page. I got suck in this please help me out Quote Link to comment Share on other sites More sharing options...
RichardRotterdam Posted July 25, 2009 Share Posted July 25, 2009 Can you show the rest of the javascript code. It looks like you are using mootools for this one. I do notice that the curly brackets {} shoud be behind the parentheses ( ) change: window.addEvent('domready',function({})); to: window.addEvent('domready',function(){ // your domready code here }); Quote Link to comment Share on other sites More sharing options...
dhvani Posted July 25, 2009 Author Share Posted July 25, 2009 oh ok that was typing mistake. I used wat u suggest only but it was not working so shifted from mootools. Thanks anyways Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.