Jquery and Cake php problem

2014-04-27 Thread Sir Neiklot Bega
Hello,

I'm trying to do a 

   $('#div').load(/app/View/About/internal.php)

To load a content in real-time in a div,

This is working well in the localhost but when I put this code in the 
server, cakePhp is searching a Controller (View) to process this request, 
and then is retourning:


POST http://www.avantravel.es/app/View/About/aboutPresentation.php
404 Not Found
183ms
How I can't inform that this is a page in php that must be load to this Div 
section without using a controller


Thanks in advance,
Neiklot

-- 
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP

--- 
You received this message because you are subscribed to the Google Groups 
CakePHP group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to cake-php+unsubscr...@googlegroups.com.
To post to this group, send email to cake-php@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php.
For more options, visit https://groups.google.com/d/optout.


Re: Jquery and Cake php problem

2014-04-27 Thread Thomas von Hassel
What are you doing in internal.php that could not be done better and more 
correct in your controllers ?

/thomas


On 26 Apr 2014, at 11:53, Sir Neiklot Bega neiklotbe...@gmail.com wrote:

 Hello,
 
 I'm trying to do a 
 
$('#div').load(/app/View/About/internal.php)
 
 To load a content in real-time in a div,
 
 This is working well in the localhost but when I put this code in the server, 
 cakePhp is searching a Controller (View) to process this request, and then is 
 retourning:
 
 
 POST http://www.avantravel.es/app/View/About/aboutPresentation.php
 404 Not Found
 183ms
 
 How I can't inform that this is a page in php that must be load to this Div 
 section without using a controller
 
 
 Thanks in advance,
 Neiklot
 
 -- 
 Like Us on FaceBook https://www.facebook.com/CakePHP
 Find us on Twitter http://twitter.com/CakePHP
 
 --- 
 You received this message because you are subscribed to the Google Groups 
 CakePHP group.
 To unsubscribe from this group and stop receiving emails from it, send an 
 email to cake-php+unsubscr...@googlegroups.com.
 To post to this group, send email to cake-php@googlegroups.com.
 Visit this group at http://groups.google.com/group/cake-php.
 For more options, visit https://groups.google.com/d/optout.

-- 
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP

--- 
You received this message because you are subscribed to the Google Groups 
CakePHP group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to cake-php+unsubscr...@googlegroups.com.
To post to this group, send email to cake-php@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php.
For more options, visit https://groups.google.com/d/optout.


Re: autoComplete with jquery in cake 1.3

2013-05-30 Thread Arif Rahman
i got same problem, pls help

thanks

Pada Selasa, 29 Januari 2013 17:31:02 UTC+7, Chris menulis:

 hi guys,.. can you help me please,... 
 I'm in cake 1.3 and using jquery libraries 

 I got all setup, including jquery.autocomplete.min.js from Ajax Javascript 
 helper http://www.cakephp.4uk.pl/ajax/autoComplete ,... 
 I can see the fistnames in autocomplete form field, but I can't select 
 them,... 

 how can I fix this...? 

 this is my form: 

 ?php echo $this-Form-create('User'); ?

 div style=float: left; width: 200px; margin: 10px 0 40px 15px; 
 ?php echo $ajax-autoComplete('User.firstname', '/users/autoComplete', 
 array('label' = false)); ?
 /div

 span style=float: left; width: 200px; margin: 5px 0 40px 15px; 
 ?php echo $this-Form-end(__('Search', true)); ?
 /span 


 this is my function: 

 function autoComplete() {

 $this-set('members', $this-User-find('all', array(
 'conditions' = array(
 'User.firstname LIKE' = $this-params['url']['q'].'%'
 ),
 'fields' = array('firstname')
 )));
 $this-layout = 'ajax';
 }

 and this is auto_complete.ctp file: 

 ul
 ?php foreach($members as $member): ?
  li?php echo $member['User']['firstname']; ?/li

 div class=clr/div
 ?php endforeach; ?
 /ul

 thanks in advance 
 chris 



-- 
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP

