Hi, How can i include a js file inside? is it like $GLOBALS['js_include'] []= 'name_of_the_js_file';?
Thanks, -- Kishanthan.T
Kishanthan Thangarajah a écrit :
Hi, How can i include a js file inside? is it like $GLOBALS['js_include'] []= 'name_of_the_js_file';?
Thanks,
Kishanthan.T
Yes but you have an extra space. Look in main.php, you have an example at the beginning.
The js file will be appropriately included in the HEAD section of the page.
Yes, but the js function is not called. This is what i did, I have a js file with the name testing.js with a test function I included it by using $GLOBALS['js_include'][]= 'testing.js'; at the top of tbl_properties.inc.php i called the test function by a text field onFocus mechanism, but the function doesn't get called? What's my mistake here?
Thanks,
Kishanthan Thangarajah a écrit :
Yes, but the js function is not called. This is what i did, I have a js file with the name testing.js with a test function I included it by using $GLOBALS['js_include'][]= 'testing.js'; at the top of tbl_properties.inc.php i called the test function by a text field onFocus mechanism, but the function doesn't get called? What's my mistake here?
Thanks,
Please use jQuery's .focus() method instead of the onFocus mechanism. Also, to help you better, please show us your patch, preferably in the Patches tracker.