this worked for me: http://jsbin.com/utahi

On Sun, Jan 4, 2009 at 5:31 PM, [email protected]
<[email protected]> wrote:
>
> function Viewer()
> {
>
> };
>
> Viewer.prototype.constructor = Viewer;
>
> Viewer.prototype =
> {
>    getFullAreaId: function() { return this._fullAreaId; },
>    setFullAreaId: function(fullAreaId) { this._fullAreaId =
> fullAreaId; },
>
>    initialize: function()
>    {
>        $("#thumbs img:first").click(/* execute this.doX on mouse
> click */);
>    },
>
>    doX: function()
>    {
>        alert(this.getFullAreaId());
>    }
> };
>
> How can I make the click event execute the doX method?
>
> Regards,
> FatSlags2004

Reply via email to