Hi...

What happen?

Any Greate drupal please try to spend a min..thanks


On Mon, Nov 10, 2008 at 6:22 PM, bharani kumar <
[EMAIL PROTECTED]> wrote:

> 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/

Reply via email to