Demo Discussion
Forum Config Examples Contributions Vulnerabilities
  Discussion forum about ELOG  Not logged in ELOG logo
icon1.gif   Error Message in HTML or Java Script alert, posted by Carsten Elftmann on Mon Oct 13 11:42:07 2008 
    icon2.gif   Re: Error Message in HTML or Java Script alert, posted by Stefan Ritt on Wed Oct 29 05:35:05 2008 
       icon2.gif   Re: Error Message in HTML or Java Script alert, posted by Carsten Elftmann on Tue Jan 27 12:30:26 2009 
          icon2.gif   Re: Error Message in HTML or Java Script alert, posted by Stefan Ritt on Mon Feb 2 10:08:17 2009 
Message ID: 66187     Entry time: Mon Feb 2 10:08:17 2009     In reply to: 66177
Icon: Reply  Author: Stefan Ritt  Author Email: stefan.ritt@psi.ch 
Category: Question  OS: Windows  ELOG Version: 2.7.5-2130 
Subject: Re: Error Message in HTML or Java Script alert 

 

Carsten Elftmann wrote:

 

Stefan Ritt wrote:

 

Carsten Elftmann wrote:
I have there a problem with the error message at required attributes.
 
I have two logbooks with identical settings,
in one the errror message appears as Javascript Alert,
in the other one as html-page, and after using the back button the entered text disapear.
Same I have in this forum.

 

Can you describe what you exactly enter in this forum to produce the error so that I can reproduce it?

 

 I could not produce this error here again, so I work on that:

There was a attribute with Type = Date, Preset = $Date.

This added following js code

  for (var i=0 ; i<document.form1.y0.value.length ; i++)
if ((document.form1.y0.value.charAt(i) < "0" ||
document.form1.y0.value.charAt(i) > "9")) { break }
This cause in following error 
Fehler: document.form1.y0 is undefined
Quelldatei: http://elog1.bkitech.de/Test-Maengelbericht/?cmd=Neu
Zeile: 16
After that error none js will be executed. After remarking the Type line, all work well.

 

I tried with following minimal configuration file:

Attributes = D, Author, Subject
Type D = Date
Preset D = $Date

and it worked fine. The form contains a field:

Year: <input type="text" size=5 maxlength=5 name="y0">

which contains the name "y0" and therefore produced no error. Can you try with that configuration and see which difference to your configuration causes the error to appear?

ELOG V3.1.5-3fb85fa6