- 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):

   (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"); ... ...   

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:

  $ 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');       

There is already a jquery plugin for this ..

But if you want to use CJEIDOL, just make sure that closeOnEscape is false , and modal true should also be autoOpen false .

If you wish, you can also use CJIDEOL to show progress.

Edit:

The button of the x dialog to hide the sample code:

  $ 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 ();} ')));   

To open the dialog: $ ("# mywaitdialog"). Dialog ("open"); .

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)

Comments

Popular posts from this blog

Python SQLAlchemy:AttributeError: Neither 'Column' object nor 'Comparator' object has an attribute 'schema' -

java - How not to audit a join table and related entities using Hibernate Envers? -

mongodb - CakePHP paginator ignoring order, but only for certain values -