External Javascript

Random stuff about serendipity. Discussion, Questions, Paraphernalia.
Post Reply
diroddi
Regular
Posts: 21
Joined: Sun Jun 10, 2007 11:59 pm

External Javascript

Post by diroddi »

The following entry displays in 'Preview' although does not when the entry is saved and viewed from the blog:

Code: Select all

<div id='fxstreet' style='width:100%'><link rel='stylesheet' type='text/css'  href='http://xml.fxstreet.com/EconomicCalendar/css/default-large.css' /><script type='text/javascript' src='http://xml.fxstreet.com/EconomicCalendar/content.aspx?id=FXstreetCalendar&caption=Economic Calendar&style=default-large&width=100%25&height=2000&countries=AU,CA,JP,EMU,DE,NZ,SW,UK,US&hides=&view=week'></script><div id='FXstreetCalendarbl' style='display:none'>Powered by <a href='http://www.fxstreet.com'>FXstreet.com The Forex Market</a></div></div>
Am I missing something?
diroddi
Regular
Posts: 21
Joined: Sun Jun 10, 2007 11:59 pm

Post by diroddi »

Nevermind - It has something to do with the nifty_round.js I am including in my footer. When I remove this include things work as expected.

When I figure it out I'll post.

UPDATE:
You must use NiftyLoad=function() instead of window.onload=function() in the nifty_round.js file.

Thanks
Post Reply