I have a JS object with the following method;

doAddTab:function( linkText, source )
{
        var myListItem = document.createElement( "li" );
        var myLink = document.createElement( "a" );
        var myIFrame = document.createElement( "iframe" );
        myLink.onclick = "return false;";
        myLink.innerHTML = linkText;
        myLink.href = "";
        myListItem.onclick = "doMakeActive( this );";
................
        return this;
},

The problem is with myListItem.onclick = "doMakeActive( this );";
as it should really have a reference to the object itself, eg.
myListItem.onclick = "SomeObject.doMakeActive( this );";

But ofcourse I don't know what SomeObject is until the object is
instantiated like so;
myObject = new SomeName().init();

Does anyone know a way around this?

--
Taco Fleur - http://www.pacificfox.com.au
Web Design, Web development, Graphic Design and Complete Internet Solutions
an industry leader with commercial IT experience since 1994 …

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"cfaussie" group.
To post to this group, send email to cfaussie@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/cfaussie
-~----------~----~----~----~------~----~------~--~---

Reply via email to