[Zope] MessageDialog

Gerard Mulot vanisoft@wanadoo.fr
Fri, 22 Oct 1999 08:25:24 +0200


create in your application a method messageDialog

<HTML>
<HEAD>
<TITLE><!--#var title--></TITLE>
</HEAD>
<BODY BGCOLOR="#FFFFFF">
<FORM ACTION="<!--#var action-->" METHOD="GET"
      <!--#if target-->
      TARGET="<!--#var target-->"
      <!--#/if target-->>
<TABLE BORDER="0" WIDTH="100%" CELLPADDING="10">
<TR>
  <TD VALIGN="TOP">
  <BR>
  <CENTER><B><FONT SIZE="+6" COLOR="#77003B">!</FONT></B></CENTER>
  </TD>
  <TD VALIGN="TOP">
  <BR><BR>
  <CENTER>
  <!--#var message-->
  </CENTER>
  </TD>
</TR>
<TR>
  <TD VALIGN="TOP">
  </TD>
  <TD VALIGN="TOP">
  <CENTER>
  <INPUT TYPE="SUBMIT" VALUE="   Ok   ">
  </CENTER>
  </TD>
</TR>
</TABLE>
</FORM>
</BODY>
</HTML>




----- Original Message -----
From: Robin Becker <robin@jessikat.demon.co.uk>
To: <zope@zope.org>
Sent: Thursday, October 21, 1999 4:11 PM
Subject: Re: [Zope] MessageDialog


> In article <005001bf1bb7$253e7ac0$fc9b6c8a@p0829>, Gerard Mulot
<vanisoft@wanadoo.fr>
> writes
> I cannot get the example to work even when I cut it to
> <dtml-call
"REQUEST.set('m','messageDialog?title=Password&message=Password+invalid')">
> <dtml-call "REQUEST.set('retour',m)">
> <dtml-call "RESPONSE.redirect(retour)">
>
>
> I get an error saying messageDialog is an unknown resource.
> >here an example
> >
> >
> ><dtml-call
> >"REQUEST.set('user_name',REQUEST.get('AUTHENTICATED_USER').name)">
> ><dtml-call "REQUEST.set('retour','description_html')">
> >    <dtml-with sql>
> >      <dtml-call "REQUEST.set('cli_id',CLIENT_id)">
> >      <dtml-in Sol_Select_unClient>
> >        <dtml-if "_.string.strip(CLIENT_pwd) ==
> >_.string.strip(CLIENT_PASSWORD)">
> >          <dtml-var manageCLIENT>
> >        <dtml-else>
> >          <dtml-call
>
>"REQUEST.set('m','messageDialog?title=Password&message=Password_invalide&ac
t
> >ion=./description_html')">
> >          <dtml-call "REQUEST.set('retour',m)">
> >        </dtml-if>
> >      </dtml-in>
> >    </dtml-with>
> >    <dtml-call "RESPONSE.redirect(retour)">
> >
> >Regards
> >Gerard Mulot
> >email : vanisoft@wanadoo.fr
> >
> >----- Original Message -----
> >From: Itamar Shtull-Trauring <itamars@ibm.net>
> >To: <zope@zope.org>
> >Sent: Thursday, October 21, 1999 12:52 PM
> >Subject: [Zope] MessageDialog
> >
> >
> >> Is there any way to create a MessageDialog from inside DTML?
> >>
> >> I'm doing some <dtml-calls> in a DTML method, and when they're finished
> >I'd
> >> like to bring up a MessageDialog, instead of printing out a HTML page
> >> manually.
> >>
> >> _______________________________________________
> >> Zope maillist  -  Zope@zope.org
> >> http://www.zope.org/mailman/listinfo/zope
> >>
> >> (Related lists - please, no cross posts or HTML encoding!
> >>
> >> To receive general Zope announcements, see:
> >> http://www.zope.org/mailman/listinfo/zope-announce
> >>
> >> For developer-specific issues, zope-dev@zope.org -
> >> http://www.zope.org/mailman/listinfo/zope-dev )
> >>
> >
> >
> >_______________________________________________
> >Zope maillist  -  Zope@zope.org
> >http://www.zope.org/mailman/listinfo/zope
> >
> >(Related lists - please, no cross posts or HTML encoding!
> >
> >To receive general Zope announcements, see:
> >http://www.zope.org/mailman/listinfo/zope-announce
> >
> >For developer-specific issues, zope-dev@zope.org -
> >http://www.zope.org/mailman/listinfo/zope-dev )
>
> --
> Robin Becker
>
> _______________________________________________
> Zope maillist  -  Zope@zope.org
> http://www.zope.org/mailman/listinfo/zope
>
> (Related lists - please, no cross posts or HTML encoding!
>
> To receive general Zope announcements, see:
> http://www.zope.org/mailman/listinfo/zope-announce
>
> For developer-specific issues, zope-dev@zope.org -
> http://www.zope.org/mailman/listinfo/zope-dev )
>