
April 18th, 2006, 09:47 PM
|
 |
Trapped on the forums...help
|
|
Join Date: Aug 2003
Location: /Users/edman007
|
|
|
I Can't Post With Javascript Enabled
well i did a bit of debugging too, anyways, i can't reply to posts when i have javascript enabled, it just says that i need to enter a title/subject, although that's not the case i add one and it still doesn't work, so i looked at the javascript involved and i think i found out the problem, but i don't know why i seem to be the only one (or am I?)
anyways here is what i see and what i believe to be causing the problem
in the html of the post page
html Code:
Original
- html Code |
|
|
|
<form ..... onsubmit="return validatePost(this, 0, 2, 10000);" .... >
and this is the javascript http://forums.devshed.com/clientscr...etin_stdedit.js
javascript Code:
Original
- javascript Code |
|
|
|
function validatePost(tform, subjectVal, minLength, maxLength) { return validatemessage(tform.message.value, subjectVal, minLength, maxLength, false, tform); }
and then this javascript too http://forums.devshed.com/clientscr...letin_global.js
javascript Code:
Original
- javascript Code |
|
|
|
function validatemessage(messageText, subjectText, minLength, maxLength, ishtml, tForm){ .... // check for completed subject if (subjectText.length < 1) { alert(vbphrase["must_enter_subject"]); return false; } ....
now I'm not much of a javascript person, but whats the length of 0? as i see this code you are passing 0 as the subject and not the actual text of the subject which is causing my browser to say that i didn't put in a subject
BTW, on this page i see [below] and i am not having a problem
html Code:
Original
- html Code |
|
|
|
<form ... onsubmit="return validatePost(this, this.subject.value, 2, 10000);" ... >
and i'm using firefox 1.5.0.1/linux, and this is happening on the edit post page too
|