- Where Developers Learn, Share, & Build Careers
We want to erase a model popup until the user submits the form until "Please Wait".
Here is part of my _form.php (only one instant for readable resolutions): I acknowledge that I'm losing little on this process and I am not sure Is that it still works However,: I am thinking of keeping it: There is already a jquery plugin for this .. But if you want to use CJEIDOL, just make sure that If you wish, you can also use CJIDEOL to show progress. Edit: The button of the x dialog to hide the sample code: To open the dialog: After verification, as you had guessed. While the form data is sent to the server, the dialog will be displayed, and after the full URL navigation (the new page will be loaded)
(array '' validateOnSubmit '' = & gt; True, 'aftervalidate' = & gt; 'js: ($ ("# EntityEvent_active"). (": Has been checked: ($" ("# publishErrors") below (); $ ("# event- Form_es_ ") blank (); i = true;" ($ "(" # Event_name ")) ()" "(" & lt; p & gt; please check: ) { $ ("# Event_name"). AddClass ("Error"); ... ...
$ this-> startWidget ('zii.widgets.jui.CJuiDialog', array ( 'Option' = & gt; array ('title' = & gt; 'my title', 'model' =>;)); resonance 'please wait while your form is being presented'; $ - & gt; endWidget ('zii.widgets.jui.CJuiDialog');
closeOnEscape is
false , and
modal
true should also be
autoOpen
false .
$ this-> Start the widget ('zii.widgets.jui.CJuiDialog', array ('id' = & gt; 'mywaitdialog', 'options' = & gt; array ('title' = & gt; 'my title', 'model' = & Gt; true, 'autoone' = & gt; wrong, // default is true 'closeOnEscape' = & gt; wrong, 'Open' => = Open Event 'JS: function () {// To close this function, provide a callback function to hide the clock button $ (".class-of-closebutton"). Hide ();} ')));
$ ("# mywaitdialog"). Dialog ("open"); .
Comments
Post a Comment