October 7, 2004 18:31 | WebTech

Comment Preview Javascript

Aim Steve Jsrift

To see what we're talking about, try typing a comment on this entry...

[Merci Karl!]


Cautious comment... :\

Oh wikkid...

Just noticed what it does...


Ummm... btw, can I have this script? ;)

You guys. Gawd. Shouldn't you be working? *rolls eyes*.....omg.....what's happening....woah, this is weirdly seductive.

Wheeee! Look at me!!!!

so what are you talking about.. oh I see, very nice gentlemen.

Hmm oh neat.


this is a blockquote
italics. ooh! Here it is in a span.

This is truly cool.

Please forgive me for trying your doohickey.

let's see ... what ... arf OK


ooh ... aah ... sweet !

aw man it stripped out the font tags ... that would have been fun ...

hmmm. nice. Although if I try to tab between the URL field and the text entry field it takes me to the top of the page. (Safari 1.2).

It was working fine until I spilled pure ammonia all over my workstation.

AJ.. it's because Apple did a very bad marketing studies. The tab doesn't fully work.

Test, this is a test and it is pretty nice "hello". I would even say that this is wicked... in more than one way.

Testing, because I'm curious. Pretty neat! :-)

13- Boris Anthony

Hrmmm... my most popular post in weeks! hah!

Now I need to go turn off HTML in comments... ;)

AJ! Karl!

The tabbing issue was my fault! The textarea was marked as "tabindex=1", and name, email, URL as 2, 3,4 respectively which means web browsers (not just Safari), after URL (#4) would head back to the über input, the location bar (because there's no inputs after 4 on these pages).

View sources and check the "tabindex" attributes on the comment form.

They are fixed now. Yay.

Thanks AJ!

Boris: good little padawan ;)

lovely. Now, I have no idea how you did it, but I'm going to have to steal this code... :)

Do you think its wise to allow all tags?

for example or how about a div with its own position set?

I havent tried a [script] tag, but if thats enabled, you could leave your site wide open to other more hamful attacks :-(

(of course, I havent submitted the comment yet, so all these things *might* be sorted ;-)

hehe, good work :-)

(check out this screenshot of the live preview though: http://richardathome.no-ip.com/img/bopuc_preview.jpg )