Thanks it is working now. But where do we find all the tags like 'with' in input_date_tag in symfony ?
Thanks again, Deepak On Fri, Aug 7, 2009 at 12:07 PM, Frank Stelzer<d...@bleedingmoon.de> wrote: > > it isn't that difficult: > > > 'with' => "'selectdate='+ this.value" > > > Am 07.08.2009 um 08:31 schrieb DEEPAK BHATIA: > >> >> Hi, >> >> Thanks for your mail. >> >> I am not able to get some_javascript_value. >> >> Please help me in this regard. >> >> Thanks >> >> Deepak >> >> On Fri, Aug 7, 2009 at 11:46 AM, Frank Stelzer<d...@bleedingmoon.de> >> wrote: >>> >>> You need the "with" parameter. >>> >>> http://www.symfony-project.org/book/1_2/11-Ajax-Integration#Basic%20JavaScript%20Helpers >>> >>> remote_function(array( >>> 'update' => 'common_area', >>> 'url' => 'home/showbooking, >>> 'script' => true, >>> 'with' => "'selectdate='+ some_javascript_value" >>> ); >>> >>> You have to replace "some_javascript_value" with some valid >>> javascript >>> statement to retrieve the actual selected value of your selectdate >>> field. >>> >>> The parameter selectdate could be fetched in your showbooking action >>> as normal request paremeter. >>> >>> Frank >>> >>> >>> >>> Am 07.08.2009 um 08:07 schrieb DEEPAK BHATIA: >>> >>>> >>>> Hi, >>>> >>>> I am using the input_date_tag function >>>> >>>> <?php echo input_date_tag('selectdate', $currentdate, array('rich' >>>> => >>>> true, 'onchange'=> remote_function(array('update' => >>>> 'common_area','url' => 'home/showbooking','script' => true,)))); ?> >>>> >>>> I want to update the "common_area" with the url 'home/showbooking'. >>>> >>>> I am getting to the function home/showbooking but how can I pass >>>> selectdate parameter to the called function. >>>> >>>> Thanks >>>> >>>> Deepak Bhatia >>>> >>>>> >>> >>> >>>> >>> >> >> > > > > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~----------~----~----~----~------~----~------~--~---