How can I apply Dojo Dijits (1.5.0, currently) to work with XHTML application / XML + Xhtml? This works if sent as text / html but requires application / XML + XHTML.
This is connected to the Digitz.Form.Data Picker and some others.
It is not a matter of validating against the W3C, it does not just work plain, absolutely .
Error: Mismatched tag expected: & lt; / Br>. Source file: Line: 5, Col: 54 Source code: & gt; & Lt; Div class = "dijitReset dijitValidationIcon" & gt; & Lt; Br> & Gt; / Div This error prevents JavaScript execution.
Obviously, I can compile the two again, and I can cure all of these individually, but this is a lot of work, and does not do everything right.
Once again, it works with text / html, but requires App / XML + XHTML.
I asked about this about server side if you were building your own anyway , I know that you do not want to do personalized patches and rebuilding, but I think that there is a solution where you can "patches", yet it does not make it again since the functions make the string internal in the constructor , So you use expansion functionality And you can change it. In this case, for ValidationTextBox, you
dijit.form.ValidationTextBox.extend ({templatestring: "& lt; div> gt; apple sauce & lt; / div & gt;"} ) can do; To use this new template string, you will find all the future of dijit.form.ValidationTextBox immediately. Although this may not be ideal, but it can be the only way to fix it without completely rebuilding it for you. Probably as something,
dojo.require ("dijit.form.ValidationTextBox"); Dojo.require ("my.ValidationTextBoxFix"); Good luck.
Comments
Post a Comment