# Problem running "Practical Prototype ..." example

**URL:** <https://www.ruby-forum.com/t/problem-running-practical-prototype-example/185919>\
**Category:** Rails\
**Created:** [March 29, 2010, 9:35am UTC](https://www.ruby-forum.com/t/problem-running-practical-prototype-example/185919 "2010-03-29T09:35:56Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![RichardOnRails](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/e0b2c6/32.png) [@RichardOnRails](https://www.ruby-forum.com/u/RichardOnRails)\
**Post date:** [March 29, 2010, 9:35am UTC](https://www.ruby-forum.com/t/problem-running-practical-prototype-example/185919/1 "2010-03-29T09:35:56Z")

</div>

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\>

---

<div class="post-metadata">

**Author:** ![RichardOnRails](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/e0b2c6/32.png) [@RichardOnRails](https://www.ruby-forum.com/u/RichardOnRails)\
**Post date:** [March 30, 2010, 9:16pm UTC](https://www.ruby-forum.com/t/problem-running-practical-prototype-example/185919/2 "2010-03-30T21:16:43Z")

</div>

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
