From airween@damson.hu Sat Jul 14 15:57:33 2007 From: =?utf-8?q?Heged=C3=BCs?= Ervin To: dev@lists.roundcube.net Subject: display_message() function Date: Mon, 09 Jan 2006 23:26:48 +0100 Message-ID: <6c983ebf6bb4e26a32a296df45812ee8@damson.hu> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="===============6214454650551729447==" --===============6214454650551729447== Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit hello, i made a simple password changer site for our webmail. i try to handle with user errors with display_message() JS function, but something wrong... code: . if ($_REQUEST['pass'] == "mismatch") { // passwords mismatch ?> ; To: dev@lists.roundcube.net Subject: Re: display_message() function Date: Tue, 10 Jan 2006 12:01:27 +0100 Message-ID: <43C39407.9030803@gmail.com> In-Reply-To: <6c983ebf6bb4e26a32a296df45812ee8@damson.hu> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="===============5003112510319280043==" --===============5003112510319280043== Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit Make sure you have a DIV object with id="message" in your page/template. Then the check for this.gui_objects.message should not fail. Regards, Thomas Hegedüs Ervin wrote: > hello, > > i made a simple password changer site for our webmail. > > i try to handle with user errors with display_message() > JS function, but something wrong... > > code: > > . > if ($_REQUEST['pass'] == "mismatch") { > // passwords mismatch > ?> > > ; > > } > .. > > but nothing happened... > > it looks like in display_message() function at this line > stops the code: > > if (!this.gui_objects.message) > return false; > > > what may be the problem? > > > thank you: > > a. > > > --===============5003112510319280043==--