--- 
You received this message because you are subscribed to the Google Groups 
CakePHP group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to cake-php+unsubscr...@googlegroups.com.
To post to this group, send email to cake-php@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




autoComplete with jquery in cake 1.3

2013-01-29 Thread Chris
hi guys,.. can you help me please,... 
I'm in cake 1.3 and using jquery libraries 

I got all setup, including jquery.autocomplete.min.js from Ajax Javascript 
helper http://www.cakephp.4uk.pl/ajax/autoComplete ,... 
I can see the fistnames in autocomplete form field, but I can't select 
them,... 

how can I fix this...? 

this is my form: 

?php echo $this-Form-create('User'); ?

div style=float: left; width: 200px; margin: 10px 0 40px 15px; 
?php echo $ajax-autoComplete('User.firstname', '/users/autoComplete', 
array('label' = false)); ?
/div

span style=float: left; width: 200px; margin: 5px 0 40px 15px; 
?php echo $this-Form-end(__('Search', true)); ?
/span 


this is my function: 

function autoComplete() {

$this-set('members', $this-User-find('all', array(
'conditions' = array(
'User.firstname LIKE' = $this-params['url']['q'].'%'
),
'fields' = array('firstname')
)));
$this-layout = 'ajax';
}

and this is auto_complete.ctp file: 

ul
?php foreach($members as $member): ?
 li?php echo $member['User']['firstname']; ?/li

div class=clr/div
?php endforeach; ?
/ul

thanks in advance 
chris 

-- 
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP

--- 
You received this message because you are subscribed to the Google Groups 
CakePHP group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to cake-php+unsubscr...@googlegroups.com.
To post to this group, send email to cake-php@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




Re: autoComplete with jquery in cake 1.3

2013-01-29 Thread lowpass
If you're seeing the results then it isn't a Cake problem. I'd guess
CSS, probably with the floats. Have you tried installing Firebug?

On Tue, Jan 29, 2013 at 5:31 AM, Chris chris...@yahoo.com wrote:
 hi guys,.. can you help me please,...
 I'm in cake 1.3 and using jquery libraries

 I got all setup, including jquery.autocomplete.min.js from Ajax Javascript
 helper http://www.cakephp.4uk.pl/ajax/autoComplete ,...
 I can see the fistnames in autocomplete form field, but I can't select
 them,...

 how can I fix this...?

 this is my form:

 ?php echo $this-Form-create('User'); ?

 div style=float: left; width: 200px; margin: 10px 0 40px 15px; 
 ?php echo $ajax-autoComplete('User.firstname', '/users/autoComplete',
 array('label' = false)); ?
 /div

 span style=float: left; width: 200px; margin: 5px 0 40px 15px; 
 ?php echo $this-Form-end(__('Search', true)); ?
 /span


 this is my function:

 function autoComplete() {

 $this-set('members', $this-User-find('all', array(
 'conditions' = array(
 'User.firstname LIKE' = $this-params['url']['q'].'%'
 ),
 'fields' = array('firstname')
 )));
 $this-layout = 'ajax';
 }

 and this is auto_complete.ctp file:

 ul
 ?php foreach($members as $member): ?
  li?php echo $member['User']['firstname']; ?/li

 div class=clr/div
 ?php endforeach; ?
 /ul

 thanks in advance
 chris

 --
 Like Us on FaceBook https://www.facebook.com/CakePHP
 Find us on Twitter http://twitter.com/CakePHP

 ---
 You received this message because you are subscribed to the Google Groups
 CakePHP group.
 To unsubscribe from this group and stop receiving emails from it, send an
 email to cake-php+unsubscr...@googlegroups.com.
 To post to this group, send email to cake-php@googlegroups.com.
 Visit this group at http://groups.google.com/group/cake-php?hl=en.
 For more options, visit https://groups.google.com/groups/opt_out.



-- 
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP

--- 
You received this message because you are subscribed to the Google Groups 
CakePHP group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to cake-php+unsubscr...@googlegroups.com.
To post to this group, send email to cake-php@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




