Newbie Mootools Syntax Question

Giganews Newsgroups
Subject: Newbie Mootools Syntax Question
Posted by:  Vik Rubenfeld (vikr@mindspring.com.invalid)
Date: Fri, 02 Nov 2007

I'm setting up an Ajax call, and, being a mootools newbie, I haven't
figured out the syntax yet. I'm getting an error from Firebug saying,
"HandleClick is not defined."

Here's the code:

HandleClick: function()
  {
      var url = '/respond_to_help_request';
      var theContents = $('get_help').getText;

      new Ajax(url, {

                method: 'post',
                onComplete: function(request){
                        //prepare search container for new results
                        $('get_help').empty();

                        $('get_help').setHTML(request);

                        var theElement = $('get_help');
                        fx.scroll(theElement);
                },
                //post search form
                postBody: theContents

        }).request();
  };

var Site = {
      start: function()
      {
              $("get_help").addEvent('click', {function:
HandleClick()});
      }
}
;

window.addEvent('domready', Site.start);

How can I fix this?

Thanks very much in advance to all for any info.

Replies