Hi everybody, I have a problem.
I have an form that contains:

<?php
$form
['submit']['#ajax'] = array(
   
"callback" => "site_basic_form_callback",
   
"wrapper" => "ajaxBasicInfo",
   
"effect" => "fade",
   
'progress' => array('type' => 'throbber', 'message' => 'Sending information'),
  );
?>

The callback:

<?php
function site_basic_form_callback($form, &$fstate){
return
$form;
}
?>

And, when I call that form via ajax (hook_menu):

<?php
$items
['site/get_form'] = array(
   
'page callback' => 'site_get_form',
   
'access callback' => TRUE,
   
'type' => MENU_NORMAL_ITEM,
  );
?>

<?php
function site_get_form() {
 
$form = drupal_render(ajax_pre_render_element(drupal_get_form('site_basic_form', null)));
  echo
$form;
}
?>

The form resulted, don't make the ajax callback: "site_basic_form_callback", when I click on submit button only reload entery page.

nobody click here