Re: autoComplete with jquery in cake 1.3

2013-01-29 Thread Chris
hi cricket,... thank you for your reply,... 
I did install Firebug,... and I don't see any errors,... 

is there a way I can contact you? What's you website or contact info,... 


On Tuesday, January 29, 2013 2:56:10 PM UTC-8, cricket wrote:

 If you're seeing the results then it isn't a Cake problem. I'd guess 
 CSS, probably with the floats. Have you tried installing Firebug? 

 On Tue, Jan 29, 2013 at 5:31 AM, Chris chri...@yahoo.com javascript: 
 wrote: 
  hi guys,.. can you help me please,... 
  I'm in cake 1.3 and using jquery libraries 
  
  I got all setup, including jquery.autocomplete.min.js from Ajax 
 Javascript 
  helper http://www.cakephp.4uk.pl/ajax/autoComplete ,... 
  I can see the fistnames in autocomplete form field, but I can't select 
  them,... 
  
  how can I fix this...? 
  
  this is my form: 
  
  ?php echo $this-Form-create('User'); ? 
  
  div style=float: left; width: 200px; margin: 10px 0 40px 15px;  
  ?php echo $ajax-autoComplete('User.firstname', '/users/autoComplete', 
  array('label' = false)); ? 
  /div 
  
  span style=float: left; width: 200px; margin: 5px 0 40px 15px;  
  ?php echo $this-Form-end(__('Search', true)); ? 
  /span 
  
  
  this is my function: 
  
  function autoComplete() { 
  
  $this-set('members', $this-User-find('all', array( 
  'conditions' = array( 
  'User.firstname LIKE' = $this-params['url']['q'].'%' 
  ), 
  'fields' = array('firstname') 
  ))); 
  $this-layout = 'ajax'; 
  } 
  
  and this is auto_complete.ctp file: 
  
  ul 
  ?php foreach($members as $member): ? 
   li?php echo $member['User']['firstname']; ?/li 
  
  div class=clr/div 
  ?php endforeach; ? 
  /ul 
  
  thanks in advance 
  chris 
  
  -- 
  Like Us on FaceBook https://www.facebook.com/CakePHP 
  Find us on Twitter http://twitter.com/CakePHP 
  
  --- 
  You received this message because you are subscribed to the Google 
 Groups 
  CakePHP group. 
  To unsubscribe from this group and stop receiving emails from it, send 
 an 
  email to cake-php+u...@googlegroups.com javascript:. 
  To post to this group, send email to cake...@googlegroups.comjavascript:. 

  Visit this group at http://groups.google.com/group/cake-php?hl=en. 
  For more options, visit https://groups.google.com/groups/opt_out. 
  
  


-- 
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP

--- 
You received this message because you are subscribed to the Google Groups 
CakePHP group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to cake-php+unsubscr...@googlegroups.com.
To post to this group, send email to cake-php@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




Re: autoComplete with jquery in cake 1.3

2013-01-29 Thread Shahruk Khan
This is not a CakePHP issue. Most likely a javascript / CSS issue, I'd bet 
javascript.

On Tuesday, January 29, 2013 5:31:02 AM UTC-5, Chris wrote:

 hi guys,.. can you help me please,... 
 I'm in cake 1.3 and using jquery libraries 

 I got all setup, including jquery.autocomplete.min.js from Ajax Javascript 
 helper http://www.cakephp.4uk.pl/ajax/autoComplete ,... 
 I can see the fistnames in autocomplete form field, but I can't select 
 them,... 

 how can I fix this...? 

 this is my form: 

 ?php echo $this-Form-create('User'); ?

 div style=float: left; width: 200px; margin: 10px 0 40px 15px; 
 ?php echo $ajax-autoComplete('User.firstname', '/users/autoComplete', 
 array('label' = false)); ?
 /div

 span style=float: left; width: 200px; margin: 5px 0 40px 15px; 
 ?php echo $this-Form-end(__('Search', true)); ?
 /span 


 this is my function: 

 function autoComplete() {

 $this-set('members', $this-User-find('all', array(
 'conditions' = array(
 'User.firstname LIKE' = $this-params['url']['q'].'%'
 ),
 'fields' = array('firstname')
 )));
 $this-layout = 'ajax';
 }

 and this is auto_complete.ctp file: 

 ul
 ?php foreach($members as $member): ?
  li?php echo $member['User']['firstname']; ?/li

 div class=clr/div
 ?php endforeach; ?
 /ul

 thanks in advance 
 chris 



