Include new JS external and internal.

Dani MR Posted in Component Development 1 decade 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 1 decade 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");