I'm programming a JS tile map editor for my friend's game. The map
editor has different "sections" that contain different tiles. The way
that it works is when you select a section it calls a JS function that
changes the src of a script tag that contains the array of tiles for
that section, then reloads the tile selection table. This works great
in IE, but Mozilla/Firefox doesn't update the array when I switch JS
files. I've tried putting a function in the JS file that would be
called when the file is switched, but this doesn't work either, so I
think that Moz/FF caches arrays when the page loads. Any ideas?
editor has different "sections" that contain different tiles. The way
that it works is when you select a section it calls a JS function that
changes the src of a script tag that contains the array of tiles for
that section, then reloads the tile selection table. This works great
in IE, but Mozilla/Firefox doesn't update the array when I switch JS
files. I've tried putting a function in the JS file that would be
called when the file is switched, but this doesn't work either, so I
think that Moz/FF caches arrays when the page loads. Any ideas?
Comment