> <script>
> <!--
> drawTREmbed( '<div id="technorati">' +
> '<img src=
> \"http://static.technorati.com/progimages/photo.jpg?uid=363456\" alt=
> \"edgej\'s Photo\" id=\"te_p\" style=\"float:left;padding:0 5px 3px
> 0;width:40px;height:40px\" />' +
Long shot, but you're escaping the "'s in the above (starting at '<img
src=\"htt...) which is not necessary as your string delimiter is
apostrophe ('). Don't know if IE whines about that but it might.
-Kalle.
<html>
<div id="technorati">
<img src="http://static.technorati.com/progimages/photo.jpg?uid=363456"
alt="edgej's Photo"
id="te_p"
style="float:left;padding:0 5px 3px 0;width:40px;height:40px" />
<p id="te_l" class="te_l">
</p>
<p id="te_lo" class="te_lo">
<a href="http://www.technorati.com/?cc=y7n4ruq9mj">
<img src="http://static.technorati.com/pix/tn-tiny.gif"
border="0"
alt="Powered by Technorati" />
</a>
</p>
</div>
</html>
HTH,
-e
Eric Shulman
TiddlyTools / ELS Design Studios
The first script is simply writing static HTML into the document. You
can skip the code entirely and just embed the HTML directly...
I'm not sure about that second script. Here's what I've found, though.
First, it seems you found an IE bug in TiddlyWiki 2.1.2. There is a fix
that will work. But since you're using the tiddlyspot -- you're going
to have to make the changes on disk and then upload.
Using a good text editor (not Notepad), open up your *.html TiddlyWiki
file. Search for the following function:
function refreshElements(root,changeList)
below that is the code:
if(e.getAttribute)
type = e.getAttribute("refresh");
else
type = null;
You need to change it to:
if(e.getAttribute && e.tagName != "IFRAME")
type = e.getAttribute("refresh");
else
type = null;
The reason is that IE throws a permission denied error. I'm guessing
that the real fix that gets put in might be a bit different (it may
catch the error instead). But this fix does work.
-----
You also found an IE error in the ReminderMacro plugin. Once you fix
the above error, you can fix this one while using the TiddlyWiki -- in
Firefox or IE. Just edit the ReminderMacro plugin and you'll find
towards the top of the Code section, lines like:
// This line is to preserve 1.2 compatibility
if (!story) var story=window;
This is the line causing an error in another plugin (HaloscanMacro).
Since TiddlyWiki 2.1.2 defines story itself, this line isn't needed for
any 2.1.x version. Change it to:
// This line is to preserve 1.2 compatibility
// if (!story) var story=window;
and that will fix your other problem.
-----
These 2 changes are all I could find. If you know of another other
types of IE errors, please let me know what I need to click on to
produce them. Thanks!
<!--
and
// -->
That's right -- it's the comments that's screwing it up in IE.
-----
Also, my previous post -- I was viewing http://elj.tiddlyspot.com/ and
noticed those errors in IE. The errors occur when the page is first
loaded and also on a page reload.
You need to change it to:
if(e.getAttribute && e.tagName != "IFRAME")
type = e.getAttribute("refresh");
Well, I really think that a try/catch solution would be better. Have I
mentioned how much I love Google Groups Beta? Anyway, check this quick
try/catch test out. If you don't have IE, you can use Firefox. I
haven't tested Safari or Opera yet. Just point your browser to:
http://groups-beta.google.com/group/TiddlyWiki/files?
and then click on the JustinCase_tryCatchTest.html file (or right click
and Save Link As...). Anyway, you can test it locally or right from
Google Groups Beta.
The solution I was testing for in that file would be:
try
{
type = e.getAttribute("refresh");
}
catch(ex)
{
type = null;
}
I've added a ticket for this issue:
http://trac.tiddlywiki.org/tiddlywiki/ticket/204
Cheers
Jeremy
--
Jeremy Ruston
mailto:jer...@osmosoft.com
http://www.tiddlywiki.com