-- 
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP

--- 
You received this message because you are subscribed to the Google Groups 
CakePHP group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to cake-php+unsubscr...@googlegroups.com.
To post to this group, send email to cake-php@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




ajax+jquery with cake

2010-04-23 Thread MANOJ DHAMAL
I m new with cake. i m usung jquery and ajax both with cake . when i
include prototype.js in project then jquery not works . Any solution
for that.
   thanks.

Check out the new CakePHP Questions site http://cakeqs.org and help others with 
their CakePHP related questions.

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


Re: ajax+jquery with cake

2010-04-23 Thread cricket
On Apr 23, 2:00 am, MANOJ DHAMAL manoj.dham...@gmail.com wrote:
 I m new with cake. i m usung jquery and ajax both with cake . when i
 include prototype.js in project then jquery not works . Any solution
 for that.

Don't use prototype?

OK, see here:

http://docs.jquery.com/Using_jQuery_with_Other_Libraries

Check out the new CakePHP Questions site http://cakeqs.org and help others with 
their CakePHP related questions.

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


ajax+jquery with cake

2010-04-23 Thread MANOJ DHAMAL
Hi All,
I ma first time working on project in cakephp . I m using ajax and jquery
both in project. When i include prototype.js for ajax it affects to jquery,
jquery not works . Any solution for this?

Thanks.

Check out the new CakePHP Questions site http://cakeqs.org and help others with 
their CakePHP related questions.

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


Re: ajax+jquery with cake

2010-04-23 Thread Annamalai
give jQuery.noConflict();   in jquey file and then try
it will works

Check out the new CakePHP Questions site http://cakeqs.org and help others with 
their CakePHP related questions.

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


Re: jQuery with Cake forms

2009-08-27 Thread Mike

Thanks a ton for the tip - this worked out great!

The only thing I'd want to warn other people about (just in case
someone else is following these same footsteps) is that the text input
appeared to be a normal, everyday text input until I clicked on it,
whereupon the DatePicker control nicely slid out  allowed me to use
it. :)

Thanks again!
--Mike

On Aug 26, 7:57 pm, Matt Curry m...@mcurry.net wrote:
 This one's pretty easy actually...Just set the input to be type text
 and attach the datepicker to the id of the input (not the div):

 ?php
 echo $form-input('field', array('type' = 'text'));
 ?

 script type=text/javascript
   $(function(){
     $('#ModelField').datepicker();
   });
 /script

 -Matthttp://www.pseudocoder.com

 On Aug 26, 10:02 pm, Mike mike.pan...@gmail.com wrote:



  Hello!

  I'm looking to use jQuery with Cake, specifically with a form.  My
  plan was to use a DatePicker  (http://docs.jquery.com/UI/Datepicker)
  control instead of the default datetime drop-down menus, but it looks
  like the easy approach (give the datetime div an id that jQuery's
  DatePicker automagically replaces) doesn't seem to work.
  Specifically, jQuery doesn't replace the Cake form elements (nevermind
  stuff like feeding back into Cake's validation logic).  Also, I don't
  want to use AJAX, just the UI control to make my otherwise normal form
  easier to use.

  I was thinking about hacking together some sort of custom, hidden form
  elements to convey the datetime back to Cake, putting the DatePicker
  on the page, and then having code in the 'onSubmit' to extract the
  relevant info  stuff them into the hidden fields.  I got as far as
  realizing that I'd need more code to auto-populate the control, plus
  the uncertainty that Cake would actually use this info (even if I
  named the form elements identically to the normal datetime stuff), and
  realized how dodge-y this all sounded :)

  So instead of throwing a lot of time into that first up, I wanted to
  instead ask if there's a reasonable approach to this.  I *think* what
  I want to do is replace a standard Cake $form-input field with my
  own, but still have the auto-populate (and auto-validate) logic work.

  Any ideas on ways to approach this would be appreciated.

  Authoritative responses like There's no way to do this without
  rewriting parts of Cake/vast amounts of your own code are also
  appreciated (I'd rather find out this isn't possible  try something
  else, instead of throwing tons of time into it and find that out on my
  own :)  ).

  Thanks!
  --Mike
