Snitz Forums 2000
Snitz Forums 2000
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 Snitz Forums 2000 DEV-Group
 DEV Bug Reports (Closed)
 (v3.4.03) BUG+FIX: inc_post_buttons.asp
 Forum Locked  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

BJH
Starting Member

16 Posts

Posted - 14 January 2003 :  14:39:24  Show Profile
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  Show Profile
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.
Go to Top of Page

BJH
Starting Member

16 Posts

Posted - 14 January 2003 :  16:05:57  Show Profile
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.
Go to Top of Page

Deleted
deleted

4116 Posts

Posted - 14 February 2003 :  13:32:13  Show Profile
Although not a bug, I found out that I've already modified this in v4b04... I used "mode" as name...

Stop the WAR!
Go to Top of Page

Davio
Development Team Member

Jamaica
12217 Posts

Posted - 07 March 2003 :  21:14:15  Show Profile
Fixed in 3.4.04

Support Snitz Forums
Go to Top of Page
  Previous Topic Topic Next Topic  
 Forum Locked  Topic Locked
 Printer Friendly
Jump To:
Snitz Forums 2000 © 2000-2021 Snitz™ Communications Go To Top Of Page
This page was generated in 0.18 seconds. Powered By: Snitz Forums 2000 Version 3.4.07