There are 3 ways: one easy, and one slightly harder and one much harder.
1. Edit WikiDefault.js to include a line referencing the libraries of js.
Put the new line at the end of WikiEdit.js (that was the simple).
2. Edit the source locally to  include the required js output lines and
recompile. This would need to be done for every new version installed.
3. Create a configuration parameter that allows the inclusion of an
additional javascript library, test it locally. Request permission to become
a contributor (developer), and once approved, submit the suggested patch.

I guess pick the one that best suits your needs.

John Davidson

On 1/8/08, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
>
> Thanks a lot for the quick answer. Yes I know FleXhtml supports javascript
> inclusion, but I have to include some big libraries, mainly prototype.js
> (94 Kb). I'd like to keep them in separate files so at the moment I simply
> add <script src="..."> tags to my FleXhtml-entered HTML. This works as a
> solution, but messes up the generated HTML a little bit.
>
> I hoped for a possibility to add these <script> tags to the page header
> just after the FlexWiki ones (WikiDefault.js, etc.)...
>
> Benno Dielmann.
>
> > The FleXhtml plugin allows for inline javascript, it does not permit the
> > inclusion of src="xxx..."
> > The way to add the required javascript is to put it into the multiline
> > property used for javascript. If you refer to [1], you will see that the
> > property "TrafficCamScript" contains javascript without the tags
> <script>
> > or
> > </script>, which are inserted by the plugin. The reason for this is to
> > ensure that someone responsible for the wiki can always easily inspect
> the
> > javascript. The page lock mechanism can be used to ensure that the
> > javascript stays as intended.
> >
> > It does not matter where javascript is on the page, except for some
> > performance issues. The plugin also allows for the calling of a function
> > when the page initializes, in this case the "specialFirstLoad()"
> > javascript
> > function declared in the inline javascript in the property
> > "TrafficCamScript"
> >
> > [1]
> >
> http://ods.dyndns.org/FlexWiki/default.aspx/OdsWiki/TrafficCamImplementation.html
> >
> > John Davidson
> >
> > On Jan 8, 2008 8:02 AM, <[EMAIL PROTECTED]> wrote:
> >
> ______
> > Flexwiki-users mailing list
> > Flexwiki-users@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/flexwiki-users
> >
>
>
>
> -------------------------------------------------------------------------
> Check out the new SourceForge.net Marketplace.
> It's the best place to buy or sell services for
> just about anything Open Source.
>
> http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
> _______________________________________________
> Flexwiki-users mailing list
> Flexwiki-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/flexwiki-users
>
-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
_______________________________________________
Flexwiki-users mailing list
Flexwiki-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flexwiki-users

Reply via email to