Barricades,

The idea of firing of an ajax request (which means your existing page does 
not get reloaded) to upload a file and have the files path returned is 
relatively simple and I'm sure you will be able to modify any of the 
existing plugins to do this, you just need to get a grip on how to use 
javascript and what happens when you fire an ajax call.

What you need to be able to do is debug what's happening with your script.  

   1. Is the js file being loaded?
   2. Is the onChange event bring triggered? (try a simple alert('The field 
   has changed');)
      1. If so, is it then firing an ajax call to your controller/action
         1. At this point you should be using FireBug or something similar 
         to see what the ajax request is sending and receiving, but all you 
want is 
         for your controller action to process the file and send back the 
image's 
         url (which all decent upload scrips should make available)
      
HTH, Paul

-- 
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
[email protected] For more options, visit this group at 
http://groups.google.com/group/cake-php

Reply via email to