Re: Retreiving values from Jquery to a controller in cakephp

2009-07-15 Thread rchavik
On Jul 16, 1:50 pm, rchavik wrote: > huh? i think the data is already in the controller.. it's should be in > $this->data array. > > Do a debug in your BeersController->view_beer method. let me rephrase: Do a debug($this->data) in your BeersController->view_beer method, eg: class BeersContro

Re: Retreiving values from Jquery to a controller in cakephp

2009-07-15 Thread rchavik
On Jul 16, 1:50 pm, rchavik wrote: > huh? i think the data is already in the controller.. it's should be in > $this->data array. > > Do a debug in your BeersController->view_beer method. let me rephrase: Do a debug($this->data) in your BeersController->view_beer method, eg: class BeersContro

Re: Retreiving values from Jquery to a controller in cakephp

2009-07-15 Thread rchavik
huh? i think the data is already in the controller.. it's should be in $this->data array. Do a debug in your BeersController->view_beer method. Get firebug, and inspect the response from the webserver. On Jul 16, 11:53 am, jeremy wrote: > hai can anyone tell me how can i get the posted values

Re: Retreiving values from Jquery to a controller in cakephp

2009-07-15 Thread jeremy
hai can anyone tell me how can i get the posted values from jquery to a controller so far this problem has not been solved.. my jquery alerts correctly as shown in the above disucssion now its the only problem of how to get this values to a controoler in cakephp any refrence or examples o

Re: Retreiving values from Jquery to a controller in cakephp

2009-07-14 Thread jeff
=>i mean is there any way to get the value from jquery to a controller function => and if so how .. => or could u give me any tutorials regarding this issue => it could be veryhelpful =>thankz again On Tue, Jul 14, 2009 at 2:02 PM, jeff wrot

Re: Retreiving values from Jquery to a controller in cakephp

2009-07-14 Thread jeff
Thanx for the reply Dr. Loboto but could u tell me how to do that i mean requesting view_beer action by jQuery code i may sound stupid ...but the truth is i dont know how to do it --~--~-~--~~~---~--~~ You received this message because you are subscribed t

Re: Retreiving values from Jquery to a controller in cakephp

2009-07-14 Thread Dr. Loboto
If you request your view_beer action by browser address bar, you'll see empty data as it is not AJAX and no parameters passed. When you request your view_beer action by that jQuery code you see filled data as it is AJAX and you passed data. On Jul 14, 1:28 pm, jeff wrote: > sorry > Dr. Loboto > w

Re: Retreiving values from Jquery to a controller in cakephp

