<div style="color: rgb(0, 0, 0); font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 10.5pt; margin-top: 8px; margin-right: 8px; margin-bottom: 8px; margin-left: 8px; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: rgb(255, 255, 255); line-height: 1.5; padding-top: 5px; padding-right: 5px; padding-bottom: 5px; padding-left: 5px; word-break: normal; word-wrap: break-word; ">
<p style="margin-top: 0px; margin-right: 0px; margin-bottom: 0.8em; margin-left: 0px; ">Hi,</p><p style="margin-top: 0px; margin-right: 0px; margin-bottom: 0.8em; margin-left: 0px; ">I have some ideas for the ajaxify work<br>
<br>1.A good framework.As the ajaxify of PMA just get started, I think it is essential to establish a scalable framework to process the ajax request as soon as possible.You can see the existed codes for ajaxify work have a lot in common, we should not repeat such codes again and again. The frame work should include not be limited to:<br>
<br> form validation(use JQuery validation plugin to replace current validation function)<br> basic function of request processing<br> handle with expired session<br> callback interfaces for overriding<br> UI design to display response information<br>
<br>2.Code refactor<br>Now that we have introduced jquery to PMA, we should make full use of it and rewrite functions like getElementsByClassName,getElement(e,f).<br>But on the other hand, we should not abuse JQuery. I see a lot <br>
$(document).ready(function() {<br> ...<br>}<br>in functions.js, as quoted from JQUERY's doc," In most cases, the script can be run as soon as the DOM hierarchy has been fully constructed", so all the ready function will be called when the dom's constructed. But functions.js is included in many pages, only a few of them need to run those ready function(actually one of it). We should split them into seve3.ral js file to be included only by pages that really need them.<br>
<br>3.No framesets anymore<br>In web1.0, people use framesets to achieve some ajax-like function.Here in Web2.0, do we still need them?However, I guess this is a big project to rebuild a no-frame application, where scripts refactoration and layout adjustment are involved, but it worth a try. I prefer to replace the navigation frame with a hidable side bar, this will reduce some layout adjustment work too.</p>
<p style="margin-top: 0px; margin-right: 0px; margin-bottom: 0.8em; margin-left: 0px; ">Thanks.</p><p style="margin-top: 0px; margin-right: 0px; margin-bottom: 0.8em; margin-left: 0px; ">Best regards,</p><p style="margin-top: 0px; margin-right: 0px; margin-bottom: 0.8em; margin-left: 0px; ">
Dennis Chen</p></div><div class="gmail_quote">On Fri, Mar 18, 2011 at 10:00 PM, Marc Delisle <span dir="ltr"><<a href="mailto:marc@infomarc.info">marc@infomarc.info</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
陈岳峰 a écrit :<br>
> Hi,<br>
><br>
<div class="im">> I guess this time I did pushed it<br>
<br>
</div>Yes you did.<br>
<font color="#888888"><br>
--<br>
</font><div><div></div><div class="h5">Marc Delisle<br>
<a href="http://infomarc.info" target="_blank">http://infomarc.info</a><br>
<br>
------------------------------------------------------------------------------<br>
Colocation vs. Managed Hosting<br>
A question and answer guide to determining the best fit<br>
for your organization - today and in the future.<br>
<a href="http://p.sf.net/sfu/internap-sfd2d" target="_blank">http://p.sf.net/sfu/internap-sfd2d</a><br>
_______________________________________________<br>
Phpmyadmin-devel mailing list<br>
<a href="mailto:Phpmyadmin-devel@lists.sourceforge.net">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>
</div></div></blockquote></div><br>