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');

    alert(value);

    $('.add-beer-link').click( function () {
         $.post('http://localhost/jeffery/cake_1.2.3.8166/beers/view_beer',
{name: "John" , id: value },function()
                {
                    alert("Data submitted: " );
                });
   });

});
===========================================

=> Now when i Refresh my page it alerts the var value which shows the o/p as
some-beer-name

=>Moreover now am now just trying to post the variables- name which is just
a string ,and

id which contains the var value......

=>So Once i click the link it also alerts with data submitted....


=> But i cant see any values that have been submitted

=>In my controller ,i try to print the submitted value as follows

==================================
function view_beer()
        {
                print_r($this->params);
        }
==================================
=> Is This a wrong way or what???

=> i cant figure this part out

=> So can u tell me how to get these posted values to be viewd from the
controller...

=>i have included the full path to the controller also..........while
posting .....


=>There fore i think am just sending some simple value tru javascript

=>But the controller isnt receiving any post request......

=>Throw in new ideas guys cuz i really need this to get working.......




-- 
-- 
(¨`•.•´¨) I may be busy,
`•.¸(¨`•.•´¨)  but I assure you,
(¨`•.•´¨)¸.•´ you are always in my heart
`•.¸.•´


With Lots of Love.....

THANKS AND REGARDS

Jeffery Jacob

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to [email protected]
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to