External HTML Import Issue w/ Javascript

I've created some exercises that aren't possible to create within Lectora, and have them imported as external HTML files.


In Firefox, they work just fine. In IE8 (the target browser) they do not.


I've narrowed the issue down to this (and similar) lines, which execute and don't throw errors, but don't actually work.

Code:

function initiate() {

getElement("a1").setAttribute("onmousedown","javascript:choseTile(this);"); //error here

//getElement() is a custom function which is browser indifferent

getElement("a1").style.cursor = 'pointer'; //this line still executes

}

function choseTile(e) {

alert("here"); //this never executes

}


The alert never fires when I click on the a1 div. If I run the external page by itself in IE8, everything works perfectly. I've renamed functions, I've used different methods of attaching event listeners, I've tried different events (click, onclick, onmouseup) and cannot get anything that works when it's exported from Lectora.

Discussions have been disabled for this post