--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



jQuery with Cake forms

2009-08-26 Thread Mike

Hello!

I'm looking to use jQuery with Cake, specifically with a form.  My
plan was to use a DatePicker  (http://docs.jquery.com/UI/Datepicker)
control instead of the default datetime drop-down menus, but it looks
like the easy approach (give the datetime div an id that jQuery's
DatePicker automagically replaces) doesn't seem to work.
Specifically, jQuery doesn't replace the Cake form elements (nevermind
stuff like feeding back into Cake's validation logic).  Also, I don't
want to use AJAX, just the UI control to make my otherwise normal form
easier to use.

I was thinking about hacking together some sort of custom, hidden form
elements to convey the datetime back to Cake, putting the DatePicker
on the page, and then having code in the 'onSubmit' to extract the
relevant info  stuff them into the hidden fields.  I got as far as
realizing that I'd need more code to auto-populate the control, plus
the uncertainty that Cake would actually use this info (even if I
named the form elements identically to the normal datetime stuff), and
realized how dodge-y this all sounded :)

So instead of throwing a lot of time into that first up, I wanted to
instead ask if there's a reasonable approach to this.  I *think* what
I want to do is replace a standard Cake $form-input field with my
own, but still have the auto-populate (and auto-validate) logic work.

Any ideas on ways to approach this would be appreciated.

Authoritative responses like There's no way to do this without
rewriting parts of Cake/vast amounts of your own code are also
appreciated (I'd rather find out this isn't possible  try something
else, instead of throwing tons of time into it and find that out on my
own :)  ).

Thanks!
--Mike
--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



Re: jQuery with Cake forms

2009-08-26 Thread Matt Curry

This one's pretty easy actually...Just set the input to be type text
and attach the datepicker to the id of the input (not the div):

?php
echo $form-input('field', array('type' = 'text'));
?


script type=text/javascript
  $(function(){
$('#ModelField').datepicker();
  });
/script

-Matt
http://www.pseudocoder.com


On Aug 26, 10:02 pm, Mike mike.pan...@gmail.com wrote:
 Hello!

 I'm looking to use jQuery with Cake, specifically with a form.  My
 plan was to use a DatePicker  (http://docs.jquery.com/UI/Datepicker)
 control instead of the default datetime drop-down menus, but it looks
 like the easy approach (give the datetime div an id that jQuery's
 DatePicker automagically replaces) doesn't seem to work.
 Specifically, jQuery doesn't replace the Cake form elements (nevermind
 stuff like feeding back into Cake's validation logic).  Also, I don't
 want to use AJAX, just the UI control to make my otherwise normal form
 easier to use.

 I was thinking about hacking together some sort of custom, hidden form
 elements to convey the datetime back to Cake, putting the DatePicker
 on the page, and then having code in the 'onSubmit' to extract the
 relevant info  stuff them into the hidden fields.  I got as far as
 realizing that I'd need more code to auto-populate the control, plus
 the uncertainty that Cake would actually use this info (even if I
 named the form elements identically to the normal datetime stuff), and
 realized how dodge-y this all sounded :)

 So instead of throwing a lot of time into that first up, I wanted to
 instead ask if there's a reasonable approach to this.  I *think* what
 I want to do is replace a standard Cake $form-input field with my
 own, but still have the auto-populate (and auto-validate) logic work.

 Any ideas on ways to approach this would be appreciated.

 Authoritative responses like There's no way to do this without
 rewriting parts of Cake/vast amounts of your own code are also
 appreciated (I'd rather find out this isn't possible  try something
 else, instead of throwing tons of time into it and find that out on my
 own :)  ).

 Thanks!
 --Mike
