Re: Help with JQuery and Cake

2009-07-21 Thread Dr. Loboto

Impossible. Browser security rules. Javascript can only read input
type="file" but not edit.

On Jul 21, 11:43 pm, "Dave Maharaj :: WidePixels.com"
 wrote:
> I am uploading a file and the script uses
> name: 'data[Image][image]',
> to pass the file name to Cake.
>
> What I want to do is not use the file name the user enters and change the
> file name before the page is submitted. I can change the file name server
> side but then I need to run more queries to get the file name back to the
> page which is not what I want to do.
>
> So how can i define the data that goes into 'data[Image][image] before
> submit?
>
> something like var 'data[Image][image] = whatever i want it to be.
>
> Just no idea how to do it.
>
> Ideas or suggestions?
>
> thanks
>
> Dave
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
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?hl=en
-~--~~~~--~~--~--~---



Help with JQuery and Cake

2009-07-21 Thread Dave Maharaj :: WidePixels.com
I am uploading a file and the script uses 
name: 'data[Image][image]',
to pass the file name to Cake.
 
What I want to do is not use the file name the user enters and change the
file name before the page is submitted. I can change the file name server
side but then I need to run more queries to get the file name back to the
page which is not what I want to do.
 
So how can i define the data that goes into 'data[Image][image] before
submit?
 
something like var 'data[Image][image] = whatever i want it to be.
 
Just no idea how to do it.
 
Ideas or suggestions?
 
thanks
 
Dave 

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
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?hl=en
-~--~~~~--~~--~--~---