<div dir="ltr"><div class="gmail_default" style="font-family:'courier new',monospace"><div class="gmail_default" style="font-family:arial,sans-serif;font-size:14px"><font face="courier new, monospace">I'm writting AJAX part now.</font></div>
<div class="gmail_default" style="font-family:arial,sans-serif;font-size:14px"><font face="courier new, monospace">Have a look at this commit:</font></div><div class="gmail_default" style="font-family:arial,sans-serif;font-size:14px">
<font face="courier new, monospace"><a href="https://github.com/WhaleWatching/phpmyadmin/commit/a382070ee42b72474842d20e805ae2a087e4b8c7" target="_blank">https://github.com/WhaleWatching/phpmyadmin/commit/a382070ee42b72474842d20e805ae2a087e4b8c7</a><br>
</font></div><div class="gmail_default" style="font-family:arial,sans-serif;font-size:14px"><font face="courier new, monospace">See my comment on it: </font></div><div class="gmail_default" style="font-family:arial,sans-serif;font-size:14px">
<font face="courier new, monospace"><span style="color:rgb(51,51,51);line-height:23.799999237060547px"> For get response data I add a param, run between requestHandler and responseHandler.</span><br></font></div><div class="gmail_default" style="font-family:arial,sans-serif;font-size:14px">
<font face="courier new, monospace"><span style="color:rgb(51,51,51);line-height:23.799999237060547px">Now middle handler runs well, but I </span></font><span style="color:rgb(51,51,51);font-family:'courier new',monospace;line-height:23.799999237060547px">can't </span><span style="color:rgb(51,51,51);font-family:'courier new',monospace;line-height:23.799999237060547px">send</span></div>
<div class="gmail_default" style="font-family:arial,sans-serif;font-size:14px"><font face="courier new, monospace"><span style="color:rgb(51,51,51);line-height:23.799999237060547px">message ID to PMA_console.</span><span style="color:rgb(51,51,51);font-size:12px">_responseMidHandler, my</span></font></div>
<div class="gmail_default" style="font-family:arial,sans-serif;font-size:14px"><font face="courier new, monospace"><span style="color:rgb(51,51,51);font-size:12px">questions are:</span></font></div><div class="gmail_default" style="font-family:arial,sans-serif;font-size:14px">
<font face="courier new, monospace"><span style="color:rgb(51,51,51);font-size:12px">1. Is the middle handler OK? Or is there another way to</span></font></div><div class="gmail_default" style="font-family:arial,sans-serif;font-size:14px">
<font face="courier new, monospace"><span style="color:rgb(51,51,51);font-size:12px">custom my AJAX request(I need pages jump use global</span></font></div><div class="gmail_default" style="font-family:arial,sans-serif;font-size:14px">
<font face="courier new, monospace"><span style="color:rgb(51,51,51);font-size:12px">AJAX handlers)</span></font></div><div class="gmail_default" style="font-family:arial,sans-serif;font-size:14px"><font face="courier new, monospace"><span style="color:rgb(51,51,51);font-size:12px">2. How to send message ID to </span></font><span style="color:rgb(51,51,51);font-family:'courier new',monospace;font-size:12px">my custom handler? If must</span></div>
<div class="gmail_default" style="font-family:arial,sans-serif;font-size:14px"><span style="color:rgb(51,51,51);font-family:'courier new',monospace;font-size:12px">modifi PHP scripts, which should I modifi?</span></div>
<div class="gmail_default" style="font-family:arial,sans-serif;font-size:14px"><span style="color:rgb(51,51,51);font-family:'courier new',monospace;font-size:12px"><br></span></div><div class="gmail_default" style="font-family:arial,sans-serif;font-size:14px">
<span style="color:rgb(51,51,51);font-family:'courier new',monospace;font-size:12px"><br></span></div><div class="gmail_default" style="font-family:arial,sans-serif;font-size:14px"><span style="color:rgb(51,51,51);font-family:'courier new',monospace;font-size:12px">Thanks!</span></div>
</div><div class="gmail_extra"><br><br><div class="gmail_quote">2014-05-26 19:22 GMT+08:00 Edward Cheng <span dir="ltr"><<a href="mailto:c4150221@gmail.com" target="_blank">c4150221@gmail.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div dir="ltr">Thank you:)<br><br><br>2014-05-26 19:19 GMT+08:00 Atul Pratap singh <<a href="mailto:atulpratapsingh05@gmail.com" target="_blank">atulpratapsingh05@gmail.com</a>>:<div><div class="h5"><br>><br>><br>
><br>> On May 26, 2014 4:39:16 PM GMT+05:30, Atul Pratap Singh <<a href="mailto:atulpratapsingh05@gmail.com" target="_blank">atulpratapsingh05@gmail.com</a>> wrote:<br>
> >>><br>> >> Yeah, I made a console, you can type queries, execute queries, and<br>> >> check logs on it.<br>> >> When you type a query, press ctrl+enter you'll see the result comes<br>
> >out<br>> >> replace your currect page, AJAX.requestHandler will take this job,<br>> ><br>> >For executing and fetching query results, please also take a look at<br>> >existing system in sql.js where custom handler is written for<br>
> >#sqlqueryform.ajax. So I think you could just pass the query to this<br>> >existing system and page replacing will happen.<br>> ><br>> >About pushing subsequent sql result pages to AJAX.cache, I think it is<br>
> >not required and is not done right now. We currently push to<br>> >AJAX.cache when user switches between different tabs etc. and not for<br>> >subsequent sql result pages.<br>> ><br>> >> but console only shows query string, I need handle response data, so<br>
> >I can put results<br>> >> on console logs, and errors and other messages.<br>> >> Thanks :)<br>> >><br>> >So console div would be out of page_content and will not be<br>> >removed/replaced as queries get executed from the console. For this<br>
> >also, I think you can write a custom handler.<br>> Also, you can update console success/error messages from the sqlqueryform handler itself as you get the response.<br>><br>> --<br>> Atul Pratap Singh<br>
> Sent from my Android device<br>><br>> ------------------------------------------------------------------------------<br>> The best possible search technologies are now affordable for all companies.<br>> Download your FREE open source Enterprise Search Engine today!<br>
> Our experts will assist you in its installation for $59/mo, no commitment.<br>> Test it for FREE on our Cloud platform anytime!<br>> <a href="http://pubads.g.doubleclick.net/gampad/clk?id=145328191&iu=/4140/ostg.clktrk" target="_blank">http://pubads.g.doubleclick.net/gampad/clk?id=145328191&iu=/4140/ostg.clktrk</a><br>
> _______________________________________________<br>> Phpmyadmin-devel mailing list<br>> <a href="mailto:Phpmyadmin-devel@lists.sourceforge.net" target="_blank">Phpmyadmin-devel@lists.sourceforge.net</a><br>> <a href="https://lists.sourceforge.net/lists/listinfo/phpmyadmin-devel" target="_blank">https://lists.sourceforge.net/lists/listinfo/phpmyadmin-devel</a><br>
<br><br><br><br></div></div>--<br>Edward Cheng</div>
</blockquote></div><br><br clear="all"><div><br></div>-- <br><div dir="ltr">Edward Cheng<div><br></div></div>
</div></div>