Announcement

Do not use the forums to submit bug reports, feature requests or patches, submit a New Ticket instead.

#1 2005-02-19 23:53:49

Yermo
Xinha Authority
From: College Park, Md, USA
Registered: 2005-02-13
Posts: 143
Website

Javascript question: including javascript files in plugins?

It see how stylesheets are added from plugins, but I haven't found a good example of how to include a new javascript file from a plugin. loadScript doesn't seem to fit the bill or am I missing something?

thanks,

-- Yermo


-----------------------------------------------------------------------------------------
Content Management with Business Intelligence      [url]http://www.formvista.com[/url]

Offline

#2 2005-02-21 05:37:13

gogo
Xinha Leader
From: New Zealand
Registered: 2005-02-11
Posts: 1,015
Website

Re: Javascript question: including javascript files in plugins?

Yermo wrote:

It see how stylesheets are added from plugins, but I haven't found a good example of how to include a new javascript file from a plugin. loadScript doesn't seem to fit the bill or am I missing something?

Try the HTMLArea._loadback() function, it will load a javascript file and hit a callback when it's done (so you can set a ready flag in the plugin for example).


James Sleeman

Offline

Board footer

Powered by FluxBB