system.include() not working?

jensomato's picture
Hi all, I tried to use system.include() to include common js functions but it doesn't seem to work. Neither using relative/absolute paths to the fs nor urls is working. I tried: system.include("prototype.js"); => prototype.js sits in .resource system.include("C:\path\to\servicename.resource\prototype.js"); system.include("http://ajax.googleapis.com/ajax/libs/prototype/1.6.0.3/prototype.js"); Nothing worked. What's the right way to include common functions? Greetings, Jens
tyrell's picture

Hi Jens, This works fine.

Hi Jens,

This works fine. Have a look at digit2image or any sample using js stubs (found in wso2mashup-2.0.0/repository/scripts) they use system.include

Does digit2image work on your installation?

Tyrell

jensomato's picture

You are right.

Hi Tyrell,
now it's working. My fault! :-)
Greetings, Jens

Hot Topic
Hot
Topic

Google Gadgets are a nice way to develop user interfaces for distributed services. The fact that they can be hosted anywhere over a network, not necessarily in the very portal server they eventually run in makes them re-usable and allows users to quickly...

Latest Webinar
In this webinar we'll share the range of concerns we've heard from the industry, and survey some of the new and sometimes subtle types of lock-in associated with cloud technologies.
Wednesday, 8 September, 10.00 AM (PDT)