From roundcube@gmail.com Sat Jul 14 15:57:33 2007 From: Thomas Bruederli 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="===============5192088990749821351==" --===============5192088990749821351== 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. > > > --===============5192088990749821351==--