2014-05-26 18:19 GMT+08:00 Atul Pratap Singh atulpratapsingh05@gmail.com:
On 5/26/14, Edward Cheng c4150221@gmail.com wrote:
2014-05-26 17:56 GMT+08:00 Atul Pratap Singh <
atulpratapsingh05@gmail.com>:
On 5/26/14, Edward Cheng c4150221@gmail.com wrote:
2014-05-26 17:22 GMT+08:00 Michal Čihař michal@cihar.com:
Hi
Dne Mon, 26 May 2014 16:59:54 +0800 Edward Cheng c4150221@gmail.com napsal(a):
Hi, I'm writing console.js AJAX part. But I see two global AJAX handlers, if I want to use them, is that means I can't handle the response event? How can I write own response callback while using global handlers?
Maybe following wiki pages will help you:
https://wiki.phpmyadmin.net/pma/Generating_pages_and_ajax_responses_in_pma4
That not help me, I want to handle response data, get information and put them to console log...
From https://wiki.phpmyadmin.net/pma/Page_loader I get:- "In order for the generic page loader not to handle such cases, it is necessary to add an "ajax" class to the link or form"
So you can of course write your custom handler and handle response your own way. You just need to add class "ajax" to your element for it to work.
I need global handlers handle my requests(show query result just like click a link), also need my handlers handle response data(update console messages).
So you mean that you want global handlers to send requests for you and you want to handle response yourself? Well then why not write custom handlers?
Or if you mean something else please explain more.
Yeah, I made a console, you can type queries, execute queries, and check logs on it. When you type a query, press ctrl+enter you'll see the result comes out replace your currect page, AJAX.requestHandler will take this job, but console only shows query string, I need handle response data, so I can put results on console logs, and errors and other messages. Thanks :)
-- Atul Pratap Singh http://blog.atulsisodia.in/
The best possible search technologies are now affordable for all companies. Download your FREE open source Enterprise Search Engine today! Our experts will assist you in its installation for $59/mo, no commitment. Test it for FREE on our Cloud platform anytime!
http://pubads.g.doubleclick.net/gampad/clk?id=145328191&iu=/4140/ostg.cl... _______________________________________________ Phpmyadmin-devel mailing list Phpmyadmin-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/phpmyadmin-devel