Include new JS external and internal.

Dani MR Posted in Component Development 9 years ago

Hello,

I try including Google Maps API and JS inside of directory complement. But don't showing in the <head>. My code inside my ossn_com.php is:

ossn_load_js('google', 'http://maps.google.com/maps/api/js?sensor=false');
ossn_new_js('myJs', 'js/myJs');

Is it correct?

Thanks

Replies
Spanish Dani MR Replied 9 years ago

Solved

ossn_new_external_js('google', 'http://maps.google.com/maps/api/js?sensor=false',false);
 ossn_new_js('myJs', 'js/myJs');    

 ossn_load_external_js('google');
 ossn_load_js('myJS');