Hello,

I am using jqModal to load an html page that needs to include additional
javascript files to run properly. Everything runs great on FF but IE6 and 7
aren't allowing my includes in the jqModal ajax window (or so it seems).

I include the css for the window in my parent page and that works fine in
both.  Including the javascript files in the parent page for the jqModal
window does not work for either browser.

So I had included the javascript in the head of the ajax loaded html page
like so:

<head>
<script type="text/javascript" src = "/js/filebrowser.js">
</head>

My included javascript files are using jquery and that is included in the
parent page.

I have also tried loading the javascript into the DOM using with no success.

<head>
<script language="javascript" type="text/javascript">
   function include_dom(script_filename) {
    var html_doc = document.getElementsByTagName('head').item(0);
    var js = document.createElement('script');
    js.setAttribute('language', 'javascript');
    js.setAttribute ('type', 'text/javascript');
    js.setAttribute('src', script_filename);
    html_doc.appendChild(js);
    return false;
}
include_dom('/js/utils.js');
include_dom('/js/filebrowser .js');

</script>
</head>

I'm stumped.  Any help would be greatly appreciated. Thanks!

Reply via email to