So here's the problem. We have some big dojo forms that have been created using Zend_Dojo_Form. The problem is that validation does not work on any submit button while working on each element. Due to the priceless standard layout, we are forced to use ideas
I thought that the whole thing was working fine till I had to make sure that when you came from the page Current page (with validation) using Quick Link using quick links from page pages.)
I have noticed that when I empower the click event on the submit button No verification
So I looked at some tutorials where I found out that the call to the form was going on. Is valid
dijit.byId ('form-id'). ); Or I was looking for the shortcut, mainly (originally)
dijit.byId ('form-id'). Submit (); Whatever work is not done, because the ID is not coming back undefined. This means that our ideology - or whatever is the whole process - is to partly create magic with the dendo form jade - in reality the dojo form does not generate a regiment.
So how does it do this in an idea? As, what php call or attribs is attached to a form tag to attach it to the form of a form dijit to interpret it by Dojo?
Here is the code from the viewscript:
& lt; Form action = "& lt;? = $ This-> escape ($ this-> element-> GetAction ())? & Gt;" Method = "& lt;? = $ This-> Escape ($ this-> element-> GetMethod ())? & Gt;" Id = "case record form" & gt;
This is similar to a problem I had if I echoed it Provide legalization, but when using a pamphlet, it will not happen. I came to know that when using a thought chart, Zend does not add the form to its zendDijits array, Must have to do manually.
Add something like this:
$ script = 'ZendDijits.push ({"id": "myformad", "params": {"dojo type": "dijit .form.form "}}); '; $ This- & gt; HeadScript () - & gt; AppendScript ($ script); is located at the top.
Comments
Post a Comment