Hi Mingzhen, if you have a spin:Function my:testFunction then you just need to create a JavaScript file in the same folder as your RDF/SPIN file and point to that file using spinx:javaScriptFile. The file either needs to contain a JavaScript function called testFunction, or you can call any other function from that file using spinx:javaScriptCode.
Holger On Apr 13, 2009, at 1:30 PM, mwz wrote: > > Hi Everyone, > > I am testing how TopBraid can access a user defined javascript file > and therefore the functions in the file. For example, I am defining a > subclass of spin:Function, there are options like spinx:javaScriptCode > and spinx:javaScriptFile. If I want to use the second option, where > should I put the file (assuming there is only one function in the > file) and how should I infer to the file. Thank you very much. > > Mingzhen > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "TopBraid Composer Users" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/topbraid-composer-users?hl=en -~----------~----~----~----~------~----~------~--~---
