Barricades, welcome to the community! If you are so new to CakePHP and JavaScript then I would suggest sticking to plugins and helpers that other people within the community use, this way you are much more likely to get support. I certainly would not go and learn how to use the script above so I could then educate you on how to use it, but a quick Google search shows there are various existing image upload tools available for CakePHP along with tutorials on how to set them up:
http://lmgtfy.com/?q=cakephp%3Dimage%2Bupload HTH, Paul. On Nov 5, 2:45 pm, barricades <davow...@googlemail.com> wrote: > I'm learning (trying to anyway) how to use cakephp, and I have a > little javascript which I'd like to use, but I'm having problems > figuring out how to make it work with cakephp. > > The javascript uploads a photo and displays it in a div elsewhere on > the page without reloading and makes it look like ajax. It uses a > hidden iframe. > > I think the problems I've having are to do with relative paths and > basically where to put everything. I've to admit I'm not much of a > programmer yet so it's probably something really simple I'm not doing > but the script doesn't have tutorial and like I said I'm new to cake. > > If anyone fancied helping me out by giving me a run through of what to > do I'd be really grateful. Talk to me like I know nothing, I know very > little :) Here's the script's > website:http://atwebresults.com/php_ajax_image_upload/ > > By the way, I know this might not be the best script on the 'net but > it does seem to do exactly what I want to do (vis-a-vis the preview) > and I'd like to get it working :) -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions. To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php