Hello, everyone.

I am attempting to dynamically load Microsoft's "IE 10 Compat Inspector" - 
based upon login (users shouldn't see it; developers should).  We are using 
MooTools Core 1.4.5 and More 1.4.

The document I am working on and compat inspector are one directory past 
webroot, the index.cfm (which will be the document to display Compat 
Inspector) is in webroot.

Here's my code:
<!---  IF login is developer --->
  <script type="text/javascript">
    try{
      var pHead = parent.document.head;
      var newScript = new Element('script',{
        type: 'text/javascript',
        src: 'ie10inspector.js'
        });
      newScript.inject(pHead,'top');
      }
    catch(e){
      alert("didn't work"); // to be removed before production
      }
  </script>
<!--- END IF --->

It works in FF21, FF23, and Chrome.  It is not working in IE7, 8, or 10.  
Any suggestions?

Thank you,

JD

-- 

--- 
You received this message because you are subscribed to the Google Groups 
"MooTools Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to mootools-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to