2009-07-13 Thread jeff
sorry Dr. Loboto what i mean to say is that when i alert the data through javascript it gives me the foll Data submitted: Array ( [pass] => Array ( ) [named] => Array ( ) [controller] => beers [

Re: Retreiving values from Jquery to a controller in cakephp

2009-07-13 Thread Dr. Loboto
You finally see your controller output and data you submitted is there. Your initial post was exactly about achieving this result. On Jul 14, 11:48 am, jeremy wrote: > hai guys am waiting didnt get any response so far... > > please help me as i need to get this working..

Re: Retreiving values from Jquery to a controller in cakephp

2009-07-13 Thread jeremy
hai guys am waiting didnt get any response so far... please help me as i need to get this working.. my javascript file is as shown below $(document).ready(function() { > > var value = $('.add-beer-link').attr('id'); > > alert(va

Re: Retreiving values from Jquery to a controller in cakephp

2009-07-10 Thread jeff
Thanz again Dr. Lobotoso now i understood what u was referring to and now i changed my javascript files as follows === $(document).ready(function() { var value = $('.add-beer-link').attr('id'); alert(value); $('#some-beer-name').click( funct

Re: Retreiving values from Jquery to a controller in cakephp

2009-07-10 Thread Dr. Loboto
$('.add-beer-link').click( function () { $.post('http://localhost/jeffery/cake_1.2.3.8166/beers/ view_beer', {name: "John" , id: value },function(RESPONSE, textStatus) { alert(RESPONSE); }); }); --~--~-~--~~~--

Re: Retreiving values from Jquery to a controller in cakephp

2009-07-09 Thread jeff
Thanks for replying Dr. Lobotobut i just cant understand what response u r talking about... moreover exactly i dont know how to do it??? so if u can help me with a code sample or example i could figure it out... i read the link ,but cant follow what u r refering to please forgive me for

Re: Retreiving values from Jquery to a controller in cakephp

2009-07-09 Thread Dr. Loboto
And again. You just NOT output your response anywhere. Read jQuery manual first: http://docs.jquery.com/Ajax/jQuery.post --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send ema

Re: Retreiving values from Jquery to a controller in cakephp

2009-07-09 Thread Amit Badkas
Hello, You can try to debug AJAX requests using firebug firefox extension Amit http://amitrb.wordpress.com/ http://coppermine-gallery.net/ http://cheesecake-photoblog.org/ http://www.sanisoft.com/blog/author/amitbadkas On Thu, Jul 9, 2009 at 11:13 AM, jeff wrote: > Thanks for replying guys..

Re: Retreiving values from Jquery to a controller in cakephp

2009-07-08 Thread jeff
Thanks for replying guys.. I never use IE7, Am currently using Firefox 3.5 so this is what i did then, i changed my javascript a little beers_view_beer.js === $(document).ready(function() { var value = $('.add-beer-link').attr('id'); al

Re: Retreiving values from Jquery to a controller in cakephp

2009-07-08 Thread Robert P
Are you doing your testing in IE7? There are reports that IE sucks: https://trac.cakephp.org/ticket/1935 http://www.google.com/search?q=internet+explorer+sucks Or maybe following in the footsteps of a tried-and-true approach: http://marcgrabanski.com/article/cakephp-ajax-quick-save-jq

Re: Retreiving values from Jquery to a controller in cakephp

2009-07-08 Thread Dr. Loboto
I do not see your AJAX response display. Read this too: http://docs.jquery.com/Ajax/jQuery.post --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to cake-php@googlegrou

Re: Retreiving values from Jquery to a controller in cakephp

2009-07-07 Thread jeff
thanx for the reply marcelo so i think i need to reconsider a better understanding of cakephp therefore i now turned into a much simple program in cakephp using all its feature but still am not able to get the value from jquery to a controller in cakephp heres what i did i create

Re: Retreiving values from Jquery to a controller in cakephp

2009-07-07 Thread Marcelo Andrade
On Tue, Jul 7, 2009 at 4:46 AM, jeremy wrote: > > my controller file is simple and is given below... > > users_controller.php > == > > class UsersController extends AppController > { >        var $name = "Users"; >        var $uses = null;           //if no DB connection is re

Re: Retreiving values from Jquery to a controller in cakephp

2009-07-07 Thread Robert P
Start working from a simple base. Add FormHelper to your application then try the following: create('User'); echo $form->input('username'); echo $form->input('password'); echo $form->end('Login'); ?> You will need to rework your jQuery so the IDs match the generat

Re: Retreiving values from Jquery to a controller in cakephp

2009-07-07 Thread jeff
thanks for the reply i changed the namefield value to data[User][username] and data[User][password] but there isnt any result should i completely rewrite the login view page using the helpers... if so can u tell me how to include the values for id, name for each field ie for the (form,

Re: Retreiving values from Jquery to a controller in cakephp

2009-07-07 Thread Robert P
First, the obvious: build your forms using FormHelper. FormHelper will help with form integration with CakePHP. The main problem with your form is the naming of the fields. When using Cake "username" just doesn't cut it, because the framework is expecting a specific data structure. Try renaming y

Retreiving values from Jquery to a controller in cakephp

2009-07-07 Thread jeremy
hai guys am new to this cakephp stuff and is having problem using cakephp with jquery... my problem is that am not able to get the values posted from jquery to a controller in php... my controller file is simple and is given below... users_controller.php == params['form'])