| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
This page is a concept, a rough idea. It is a proposal of how the page loading could work without html frames, ready for discussion.
Until phpMyAdmin 3, html frames were used to separate the navigation pane from the main pane. Removing frames is on the roadmap for phpMyAdmin 4.
Clicking on a link in the navigation frame, or clicking on a link in the breadcrumb or tabs, would reload the main pane : data, but also updating of breadcrumb and tabs, using Javascript, AJAX and/or AHAH Opening a file from a direct link, or opening a link in separate browser tab, would reload the entire html page (navigation + main)
One file per section_subsection.php : containing nothing but includes to libraries and a function call to load the page.
Every section_subsection page could be a derived from a base PMA_Page Class
This base class would have common functionality to load a page :
Derives from PMA_Page and overrides some sections :
A section_subsection.php file loads a corresponding inc.php file, creates an instance of a PMA_Page Class (using a factory pattern) and loads the page :
<?php require "libraries\Page.Class.php"; $page = PageFactory->create("section_subsection"); $page->display_page(); ?>
When updating only a section of a page, f.e. when clicking a different tab, the corresponding function class can be used to get the html part that changes. This part can be replaced in the original html page. f.e.:
<?php require "libraries\Page.Class.php"; $page = PageFactory->create("section_subsection"); return $page->display_data(); ?>
The output of this function/page can be inserted/replaced by Javascript in the current page. (AHAH)
If the subsection stays the same, the data could be refreshed using AJAX. F.e. when browsing a table and the next 30 rows are called. No need to reload all the html. An AJAX call to get the next 30 rows and update the current page is sufficient.
Popular destinations:
User resources:
| Back | FazBrowse Home | New Git URL |