use this in your javascript after you get your array :-
$.ajax(
{
type: "POST",
url: "path to controller/"+array,
data:' ',
success:function(msg)
{
var response =eval("("+msg+")");
}
});
If yo
Thanks Amit, thats exactly where I'm upto.
I've got an array of the options from the select box. but I dont know
how to send this by ajax.
On Nov 16, 6:45 pm, Amit Rawat wrote:
> You can create an array in javascript. In that array place all the values of
> the select box.
>
> var t= document.g
Make sure you've properly included the Ajax helper, the RequestHandler
component, and the prototype and scriptaculous libraries as the
documentation explains.
You then need to setup your form to submit via Ajax. To do this replace
your $form->create tag with $ajax->form as described:
http://book
$.ajax(
{
type: "POST",
url: "path to controller/"+array,
data:'',
success:function(msg)
{
var response =eval("("+msg+")");
}
});
--
You received this message because you are subscribed to the
Thanks Amit, thats exactly where I'm upto.
I've got an array of the options from the select box. but I dont know
how to send this by ajax.
On Nov 16, 6:45 pm, Amit Rawat wrote:
> You can create an array in javascript. In that array place all the values of
> the select box.
>
> var t= document.g
You can create an array in javascript. In that array place all the values of
the select box.
var t= document.getElementById('your_select_box_id').options;
for(var i=0;ihttp://groups.google.com/group/cake-php?hl=.
Thanks,
By select box I dont mean checkbox, its the drop down list with out
the drop down effect, just the list.
I need all the items in the last select box to be sent.
Is there a simple AJAX function to send all the ?
On Nov 16, 3:00 pm, Scott Dahl wrote:
> You can have all the select boxes
You can have all the select boxes wrapped within a form and have the user
submit the form to your controller of choice or you can do it using Ajax.
On Sun, Nov 15, 2009 at 7:21 PM, Jas wrote:
> Hi,
> I've got a few select boxes in the view where the user can do some
> processing, the end result