Author |
Topic |
|
BJH
Starting Member
16 Posts |
Posted - 14 January 2003 : 14:39:24
|
i believe i have discovered a bug in inc_post_buttons.asp. the html form generated by post.asp has two form elements named "font". this is a problem because every form element is supposed to have a unique name. apparently the Format Mode input is incorrectly named "font". inc_post_buttons.asp is included in post.asp, and is where the problems lies. this does not normally cause problems, because the two elements named "font" are used only to trigger javascript functions. they are ignored when the form is processed on the server. however, this does cause a problem in a mod i'm working on, so i had to fix it. my fix was to rename the Format Mode input from "font" to "formatmode".
in other words, on line 44, replace this line
<select name=""font"" tabindex=""-1"" onChange=""thelp(this.options[this.selectedIndex].value)"">" & vbNewLine & _
with this one
<select name=""formatmode"" tabindex=""-1"" onChange=""thelp(this.options[this.selectedIndex].value)"">" & vbNewLine & _
my mod will include a fixed version of inc_post_buttons.asp until the fix is officially incorporated into the source code.
Ben |
Edited by - Davio on 07 March 2003 21:15:51 |
|
RichardKinser
Snitz Forums Admin
USA
16655 Posts |
Posted - 14 January 2003 : 14:42:57
|
javascript is CASE-SENSITIVE. One of the forms has font, the other has Font, so there should be no problems distinguishing between the two with Javascript. |
|
|
BJH
Starting Member
16 Posts |
Posted - 14 January 2003 : 16:05:57
|
right. like i said, this doesn't cause a problem in the existing snitz code. in the future, it could cause problems on the server side though, since vbscript is not case sensitive. it causes a problem in my mod because the upload componment i'm using freaks out when it finds two form elements with the same name. |
|
|
Deleted
deleted
4116 Posts |
Posted - 14 February 2003 : 13:32:13
|
Although not a bug, I found out that I've already modified this in v4b04... I used "mode" as name...
|
Stop the WAR! |
|
|
Davio
Development Team Member
Jamaica
12217 Posts |
|
|
Topic |
|