Hi,
I'm migrating some old code to jquery:
xmlHttp.onreadystatechange = function() {
if (xmlHttp.readyState == 4) {
$("#" + ajaxArea).html (xmlHttp.responseText);
$("#" + ajaxArea).attr('title', 'Login');
$("#" + ajaxArea).dialog({
height : 140,
modal : true
});
}
};
where ajaxArea is the ID of a DIV in the HTML.
The dialog bit is basically adapted from the jQuery example here: http://jqueryui.com/demos/dialog/#modal
All of it works fine up until the last line. Firefox throws an error that simply says "$(" for that line. Anyone know what might be causing this?