RE: RJS Templates?

Here’s something strange. I have two machines, the first is Windows
running WEBrick, and the eval(request.responseText) is needed otherwise
nothing shows up.

My other machine, running the same code deployed with Switchtower, and
running Debian with lighttpd, doesn’t need the eval() call, and if I
leave it in, my generated script runs twice.

RJS is very cool. I’m just at the point in my app where I need this
functionality, and I’d just started building this all by hand:

var foo = $('foo');
var bar = document.createElement('div');
foo.innerHTML = .....

Boy, am I glad RJS came along!

On Fri, Nov 18, 2005 at 06:31:43PM -0800, Tom F. wrote:

Here’s something strange. I have two machines, the first is Windows
running WEBrick, and the eval(request.responseText) is needed otherwise
nothing shows up.

My other machine, running the same code deployed with Switchtower, and
running Debian with lighttpd, doesn’t need the eval() call, and if I
leave it in, my generated script runs twice.

Are you sure you are running the same version of prototype? Only
prototype in
trunk eval’s automatically.

marcel

Marcel Molina Jr. [email protected]

Hi,

On 11/18/05, Tom F. [email protected] wrote:

Here’s something strange. I have two machines, the first is Windows
running WEBrick, and the eval(request.responseText) is needed otherwise
nothing shows up.

My other machine, running the same code deployed with Switchtower, and
running Debian with lighttpd, doesn’t need the eval() call, and if I
leave it in, my generated script runs twice.

Make sure prototype.js is the latest version (rake update_javascripts)
and clear your browser’s cache.

Sam