Author |
Topic  |
|
InDepthArts
New Member

77 Posts |
Posted - 11 June 2001 : 11:12:52
|
Please can someone tell me how to fix this error. When posting long posts as we often do on our forums the preview function totally goes berzerk. On a good day we get output like this:

On a bad day it brings down the browser. The above screenshot has occured on both my IE6 installation as well as one of my moderators IE5.5 installations. Could it be somthing with field lengths in the database? I am clueless. This only seems to happen with long posts.
Any help is GREATLY appreciated.
Eric |
|
gor
Retired Admin
    
Netherlands
5511 Posts |
Posted - 11 June 2001 : 13:28:25
|
Is this with the version 3.1 SR4 ?
Did you try that here also (in the testforums), shouldn't happen here if everything goes like it should, and then upgrading to the new version is going to solve this.
Pierre Join the Snitz WebRing |
 |
|
InDepthArts
New Member

77 Posts |
Posted - 11 June 2001 : 16:33:00
|
Pierre,
Thank you for your reply. I do believe that this is sr4 as I downloaded it just a couple weeks ago (3 weeks maximum.)
Eric |
 |
|
Davio
Development Team Member
    
Jamaica
12217 Posts |
Posted - 11 June 2001 : 16:49:27
|
Could we take a look at your forum? Also could you post a link to a txt version of your inc_functions.asp file?
|
 |
|
InDepthArts
New Member

77 Posts |
Posted - 11 June 2001 : 16:59:15
|
Sure thing Davio! I appreciate the help. The URL to our boards is:
http://www.critical-depth.com/cgi-bin/idd
and the link to my inc_functions.asp file in text format is:
http://www.critical-depth.com/inc_functions.txt
I must say though that (besides a couple buggy things with javascript and Netscape) Snitz is the best forum software I have come across... free or commercial.
Eric
Edited by - InDepthArts on 11 June 2001 17:01:38 |
 |
|
Davio
Development Team Member
    
Jamaica
12217 Posts |
Posted - 11 June 2001 : 19:35:03
|
Well, did some testing. It seems the preview function on your site goes berzerk after 3611 characters. I tested it on my 3.1 SR4 test forum and it showed up to 3641 characters. It didn't go berzerk as yours did just didn't show anything more of the message after that. Got the same result when I tried it on the 3.2 Alpha 6 version. All are using Access database but the database has nothing to do with it since the message is stored in the cookie when previewing it and only reaches the database after hitting the post button.
Your inc_functions.asp file looks identical to mine so don't know what it could be. But I think either way, since the preview can't show more than a certain amount of characters, it either shows you the message jumbled or it cuts the message, so both ways you won't be able to see the rest of the message.
That's my hypothesis. 
|
 |
|
Intrepidone
Average Member
  
Canada
515 Posts |
Posted - 11 June 2001 : 23:30:07
|
I am not sure if this has anything to do with the error your getting, but I was taking a look at your site and when I was viewing some members profiles I kept getting this error
Total Posts: Microsoft VBScript runtime error '800a005e'
Invalid use of Null: 'Replace'
/cgi-bin/idd/inc_functions.asp, line 358
Intrepidone |
 |
|
InDepthArts
New Member

77 Posts |
Posted - 12 June 2001 : 10:08:21
|
Hey guys,
Thanks for your help! So am I pretty much SOL on this?
Eric
|
 |
|
HuwR
Forum Admin
    
United Kingdom
20595 Posts |
Posted - 12 June 2001 : 13:22:04
|
if you hunt around the forums here, you will find an alternative preview, by either Dastim or Aznight don't recall which.
The problem is caused by passing the message in a cookie.
|
 |
|
InDepthArts
New Member

77 Posts |
Posted - 13 June 2001 : 11:49:16
|
Thanks guys and thank you HuwR! I tried to make the changes last night but ran into problems because my post.asp is kind of modified. I will try again tonight. HuwR, does that updated preview function alter the way that the information is passed between the two pages? I am really new to any kind of coding but I am trying to learn as fast as I can.
Also, does anyone have any clues as to why Netscape 4.X users can't use various pop-up functions? They get Javascript errors... and it happens on these forums as well (I tested.) If I could get these two issues worked out it will be smooth sailing for me!
Eric |
 |
|
_ENiGMA_
New Member

USA
82 Posts |
|
HuwR
Forum Admin
    
United Kingdom
20595 Posts |
Posted - 13 June 2001 : 19:00:47
|
quote:
Thanks guys and thank you HuwR! I tried to make the changes last night but ran into problems because my post.asp is kind of modified. I will try again tonight. HuwR, does that updated preview function alter the way that the information is passed between the two pages? I am really new to any kind of coding but I am trying to learn as fast as I can.
Yes I think so, but would have to check the mod out to see.
quote:
Also, does anyone have any clues as to why Netscape 4.X users can't use various pop-up functions? They get Javascript errors... and it happens on these forums as well (I tested.) If I could get these two issues worked out it will be smooth sailing for me!
Eric
Could you supply specific examples with the error, so someone can investigate.
|
 |
|
Davio
Development Team Member
    
Jamaica
12217 Posts |
Posted - 13 June 2001 : 23:35:10
|
quote: Also, does anyone have any clues as to why Netscape 4.X users can't use various pop-up functions? They get Javascript errors... and it happens on these forums as well (I tested.) If I could get these two issues worked out it will be smooth sailing for me!
This is a bug. Tested it with Netscape 4.72. When the page loads up, this is the javascript error that is produced without pressing any button or anything:JavaScript Error: http://forum.snitz.com/forum/post.asp, line 488:
try is a reserved identifier.
try{ ................^ If you try clicking the Preview button you get this:JavaScript Error: http://forum.snitz.com/forum/post.asp, line 839:
OpenPreview is not defined. But I guess that's because of the first error.
So most, if not all, Netscape users can't use the preview function. I'll post this in the DEV Bug Report.
|
 |
|
Davio
Development Team Member
    
Jamaica
12217 Posts |
Posted - 14 June 2001 : 01:11:23
|
hmmm, wierd. The "try" identifier in the javascript is not in the SR4 version of the forums, but it is in the Alpha versions and later. But I went to InDepthArts site and got the same error, but when I looked at the source code, couldn't find the "try" identifier the error was reffering to. Looking at the source code here, I found the "try" identifier it was reffering to. *scratches head*
Edited by - Davio on 14 June 2001 01:12:39 |
 |
|
HuwR
Forum Admin
    
United Kingdom
20595 Posts |
Posted - 14 June 2001 : 02:45:51
|
the 'try' was added to trap an error in the allowed memberlist box.
don't know why netscape wouldn't like it though will need to hunt out some info
|
 |
|
|
Topic  |
|