Can anyone help me

Events happening in the community are now at Drupal community events on www.drupal.org.
gnanasekar's picture

Hi,

    I want to know how to integrated javascript in drupal. Please explain me anyone.

Thanks & Regards.
Gnanasekar Boju

Comments

JavaScript in Drupal

frank ralf's picture

Please have a look at the handbook pages:

JavaScript in Drupal
http://drupal.org/node/12199

Frank

easy way is that

khanshakeeb@groups.drupal.org's picture

if you want to add js in drupal moduel like

$js="alert(1)";
drupal_add_js();
simple way but drupal usually support jquery as well so it would be

$js="
$(document).ready(function(){
alert(2);
})
";
any confusion plz ask me further

msk

Pakistan

Group organizers

Group notifications

This group offers an RSS feed. Or subscribe to these personalized, sitewide feeds: