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 Link to comment https://forums.phpfreaks.com/topic/167365-windowaddevent-is-not-a-function/ 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 }); Link to comment https://forums.phpfreaks.com/topic/167365-windowaddevent-is-not-a-function/#findComment-882560 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 Link to comment https://forums.phpfreaks.com/topic/167365-windowaddevent-is-not-a-function/#findComment-882571 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.