[tbc-users] Re: still cannot make the javascript function work as expected

2009-04-16 Thread mwz
Hi Hoger and Scott, I got everything work for me. But still confused why it did not work before. Thank you for the help provided. Mingzhen On Apr 15, 11:03 am, Holger Knublauch wrote: > Please feel free to send me your files (off the list) - I want to   > understand what's going on. > > Thanks

[tbc-users] Re: still cannot make the javascript function work as expected

2009-04-15 Thread Holger Knublauch
Please feel free to send me your files (off the list) - I want to understand what's going on. Thanks Holger On Apr 15, 2009, at 8:56 AM, mwz wrote: > > Hi, Holger, > > I cannot reply my previous posts with Scott so I had to start a new > one. The function is very simple one to calculate the

[tbc-users] Re: still cannot make the javascript function work as expected

2009-04-15 Thread Scott Henninger
The name of the function must be the same as the JavaScript name. Do have a look at http://composing-the-semantic-web.blogspot.com/2009/03/using-javascript-to-define-sparql.html There is a good example there. -- Scott On Apr 15, 10:56 am, mwz wrote: > Hi, Holger, > > I cannot reply my previou

[tbc-users] Re: still cannot make the javascript function work as expected

2009-04-15 Thread mwz
Hi, Holger, I cannot reply my previous posts with Scott so I had to start a new one. The function is very simple one to calculate the square of a number. You can read the previous posts for more information. I got the same function work when I put it in spinx:javascriptCode. I just cannot get it

[tbc-users] Re: still cannot make the javascript function work as expected

2009-04-15 Thread Holger Knublauch
Is there anything in the error log (Window > Show View > Error Log)? Also, could you send us the definition of the SPIN function? How does it differ from the example I presented on my blog? Thanks Holger On Apr 15, 2009, at 8:45 AM, mwz wrote: > > Scott, > > I added the argument, and I still