Not working...Please help - Resolved
Not working...Please help - Resolved
I am using PHP. I'm thinking it could be in my javascript file.
So in my employee.module this is what I have:
$form['#attached']['css'] = array(drupal_get_path('module','employee').'/css/demo_table.css',);
$form['#attached']['css'] = array(drupal_get_path('module','employee')
.'/css/jquery.dataTables.css',);
$form['#attached']['js'] = array(drupal_get_path('module','employee').'/js/jquery.js',);
$form['#attached']['js'] = array(drupal_get_path('module','employee').'/http://ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js',);
$form['#attached']['js'] = array(drupal_get_path('module','employee').'/js/jquery.dataTables.js',);
$form['#attached']['js'] = array(drupal_get_path('module','employee').'/employee.js',);
in my employee.js this is what I have:
(function($) {
$(document).ready(function($) {
$("#example").dataTable();
//$("#example").hover(function(){alert('hey!!');});
});
})(jQuery);
So in my employee.module this is what I have:
$form['#attached']['css'] = array(drupal_get_path('module','employee').'/css/demo_table.css',);
$form['#attached']['css'] = array(drupal_get_path('module','employee')
.'/css/jquery.dataTables.css',);
$form['#attached']['js'] = array(drupal_get_path('module','employee').'/js/jquery.js',);
$form['#attached']['js'] = array(drupal_get_path('module','employee').'/http://ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js',);
$form['#attached']['js'] = array(drupal_get_path('module','employee').'/js/jquery.dataTables.js',);
$form['#attached']['js'] = array(drupal_get_path('module','employee').'/employee.js',);
in my employee.js this is what I have:
(function($) {
$(document).ready(function($) {
$("#example").dataTable();
//$("#example").hover(function(){alert('hey!!');});
});
})(jQuery);
This discussion has been closed.