Monday 15 July 2013

jquery - PHP CodeIgniter - How to autoload a div after an Ajax call? -


I am developing a tool that continually prepares the graph and uploads it to a web page. I'm trying to keep the graph to auto-load after selecting the graph option. The page is stable with a dynamic divi which does all the work. When you select an option, an Ajax call loads the referenced graph and the only change is on that device.

Something like this, if you choose ping, the graph that you see is just the ping graph and I want to keep it autoloading in the div.

What can you suggest me?

If you have any doubts about how the page is structured, I would be happy to answer.

Thank you for all the responses, and in particular, for the new idea that you gave me JavaScript Graphing Tool If anybody ever gets the same doubts, then it is a solution.

  & lt; Script & gt; $ ('# Button'). Click (function () {buttonContinuousAjaxCall ();}); Function ButtonSystemAccount () $ $ .XX ({url: '& lt;? Php echo site_url (' admin / method ');? & Gt; type,' post ', success: function () {// SetTimeout ( ButtonContinanceExcalls, 5000);}, Error: Function (X, Status, Error) {Warning ("Error code:" + + "\ nA error occurred:" + status + "\ nError:" + Error);} }); }; & Lt; / Script & gt;    

No comments:

Post a Comment