Mon 3rd Oct 2005
Posted early evening, filed under
Blogging.
I’ve spent most of the day tweaking stuff, and have come across the following issues:
- Safari has no ability to find either the cursor position or the selection in a TextArea. This means that Quicktags will not work under Safari. I’m going to file a bug report with Apple over this one, as it’s rather crap.
- Neither Safari nor Mozilla support
onTimer(), which means my plan to have the Comment Preview update every 3 seconds rather than on every keypress will not work. I still need to try to find a way to make the Preview faster on Mozilla. It’s fine on Safari.
I’ve also spent a fair amount of time playing around with trying to get comments to appear on the front page, but I think I need to be able to access the SQL database directly, and run a query in order to do this. And store the result in a variable. But I can’t figure out how (if it’s even possible) to do this.
Mon 3rd Oct 2005
Posted mid-afternoon, filed under
JavaScript.
Note: The seperate Quicktags toolbar is not supported. Please use the full toolbox script, or hack it any way you like. The remainder of this post remains for posterity only.
•
I’ve combined my two quicktags scripts into one, it now has an (optional) argument to the edToolbar(); function.
If you pass it the argument of ‘Link’, then it will render the toolbar as a series of
<a href="javascript:...">
links, rather than the buttons that it defaults to.
You can get it from here. Or use the code
<script type="text/javascript" src="http://schinckel.blogsome.com/images/quicktags.jpg> </script>
<script type="text/javascript">edToolbar(); </script>
in your page, where you want the toolbar to appear, and
<script type="text/javascript"> edCanvas = document.getElementById('comment'); </script>
after the TextBox you are using to have comments in (make sure it’s id is comment, or change the second script.
Mon 3rd Oct 2005
Posted in the wee hours, filed under
Blogging ,
JavaScript.
I’ve noticed that the Preview code that both the WordPress Dash, and my Comment Preview uses (okay, I stole it from there!) is really slow - read as unusable in Instant Preview mode - under Mozilla browsers (on Mac, at least). There is a noticeable lag between typing and the characters appearing on the screen, in the Text Box, let alone in the Preview Box.
I wonder if it would be possible to rewrite the script so that it wasn’t onkeyup, but every 5 seconds, or something like that.
Or possibly make it so it doesn’t redraw the whole lot?
Perhaps the best would be that it only redraws when keys have been pressed, but not in the last 3 seconds.
I’m not sure if any of these can actually be done!
Mon 3rd Oct 2005
Posted in the wee hours, filed under
Blogging.
I’ve come across a couple of issues with Gravatars recently: they don’t always show. And the weird bit is if I play around with the &size=xx part, different gravatars work. And the ones that did display no longer do…






Strange. And it’s not limited to my site, either, I noticed it on the Official Gravatar Forums. I assume that means it might be fixed soon.
Edit: That’s crap. The images in the bottom two pairs used to have one that worked, now they both appear grey!
Edit 2: Now both of the middle ones, and one of the bottom ones are all working!