What's new
HTML Forums | An HTML and CSS Coding Community

Welcome to HTMLForums; home of web development discussion! Please sign in or register your free account to get involved. Once registered you will be able to connect with other members, send and receive private messages, reply to topics and create your very own. Our registration process is hassle-free and takes no time at all!

javascript widget works only on temp domain, not on main domain. directory path issue?

dirkster

New member
Any help greatly appreciated! Javascript widget not executing. Returns white page. It's a standard autogenerated script.

I generated the javascript widget from wind guru that works like a charm on temporary bluehost domain:

http://box5646.temp.domains/~mbponnmy/develop-2.ht...

However, exact same file called from main domain name presents white page only:

https://www.lapanache.com/develop-2.html

Contacted hoster "Bluehost", no help. They refer to directory path issue. No success with google. Tried to manually add directory root, no luck:

<script src="http://widget.windguru.cz/js/wg_widget.php" type="text/javascript"> directory_root = "https://www.lapanache.com/" </script>

Here is the complete script:

<script src="http://widget.windguru.cz/js/wg_widget.php" type="text/javascript"></script>
<script language="JavaScript" type="text/javascript">
//<![CDATA[
WgWidget({
s: 77995, odh:0, doh:24, wj:'knots', tj:'c', waj:'m', fhours:72, lng:'en',
params: ['WINDSPD'],
first_row:true,
spotname:true,
first_row_minfo:true,
last_row:true,
lat_lon:true,
tz:true,
sun:true,
link_archive:false,
link_new_window:false
},
'wg_target_div_77995_42085527'
);
//]]>
</script>
<div id="wg_target_div_77995_42085527"></div>
 
Back
Top