Jump to content


Photo

window.addEvent() is not a function


  • Please log in to reply
2 replies to this topic

#1 dhvani

dhvani

    Member

  • Members
  • PipPip
  • 26 posts
  • LocationIndia

Posted 25 July 2009 - 12:11 AM

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
10 speakers can't beat 1 thinker, 10 thinker cant beat 1 planner, 100 planners can't beat 1 performer.... So , Always try to be performer... :)

#2 RichardRotterdam

RichardRotterdam

    Advanced Member

  • Members
  • PipPipPip
  • 1,510 posts
  • LocationThe Netherlands

Posted 25 July 2009 - 04:03 AM

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
});


#3 dhvani

dhvani

    Member

  • Members
  • PipPip
  • 26 posts
  • LocationIndia

Posted 25 July 2009 - 05:47 AM

oh ok that was typing mistake.

I used wat u suggest only but it was not working so shifted from mootools.

Thanks anyways

10 speakers can't beat 1 thinker, 10 thinker cant beat 1 planner, 100 planners can't beat 1 performer.... So , Always try to be performer... :)




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users

Cheap Linux VPS from $5
SSD Storage, 30 day Guarantee
1 TB of BW, 100% Network Uptime

AlphaBit.com