[jQuery] Re: Check if function exists

2009-09-02 Thread Eric Paige
unsubscribe me Eric Paige Web Developer On Wed, Sep 2, 2009 at 10:44 AM, shapper wrote: > > Hello, > > I am loading TinyMCE using the new JQuery Plugin: > >

[jQuery] Re: Check if function exists

2009-09-02 Thread Michael Geary
You could try to test for the existence of a global function that way, but it wouldn't work. It would give you a reference error on 'functionname' if it isn't defined. For a global function you would use: if( window.functionname ) { ... } But Miguel's question wasn't about glo

[jQuery] Re: Check if function exists

2009-09-02 Thread Michael Lawson
if(functioname) { //it exists, do stuff } cheers Michael Lawson Development Lead, Global Solutions, ibm.com Phone: 1-276-206-8393 E-mail: mjlaw...@us.ibm.com 'Whether one believes in a religion or not, and whether one believes in rebirth or not, there isn't anyone who doesn't appreciate kindne

[jQuery] Re: Check if function exists

2009-09-02 Thread MorningZ
you should be able to wrap that call in if (jQuery.tinymce) { ... your code doing tinymce stuff ... } On Sep 2, 10:44 am, shapper wrote: > Hello, > > I am loading TinyMCE using the new JQuery Plugin: > >