<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Bringing Javascript to the server using PHP * update *</title>
	<atom:link href="http://www.bombstrike.org/2009/02/bringing-javascript-to-the-server/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.bombstrike.org/2009/02/bringing-javascript-to-the-server/</link>
	<description>Just another WordPress weblog</description>
	<lastBuildDate>Mon, 09 Aug 2010 20:04:17 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: scotts</title>
		<link>http://www.bombstrike.org/2009/02/bringing-javascript-to-the-server/comment-page-1/#comment-1453</link>
		<dc:creator>scotts</dc:creator>
		<pubDate>Wed, 07 Oct 2009 22:56:12 +0000</pubDate>
		<guid isPermaLink="false">http://www.bombstrike.org/?p=37#comment-1453</guid>
		<description>This is incredible.. exactly what I was looking for to create a mini-language, and so easy to add the custom objects I want.

One thing I found after a couple hours of tinkering with it: I don&#039;t see a way to register a function that&#039;s a part of class. With other PHP functions that take callbacks as parameters, when you want to callback to an object&#039;s method, you put an array in place of the name of the function with the object as the first parameter and the name of the method as the second, e.g.:
 $js-&gt;registerFunction( array( $this, &#039;print&#039; ), &#039;print&#039; );

(this currently gives a segmentation fault, I guess because it&#039;s expecting a string, not an array, and there&#039;s no error checking present)

Another nice feature would be to get the details of a javascript error back to PHP (type of error, line number ,etc) so it can be returned by PHP in a sanitized way.

Just a couple of features to think about for a future release. But this is really great and already extremely useful. Thanks for the work!</description>
		<content:encoded><![CDATA[<p>This is incredible.. exactly what I was looking for to create a mini-language, and so easy to add the custom objects I want.</p>
<p>One thing I found after a couple hours of tinkering with it: I don&#8217;t see a way to register a function that&#8217;s a part of class. With other PHP functions that take callbacks as parameters, when you want to callback to an object&#8217;s method, you put an array in place of the name of the function with the object as the first parameter and the name of the method as the second, e.g.:<br />
 $js-&gt;registerFunction( array( $this, &#8216;print&#8217; ), &#8216;print&#8217; );</p>
<p>(this currently gives a segmentation fault, I guess because it&#8217;s expecting a string, not an array, and there&#8217;s no error checking present)</p>
<p>Another nice feature would be to get the details of a javascript error back to PHP (type of error, line number ,etc) so it can be returned by PHP in a sanitized way.</p>
<p>Just a couple of features to think about for a future release. But this is really great and already extremely useful. Thanks for the work!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Pascal MARTIN (n+1).zéro</title>
		<link>http://www.bombstrike.org/2009/02/bringing-javascript-to-the-server/comment-page-1/#comment-953</link>
		<dc:creator>Pascal MARTIN (n+1).zéro</dc:creator>
		<pubDate>Thu, 04 Jun 2009 18:46:16 +0000</pubDate>
		<guid isPermaLink="false">http://www.bombstrike.org/?p=37#comment-953</guid>
		<description>&lt;strong&gt;SpiderMonkey : Exécuter du Javascript côté serveur, depuis PHP...&lt;/strong&gt;

Cet article va nous montrer comment utiliser l’extension PHP SpiderMonkey pour exécuter du Javascript côté serveur, depuis PHP. Sommaire de cet article : SpiderMonkey : exécuter du code Javascript Qu’est-ce que SpiderMonkey ?...</description>
		<content:encoded><![CDATA[<p><strong>SpiderMonkey : Exécuter du Javascript côté serveur, depuis PHP&#8230;</strong></p>
<p>Cet article va nous montrer comment utiliser l’extension PHP SpiderMonkey pour exécuter du Javascript côté serveur, depuis PHP. Sommaire de cet article : SpiderMonkey : exécuter du code Javascript Qu’est-ce que SpiderMonkey ?&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Christophe Robin</title>
		<link>http://www.bombstrike.org/2009/02/bringing-javascript-to-the-server/comment-page-1/#comment-863</link>
		<dc:creator>Christophe Robin</dc:creator>
		<pubDate>Thu, 30 Apr 2009 14:25:34 +0000</pubDate>
		<guid isPermaLink="false">http://www.bombstrike.org/?p=37#comment-863</guid>
		<description>Be careful, most javascript URLs depends on objects made available by the browser, like DOM, so it may not work. But if the library is pretty independent and work only with basic stuff or the Math lib, it should be okay.</description>
		<content:encoded><![CDATA[<p>Be careful, most javascript URLs depends on objects made available by the browser, like DOM, so it may not work. But if the library is pretty independent and work only with basic stuff or the Math lib, it should be okay.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Paul Dorn</title>
		<link>http://www.bombstrike.org/2009/02/bringing-javascript-to-the-server/comment-page-1/#comment-843</link>
		<dc:creator>Paul Dorn</dc:creator>
		<pubDate>Wed, 29 Apr 2009 17:39:40 +0000</pubDate>
		<guid isPermaLink="false">http://www.bombstrike.org/?p=37#comment-843</guid>
		<description>This is great.  I am building a new management tool to replace our aging flagship and needed a way to allow my users to write scriptlets for the server side from the user interface. This allows me to put their scripts in a VERY limited javascript context with a few API objects.  This way they can safely alter the server behavior without leaking privileges.

THANK YOU!</description>
		<content:encoded><![CDATA[<p>This is great.  I am building a new management tool to replace our aging flagship and needed a way to allow my users to write scriptlets for the server side from the user interface. This allows me to put their scripts in a VERY limited javascript context with a few API objects.  This way they can safely alter the server behavior without leaking privileges.</p>
<p>THANK YOU!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Luiz</title>
		<link>http://www.bombstrike.org/2009/02/bringing-javascript-to-the-server/comment-page-1/#comment-466</link>
		<dc:creator>Luiz</dc:creator>
		<pubDate>Thu, 16 Apr 2009 19:55:44 +0000</pubDate>
		<guid isPermaLink="false">http://www.bombstrike.org/?p=37#comment-466</guid>
		<description>Hi Christophe,

Please, I have a mobile site (to be run from a mobile phone) and I would like to use your library to execute JavaScript code, based on some remote JavaScript library, server-sidely and return the result of this (a URL) to the celullar.

Is it possible with your library?</description>
		<content:encoded><![CDATA[<p>Hi Christophe,</p>
<p>Please, I have a mobile site (to be run from a mobile phone) and I would like to use your library to execute JavaScript code, based on some remote JavaScript library, server-sidely and return the result of this (a URL) to the celullar.</p>
<p>Is it possible with your library?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: New feature for spidermonkey: registerClass() &#171; BombStrike&#8217;s blog</title>
		<link>http://www.bombstrike.org/2009/02/bringing-javascript-to-the-server/comment-page-1/#comment-6</link>
		<dc:creator>New feature for spidermonkey: registerClass() &#171; BombStrike&#8217;s blog</dc:creator>
		<pubDate>Sat, 21 Feb 2009 00:51:30 +0000</pubDate>
		<guid isPermaLink="false">http://www.bombstrike.org/?p=37#comment-6</guid>
		<description>[...] Home        &#171; Bringing Javascript to the server using PHP * update * [...]</description>
		<content:encoded><![CDATA[<p>[...] Home        &laquo; Bringing Javascript to the server using PHP * update * [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tuan Anh</title>
		<link>http://www.bombstrike.org/2009/02/bringing-javascript-to-the-server/comment-page-1/#comment-5</link>
		<dc:creator>Tuan Anh</dc:creator>
		<pubDate>Fri, 20 Feb 2009 10:04:55 +0000</pubDate>
		<guid isPermaLink="false">http://www.bombstrike.org/?p=37#comment-5</guid>
		<description>It&#039;s really cool. Thank you for greate information.</description>
		<content:encoded><![CDATA[<p>It&#8217;s really cool. Thank you for greate information.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Christophe Robin</title>
		<link>http://www.bombstrike.org/2009/02/bringing-javascript-to-the-server/comment-page-1/#comment-3</link>
		<dc:creator>Christophe Robin</dc:creator>
		<pubDate>Thu, 19 Feb 2009 23:30:13 +0000</pubDate>
		<guid isPermaLink="false">http://www.bombstrike.org/?p=37#comment-3</guid>
		<description>One of the idea I had was providing a powerful language to our integration team that they would already know, while preventing them to access too much things. PHP was out of question and writing a small language was a pain. SpiderMonkey is well tested and provide Javascript, a language most website integrators know well. And I&#039;m pretty sure other people will found a usage to this :D</description>
		<content:encoded><![CDATA[<p>One of the idea I had was providing a powerful language to our integration team that they would already know, while preventing them to access too much things. PHP was out of question and writing a small language was a pain. SpiderMonkey is well tested and provide Javascript, a language most website integrators know well. And I&#8217;m pretty sure other people will found a usage to this <img src='http://www.bombstrike.org/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ross Scrivener</title>
		<link>http://www.bombstrike.org/2009/02/bringing-javascript-to-the-server/comment-page-1/#comment-2</link>
		<dc:creator>Ross Scrivener</dc:creator>
		<pubDate>Thu, 19 Feb 2009 22:26:55 +0000</pubDate>
		<guid isPermaLink="false">http://www.bombstrike.org/?p=37#comment-2</guid>
		<description>OK, this is pretty mental, why would you want to be able to do this?</description>
		<content:encoded><![CDATA[<p>OK, this is pretty mental, why would you want to be able to do this?</p>
]]></content:encoded>
	</item>
</channel>
</rss>
