Opened 15 years ago
Closed 15 years ago
#1099 closed defect (invalid)
FormBind failing to extend with function [init]
Reported by: | guest | Owned by: | anonymous |
---|---|---|---|
Priority: | high | Milestone: | |
Component: | Core | Version: | 0.3 |
Keywords: | Cc: | ||
Blocked By: | Blocking: |
Description
Using "Kitchen Sink" Compilation
dojo.io.FormBind? fails on page load with error: "this.init is not a function"
It also cannot access any of the extended properties added by dojo.lang.extend below the function.
Test Page Code: ================== <html> <head>
<title>test</title> <script type="text/javascript" src="/inc/dojo/dojo.js"></script> <script type="text/javascript"> <![CDATA[
dojo.require("dojo.io.*");
function loadBind() {
var x = dojo.io.FormBind?({
formNode: "myForm", load: function(type, data, e) {
alert(data)
}
});
} dojo.addOnLoad(loadBind);
]]> </script>
</head> <body>
<form method="post" action="" id="myForm">
<input type="text" name="inputID" value="" id="inputID"></input> <input type="submit" name="submitButton" value="Submit Test" id="submitButton"></input>
</form>
</body> </html> ===========================
Please see http://manual.dojotoolkit.org/WikiHome/DojoDotBook/Book23
for the correct way to use the FormBind?() class. Admittedly it's very confusing.