> > <script type="text/javascript" src="jquery-1.2.6.js"></
script> thats jquery - you'll need that for jquery to work. also you'll need to be accessing the form plugin see my previous message :) 2008/11/10 bharani kumar <[EMAIL PROTECTED]> > <script type="text/javascript" src="jquery-1.2.6.js"></script> what is use > of this script, > > I removed this script, > > Output same, no changes, > > Thanks > > > 2008/11/10 bharani kumar <[EMAIL PROTECTED]> > >> Hi u see , in that page is loading / redirecting know, >> But my thing is without page reloading to submit the form, >> >> >> Got my point , one more thing , am having some jquery script , which >> working fine (without page refresh to form submiting) >> >> But i need the help in, i want to use the jquery in Drupal, >> >> >> On Mon, Nov 10, 2008 at 7:18 PM, Sam Sherlock <[EMAIL PROTECTED]>wrote: >> >>> whats the html - I saw the link and that form did not appear to have the >>> event applied to the form >>> >>> perhaps this could be solved by checking that the id of the form is >>> myForm. I know nothing of drupal >>> >>> I can check back to the link since its logged my ip and now tells me I >>> have already voted visit the site etc >>> >>> 2008/11/10 bharani kumar <[EMAIL PROTECTED]> >>> >>> But , i want to implement in Drupal , >>>> >>>> Am not sure the below code correct, >>>> >>>> In this i want to add the JQuery, >>>> >>>> <?php >>>> >>>> function custom3_block($op='list',$delta=0){ >>>> >>>> switch($op){ >>>> >>>> case 'list': >>>> $blocks[0]['info'] = t('Custom 3'); >>>> return $blocks; >>>> >>>> case 'view': >>>> >>>> $output[] =t("Bharanikumar"); >>>> $output[].=drupal_get_form('myForm'); >>>> $output[] .=' <script type="text/javascript"> >>>> // wait for the DOM to be loaded >>>> $(document).ready(function() { alert("Tets") >>>> $("#myForm").ajaxForm(function() { >>>> alert("Thank you for your comment!"); >>>> }); >>>> }); >>>> </script>'; >>>> >>>> >>>> $block['content']=theme('hotelsearch_item_list',$output); >>>> >>>> >>>> return $block; >>>> >>>> >>>> } >>>> >>>> } >>>> >>>> >>>> >>>> >>>> function myForm(){ >>>> >>>> $modpath = drupal_get_path('module','custom3'); >>>> drupal_add_js($modpath . '/jquery-1.2.6.js','module'); >>>> //$form['#action']=url('comment.php'); >>>> >>>> $form['name']=array( >>>> '#type' => 'textfield', >>>> '#title' => t('name') >>>> ); >>>> $form['comment'] = array( >>>> '#type' => 'textarea', >>>> '#title' => t('comment'), >>>> '#required' => TRUE >>>> ); >>>> $form['submit'] = array( >>>> '#input' => TRUE, >>>> '#name' => 'op', >>>> '#type' => 'submit', >>>> '#submit' => TRUE, >>>> '#value' =>t('submit') >>>> ); >>>> return $form; >>>> >>>> } >>>> >>>> >>>> >>>> >>>> >>>> >>>> >>>> On Mon, Nov 10, 2008 at 6:19 PM, Sam Sherlock <[EMAIL PROTECTED]>wrote: >>>> >>>>> this should be your solution >>>>> >>>>> http://www.malsup.com/jquery/form/ >>>>> >>>>> 2008/11/10 [EMAIL PROTECTED] < >>>>> [EMAIL PROTECTED]> >>>>> >>>>> >>>>>> Hi Friends >>>>>> >>>>>> I just want to submit the form without page refresh i want to do this >>>>>> using j query, >>>>>> >>>>>> >>>>>> Am actually working in DRUPAL ,Tell me how to implement this in >>>>>> drupal, >>>>>> >>>>> >>>>> >>>> >>>> >>>> -- >>>> உங்கள் நண்பன் >>>> பரணி குமார் >>>> >>>> Regards >>>> B.S.Bharanikumar >>>> >>>> POST YOUR OPINION >>>> http://bharanikumariyer.hyperphp.com/ >>>> >>> >>> >> >> >> -- >> உங்கள் நண்பன் >> பரணி குமார் >> >> Regards >> B.S.Bharanikumar >> >> POST YOUR OPINION >> http://bharanikumariyer.hyperphp.com/ >> > > > > -- > உங்கள் நண்பன் > பரணி குமார் > > Regards > B.S.Bharanikumar > > POST YOUR OPINION > http://bharanikumariyer.hyperphp.com/ >