Problem running "Practical Prototype ..." example

I tried running the example in the text around Figures 4.1 , 4.2. I’m
running WinXP-Pro/SP3, Firefox 3.6.2, Firebug 1.5.3. All the details
are in the following Command Window results. It’s pretty obvious that
“new” is not a regularly recognized Windows command, but I don’t know
whether the author was running Unix, Linux, Mac OS or something else.
BTW, I think this book is a great tutorial.

Thanks in Advance,
Richard

K:>cd K:_Projects\Ruby_Rails_Apps__PracticalPrototypeExamples

K:_Projects\Ruby_Rails_Apps__PracticalPrototypeExamples>JS_01.html
[The Figure 4.1 window came up in Firefox 3.6.2, including the Firebug
pane]

K:_Projects\Ruby_Rails_Apps__PracticalPrototypeExamples>new
ajax.request(‘ajax.js’, {method: ‘get’})
‘new’ is not recognized as an internal or external command,
operable program or batch file.

K:_Projects\Ruby_Rails_Apps__PracticalPrototypeExamples>type
JS_01.html

JS_01

Blank Page

K:_Projects\Ruby_Rails_Apps__PracticalPrototypeExamples>type
ajax.js
alert(“Hello from Ajax.js”);

K:_Projects\Ruby_Rails_Apps__PracticalPrototypeExamples>

Problem solved somewhat: I was supposed to paste the “new …” code in
Firebug:Console, not a Command Window. I’ve still got a problem,
but I’ll post it on a new thread.

On Mar 29, 3:34 am, RichardOnRails