Opened 10 years ago

Closed 6 years ago

#9891 closed task (invalid)

Email validation textbox explorer example broken

Reported by: karthik Owned by: Shane O'Sullivan
Priority: high Milestone: future
Component: Documentation Version: 1.3.2
Keywords: Email validation textbox dojo 1.3.2 Cc:
Blocked By: Blocking:

Description

The following example does not work right with dojo 1.3.2

<html>
  <head>
    <title>Dojo: Hello World!</title>

    <!-- SECTION 1 -->
    <style type="text/css">
        @import "dojoroot/dijit/themes/tundra/tundra.css";
        @import "dojoroot/dojo/resources/dojo.css"
    </style>
    <script type="text/javascript" src="dojoroot/dojo/dojo.js"
      djConfig="parseOnLoad: true"></script>
	  
	  <!-- SECTION 2 -->
    <script type="text/javascript">
   dojo.require("dijit.form.ValidationTextBox");
   dojo.require("dojox.validate.regexp");
   dojo.require("dojo.parser");
</script>
  </head>

  <body class="tundra">
  <input id="q12" type="text" name="email" class="long" value="fred&barney@stonehenge.com"
    dojoType="dijit.form.ValidationTextBox"
    regExpGen="dojo.regexp.emailAddress"
    trim="true"
    required="true"
    invalidMessage="Invalid Email Address." />
  </button>
  </body>
</html>

This code was taken from this web page : http://dojocampus.org/explorer/#Dijit_Form_Controls_Text_Boxes_Validation_Email_Address_Single

Change History (5)

comment:1 Changed 10 years ago by dante

Component: GeneralDocumentation
Owner: changed from anonymous to Shane O'Sullivan
Priority: highnormal
Type: defecttask

the line

regExpGen="dojo.regexp.emailAddress"

needs to be

regExpGen="dojox.validate.regexp.emailAddress"

(note: dojoX not dojo, and also the full name has changed as dojox.validate.regexp was "polluting"to dojox.regexp namespace, and was changed in 1.3)

from: http://www.dojotoolkit.org/book/dojo-1-3-release-notes#dojox

dojox.regexp missing

    * the dojox.regexp functions and regexp's provided by dojox/validate/regexp.js are no longer cross-polluting namespaces. dojox/validate/regexp.js defined dojox.validate.regexp. dojox.regexp = dojox.validate.regexp is a quick shim to make any code using dojox.regexp functions use the new namespace. 

cc'ing shane o'sullivan who maintains the explorer examples. Seems it is using 1.2? The example in the link works fine using the old locations.

comment:2 Changed 10 years ago by karthik

Thanks for the response. I will try to spot new issues.

comment:3 Changed 10 years ago by bill

Summary: Email validation textbox not working with dojo 1.3.2Email validation textbox explorer example broken

comment:4 Changed 10 years ago by dante

Milestone: tbdfuture

comment:5 Changed 6 years ago by Kitson Kelly

Resolution: invalid
Status: newclosed

This is no longer valid.

Note: See TracTickets for help on using tickets.