<?xml version="1.0" encoding="UTF-8"?><!-- generator="wordpress/2.0.2" -->
<rss version="2.0" 
	xmlns:content="http://purl.org/rss/1.0/modules/content/">
<channel>
	<title>Comments on: Making BSF and Rhino work</title>
	<link>http://tech.puredanger.com/2007/01/03/making-bsf-and-rhino-work/</link>
	<description>Alex Miller's technical blog</description>
	<pubDate>Thu, 28 Aug 2008 03:16:24 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.0.2</generator>

	<item>
		<title>by: Linda</title>
		<link>http://tech.puredanger.com/2007/01/03/making-bsf-and-rhino-work/#comment-2625</link>
		<pubDate>Mon, 16 Apr 2007 19:30:10 +0000</pubDate>
		<guid>http://tech.puredanger.com/2007/01/03/making-bsf-and-rhino-work/#comment-2625</guid>
					<description>Hi,

I am trying to use BSF and Rhino in my project also. So far, I already passed the stage described in this blog. 

But because my business logic is complicate, I would like to separate them into functions declared in different javascript files. Then I just call the functions in my main.js file. 

For example I have a myJS.js file in which I declare:

function func1() {
  return 1;
}

function func2( param) {
return 2;
}

Then in my main.js, I tried 
load(&quot;myJS.js&quot;) 

But it failed. The error messags says: Couldn't open file myJS.js.

Have you tried anything similar?


Thanks

Linda</description>
		<content:encoded><![CDATA[<p>Hi,</p>
<p>I am trying to use BSF and Rhino in my project also. So far, I already passed the stage described in this blog. </p>
<p>But because my business logic is complicate, I would like to separate them into functions declared in different javascript files. Then I just call the functions in my main.js file. </p>
<p>For example I have a myJS.js file in which I declare:</p>
<p>function func1() {<br />
  return 1;<br />
}</p>
<p>function func2( param) {<br />
return 2;<br />
}</p>
<p>Then in my main.js, I tried<br />
load(&#8221;myJS.js&#8221;) </p>
<p>But it failed. The error messags says: Couldn&#8217;t open file myJS.js.</p>
<p>Have you tried anything similar?</p>
<p>Thanks</p>
<p>Linda
</p>
]]></content:encoded>
				</item>
</channel>
</rss>
