Re: 'YImage' is undefined
- View SourceYImage is a class that is defined inside of the Map class.
If you're seeing errors relating to YImage being undefined they are probably being caused by attempting to use the map before all the required support files have been loaded/parsed.
Make sure that the script to include Maps is above all scripts that reference maps... E.g. on an HTML page:
//unsafe to make references to Y Maps up here
//okay to work with Y Maps down here.
The support files should all be cached by the browser, so reloading the page a couple of times may be allowing the browser to download the files on one load, then displaying the maps okay on the next load as everything is already in the local cache.
--- In email@example.com, "ck14085" <ck14085@...> wrote:
> We are getting the following error in Internet Explorer when attempting to use the Yahoo Maps API.
> Message: 'YImage' is undefined
> Line: 88628522
> Char: 28
> Code: 0
> We are calling the map from an IBM Cognos 8 report. The strange thing is that if we refresh the browser a couple of times the map will load. Does anyone have any experience on this end of things?
> If you have any ideas, please let me know. Thank you!