I made a simple local html file and loaded the page in Internet
Explorer 6 (SP2) and I click the MochiKit Logging bookmarklet but then
undecodable error occurs.

Here's the source of the local html file:
<html><head><title>Test MochiKit Log</title>
        <script type="text/javascript"
src="MochiKit/lib/MochiKit/MochiKit.js"></script>
        <script type="text/javascript">
                load = function(){
                appendChildNodes(document.body,H1( 'MochiKit launch detected'));
                }
        </script>
  </head>
  <body onload="load()">
  </body>
</html>

In fact, IE blocks javascript of the local file and shows this message.
"To help protect your security, Internet Explorer has restricted this
file from showing active content that could access your computer. Click
here for options. X"
So I clicked:
"Allow Blocked Content"
(do I have to do this everytime?)
and confirmed:
"Yes"
and then IE loaded the script and displayed the message: "MochiKit
launch detected"
But when I clicked the MochiKit Logging bookmarklet from the 'Links'
bar, IE got an error. It's this bookmarklet:
javascript:MochiKit.Logging.logger.debuggingBookmarklet()

Here's the error message.
Line: 77
Char: 9
Error: Invalid argument
Code: 0
URL: file://C:\Documents and Settings\me\My Documents\js\simple.html

When I do the same thing in Firefox, no error.
When I load the MochiKit Online Interpreter page in Internet Explorer
and click the logging bookmarklet, no error.
I have a feeling that this has to do with IE distrusting local files.
I wonder what I should do.


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"MochiKit" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/mochikit
-~----------~----~----~----~------~----~------~--~---

Reply via email to