Frameworks| Hibernate| Struts| JSF| JavaFX| Ajax| Spring| DOJO| JDO| iBatis| Questions?

 

 

 

 

 

 

 

 

 

 

 

 

 

Search Tutorials

Latest Questions
Comments
 
Dojo Dialog Box 
 

In this section, you will learn about the dialog box with tool tips and how to create it in dojo.

 

Dojo Dialog Box

                          

In this section, you will learn about the dialog box with tool tips and how to create it in dojo.

Try Online: Dialog Box

Dialog Box : Dialog box is a rectangular GUI box that either requests or provides information. Some dialog boxes present warnings and options to choose from before windows can carry out a command. In dialog box users can entered your information. 

 

 

Here is the code of Program:

<html>
<head>
<title>TooltipDialog demo</title>
    <style type="text/css">
      @import "../resources/dojo.css";
      @import "../dijit/themes/tundra/tundra.css";
      
  </style>
  <script type="text/javascript" src="dojo.xd.js" 
  djConfig="parseOnLoad: true"></script>

  <script type="text/javascript">
       dojo.require("dojo.parser");
       dojo.require("dijit.form.Button");
       dojo.require("dijit.Dialog");
       dojo.require("dijit.form.TextBox");
       function checkPw(dialogFields) {
          if (dialogFields.confirmpw != dialogFields.newpw)
             alert("Confirmation password is different.");
       }
     </script>
</head>
<body class="tundra">
  <div dojoType="dijit.form.DropDownButton">
      <span>Login Form</span>
      <div dojoType="dijit.TooltipDialog" id="dialog1" 
title="Login Form" execute="checkPw(arguments[0]);">
        <table>
          <tr>
          <td><label for="name" title="User name">
   Username</label></td>
              <td><input dojoType="dijit.form.TextBox" 
   type="text" name="oldpw"></td>
          </tr>
          <tr>
              <td><label for="loc">Password: </label></td>
              <td><input dojoType="dijit.form.TextBox" 
   type="password" name="newpw"></td>
          </tr>
          <tr>
              <td><label for="desc">Confirm Password: </label></td>
              <td><input dojoType="dijit.form.TextBox" 
  type="password" name="confirmpw"></td>
          </tr>
          <tr>
              <td colspan="2" align="center">
                  <button dojoType="dijit.form.Button"
 
type="submit">Login</button></td>
          </tr>
        </table>
      </div>
  </div>
</body>
</html>

Output of the Program:

When you click the following button then you get:

Again, fill the following dialog:

After clicking the "Login" command button you get:

 

Try Online:

 

                          

» View all related tutorials
Related Tags: c dojo io accordion this ai container learn ear e il section in nt out j do s is ll

Leave your comment:

Name:

Email:

URL:

Title:

Comments:


Enter Code:

Audio Version
Reload Image
 

Note: Emails will not be visible or used in any way, and are not required. Please keep comments relevant. Any content deemed inappropriate or offensive may be edited and/or deleted.

No HTML code is allowed. Line breaks will be converted automatically. URLs will be auto-linked. Please use BBCode to format your text.

Add This Tutorial To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 

Current Comments

1 comments so far (
post your own) View All Comments Latest 10 Comments:

Hi All,

Say I named this program as 'dialog.jsp', when I try to execute this 'dialog.jsp' in the browser it working fine, but when I add the same program in struts.xml action, ex:

<action name="Dojo"> <result>/pages/dialog.jsp</result>
</action>

When I try to execute 'Dojo.action' it is throwing below error message in firefox browser

dojo is not defined
dojo.require("dojo.parser");

I even added <s:head theme="ajax" debug="true"/> in <head> section.

Please let me know what changes I need to do to overcome this problem.

Thanks,
Sharath.

Posted by sharath on Thursday, 03.27.08 @ 18:14pm | #54502

Training Courses
Tell A Friend
Your Friend Name
Software Solutions
Least Viewed
Most Rated
Recently Viewed
Search Tutorials

 

 
 

Home | JSP | EJB | JDBC | Java Servlets | WAP  | Free JSP Hosting  | Search Engine | News Archive | Jboss 3.0 tutorial | Free Linux CD's | Forum | Blogs

About Us | Advertising On RoseIndia.net  | Site Map

India News

Indian Software Development Company | iPhone Development Company in India | Flex Development Company in India | Java Training Delhi | Java Training at Noida |

Send your comments, Suggestions or Queries regarding this site at roseindia_net@yahoo.com.

Copyright © 2008. All rights reserved.