--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



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
d...@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
-~--~~~~--~~--~--~---



Re: Jquery and Cake

2007-02-27 Thread [EMAIL PROTECTED]:
On 2/26/07, nate [EMAIL PROTECTED] wrote:


 The jQuery interface is already being implemented, however, we don't
 take code from other projects for licensing reasons.


Can you give us more details about the implementation of the JQuery
interface.
[EMAIL PROTECTED]

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



Re: Jquery and Cake

2007-02-27 Thread [EMAIL PROTECTED]

maybe you could checkout the code from svn
if it's not in (1.2) trunk, you'll probably find it in the 1.2 branch,
this branch containst the very latest fixes (might be buggy but that's
not an issue here right ;-)

On Feb 27, 8:36 am, [EMAIL PROTECTED]: [EMAIL PROTECTED] wrote:
 On 2/26/07, nate [EMAIL PROTECTED] wrote:

  The jQuery interface is already being implemented, however, we don't
  take code from other projects for licensing reasons.

 Can you give us more details about the implementation of the JQuery
 interface.
 [EMAIL PROTECTED]


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



Jquery and Cake

2007-02-26 Thread Ámon Tamás

Hello,

There was some discuss about jQuery and cakePHP. I found a class what is 
a jquery helper class for php. Maybe it is usefull.

http://www.ngcoders.com/php/pquery-php-and-jquery/

-- 
Ámon Tamás
http://linkfelho.amon.hu


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



Re: Jquery and Cake

2007-02-26 Thread nate

The jQuery interface is already being implemented, however, we don't
take code from other projects for licensing reasons.

On Feb 26, 7:01 am, Ámon Tamás [EMAIL PROTECTED] wrote:
 Hello,

 There was some discuss about jQuery and cakePHP. I found a class what is
 a jquery helper class for php. Maybe it is usefull.

 http://www.ngcoders.com/php/pquery-php-and-jquery/

 --
 Ámon Tamáshttp://linkfelho.amon.hu


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



Re: Jquery and Cake

2007-02-26 Thread Olivier Percebois-Garve
From their homepage:
License : MIT or GPL ( what ever you wish to use )

This should be compatible with cake's license, isn't it ?


On 2/26/07, nate [EMAIL PROTECTED] wrote:


 The jQuery interface is already being implemented, however, we don't
 take code from other projects for licensing reasons.

 On Feb 26, 7:01 am, Ámon Tamás [EMAIL PROTECTED] wrote:
  Hello,
 
  There was some discuss about jQuery and cakePHP. I found a class what is
  a jquery helper class for php. Maybe it is usefull.
 
  http://www.ngcoders.com/php/pquery-php-and-jquery/
 
  --
  Ámon Tamáshttp://linkfelho.amon.hu


 


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



Re: Jquery and Cake

2007-02-26 Thread nate

On cakephp.org, there's a bullet point that reads as follows:

Clean IP - Every line of code was written by the CakePHP development
team

So no.

On Feb 26, 8:28 am, Olivier Percebois-Garve [EMAIL PROTECTED]
wrote:
 From their homepage:
 License : MIT or GPL ( what ever you wish to use )

 This should be compatible with cake's license, isn't it ?

 On 2/26/07, nate [EMAIL PROTECTED] wrote:



  The jQuery interface is already being implemented, however, we don't
  take code from other projects for licensing reasons.

  On Feb 26, 7:01 am, Ámon Tamás [EMAIL PROTECTED] wrote:
   Hello,

   There was some discuss about jQuery and cakePHP. I found a class what is
   a jquery helper class for php. Maybe it is usefull.

  http://www.ngcoders.com/php/pquery-php-and-jquery/

   --
   Ámon Tamáshttp://linkfelho.amon.hu


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