I bought the book 8 months ago or so and it was already out of date.
There weren't all that many errata but the code didn't work with
current versions.  However, the author has a web site and he was doing
a good job of helping folks out with the example code using newer
releases of Cakephp.

http://www.davidgolding.net/cakephp/ajax-file-uploading-with-cake-and-jquery.html

His forum: http://www.davidgolding.net/forum

On Jul 12, 3:00 am, armen <[email protected]> wrote:
> Forgot to ask.
> when looking at the source page, the add submit forum has the
> following option:
> onsubmit="event.returnValue = false;
> would this have to do with anything?
>
> this is the full line:
> <form id="form2100417860" onsubmit="event.returnValue = false; return
> false;" method="post" action="/warplayart/page/blog/posts/comments/
> add"><fieldset style="display:none;"><input type="hidden"
> name="_method" value="POST" /></fieldset><script type="text/
> javascript">
>
> -Armen
>
> On Jul 12, 2:52 am, armen <[email protected]> wrote:
>
> > Hey Sherlock,
> > Thank you for checking out my page and helping me figure out the
> > problem. Your not forced to help, and I appreciate that very much.
> > I changed the javascript link src to googles location:
> >                 
> > <?=$javascript->link(array('http://ajax.googleapis.com/ajax/libs/
> > prototype/1.6.0.3/prototype')); ?>
> > I still wont work. the page is updated if you wanna look at it.
> > I havn;t changed the .htaccess file and I wouldn't know what to change
> > to fix it.
> > I messed around with the .httpd.conf file and changing folders but
> > that wasn't it.
>
> > I heard there is a debugger which you can step in and out. is this
> > true?
>
> > Thanks,
> > -Armen
>
> > On Jul 11, 6:33 pm, Sam Sherlock <[email protected]> wrote:
>
> > > That sounds correct; double check the names of files check the server 
> > > config
> > > too. I would try point number 2 though below I included point 1 since you
> > > may prefer or need to get the cake js working.   2 is a more rapid 
> > > solution
> > > given that something odd is happening.  Perhaps someone else will have 
> > > some
> > > other advice to offer - I'd go with 2 google api prototype for now at 
> > > least
>
> > > 1) if this is in your layout
> > >        <?=$javascript->link(array('cake.prototype')); ?>
> > > then this would be outputted (assuming everything is working - and that 
> > > your
> > > app is in warplayart)
>
> > >http://warplayart.com/warplayart/js/cake.prototype.js
>
> > > notice above its cake.prototype.js => I am sure your upto speed on the 
> > > fact
> > > that cake adds the .js suffix automatically and looks in the js directory 
> > > in
> > > webroot.   Whatever url I enter to find your copy of prototype always
> > > returns err404 and not the cake error either
>
> > > Therefore  I think something else is happening, I would say your .htaccess
> > > is not working but the css loads ok and that is done in the same way.  
> > > This
> > > leaves me to think that this is server specific or you dont have the file
> > > there or the name is different ie not prototype.js (there maybe a version
> > > number in there?)
>
> > > 2) All that can be circumvented by loading the google hosted 
> > > apihttp://ajax.googleapis.com/ajax/libs/prototype/1.6.0.3/prototype.js
>
> > > in this case you put the whole thing in the call to the js helpers link
> > > method or you could just write the script block.  I think it will then 
> > > work
> > > - or you'll at least jump that hurdle and then have to volt another
>
> > > (sorry this was over wordy ~ the ability to be concise gets weaker as I 
> > > get
> > > more tired)
>
> > > - S
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to