Focal Point
External Javascript not recognized first time in

This topic can be found at:
https://forums.informationbuilders.com/eve/forums/a/tpc/f/7971057331/m/8771008202

December 22, 2006, 02:18 PM
InsideTGT
External Javascript not recognized first time in
I've got an external javascript reference that I added, to a .js file that includes a function called onload. The reference is placed in the same section as the ibi .js references. The first time the page is opened, I get a javascript error basically not recognizing the onload function call. If I immediately click the "x" to close the page, and then relaunch the page, the onload function executes properly and everything proceeds normally from there. If I cut and paste the functions to be instream in the html (removing the external ref, pasting in the location in the html), the functions do work right from the beginning. Since I prefer to use external refs when possible (I'd like to share this one with the rest of our team), I was wondering if anyone has a suggestion about what could be wrong?
December 27, 2006, 10:17 AM
Kerry
Hi InsideTGT,

Would you mind to let us know a little more on how you reference the external JavaScript file?

Cheers, Smiler

Kerry


Kerry Zhan
Focal Point Moderator
Information Builders, Inc.