alchemyapi - Shows Progress Dialogbox when API request is being processed in CakePHP 2.x -


$this->alchemyapi = new alchemyapi(); $response = $this->alchemyapi->sentiment("text", "text anaylse", null);   

i have above code made request alchemyapi , wait response ,in action of controller.my question should using create progress box showing spinning icon while request being processed.and dialogbox disappear when request finished?.i wondering if possible on server side(on controller/action) instead of using javascript/jquery on view.

since how design code passing $response variable view.

 $this->set($response); 

i new cakephp , have no idea start that.any appreciated.


Comments

Popular posts from this blog

OpenCV OpenCL: Convert Mat to Bitmap in JNI Layer for Android -

android - org.xmlpull.v1.XmlPullParserException: expected: START_TAG {http://schemas.xmlsoap.org/soap/envelope/}Envelope -

python - How to remove the Xframe Options header in django? -