Hello guys,
I want to write a jquery code in mycontroller/Show,like this;
and then call this function in mycontroller/actionIndex like this;
anyone suggest me how I can do better this? It is necessary to use this method in controller..
I want to write a jquery code in mycontroller/Show,like this;
public function Show(){ <script> jQuery("#block").animate( { width: "100%","opacity": "show"}, { queue: false, duration: 2000 }); </script> }
and then call this function in mycontroller/actionIndex like this;
public function actionIndex(){ mycontroller;:show(); }
anyone suggest me how I can do better this? It is necessary to use this method in controller..