MetaChat REGISTER   ||   LOGIN   ||   IMAGES ARE OFF   ||   RECENT COMMENTS




artphoto by splunge
artphoto by TheophileEscargot
artphoto by Kronos_to_Earth
artphoto by ethylene

Home

About

Search

Archives

Mecha Wiki

Metachat Eye

Emcee

IRC Channels

IRC FAQ


 RSS


Comment Feed:

RSS

01 July 2005

Bugs Bunny #2 This is more of a cry for help - an appeal to all the Javascript experts out there. Once again Javascript in IE has me stumped. When a comment is posted the text from the comment box is copied to a hidden form and then submitted from there (this allows the posting form to have two separate actions). For some reason in IE it chokes when you try submit a comment with more than 1500 characters. Try it in this thread and you'll see what I mean. Any Javascript wizards out there encountered this before? Anything I should try?
I'm resisting the temptation to post a 1500-word essay on chickens.

And also, I felt bad for you, dodgygeezer, since no one had responded yet.

Sorry if I got your hopes up.
posted by mudpuppie 02 July | 00:40
It looks as if your hidden form isn't specifying method="POST",

document.write('<form name="hiddenForm" action="http://metachat.org/htsrv/comment_post.php">');


so it's may be doing a GET in IE (though it's a POST in Firefox), which encodes the input data in the url. IE I think imposes a limit on the length of a url.

Try to ensure that you're doing a POST.

But it's hard to tell exactly what's going on with all the "document.write" and commented-out code, so I surmise you've been trying various alternatives, and may already have a solution.

If you haven't yet gotten it fixed, perhaps you could make accessible the simplest form that produces the problem, so that the interaction of "document.write" and javascript blockers and commented out code, etc., could be factored out.

posted by orthogonality 02 July | 05:11
orthogonality - that's a very good point, I'll do some testing and see if it works.
posted by dodgygeezer 02 July | 05:21
Woo-hoo! It works!

Ortho you're a genius, thanks for your help.
posted by dodgygeezer 02 July | 05:41
ok, right totally not a bug...but I might as well ask here - what timezone is this website in? Sure as hell ain't mine. Taz just thanked me for a bunny and it reads: 07/02/05 | 16:32. Dude, it's 23:12 (she posted that at 22:32).
posted by dabitch 02 July | 17:12
it's set to the same time as the server it's hosted on
posted by dodgygeezer 02 July | 18:42
Ah. Ok, why do ya have a server in Pittsburgh?
posted by dabitch 02 July | 19:09
Because I love a favourable exchange rate
posted by dodgygeezer 02 July | 19:20
clever you. :)

Anyway.. Not possible to let users pick their own timezones in this.. uh... stuff? 'cause it's kinda practical in a way.
posted by dabitch 02 July | 19:59
nah, i'd have to write something and - to be frank - i just can't be arsed. i could be convinced otherwise i suppose....
posted by dodgygeezer 02 July | 20:09
In Hell !! || Bugs Bunny #1

HOME  ||   REGISTER  ||   LOGIN