Can you tell me the right column and the left column in the background how to associate with PHP read write or JS?
I'm not talking about the old frame model;
Site back to the left column and the right column;
The user clicks the list in the left column, how to display the content in the right column's content area? Is it refreshing the entire page? or through the JSON read the contents of the corresponding file, and then JS to write to the right column content area;
Ask the veteran will be, the site of the background specific how to do; Especially after the user clicks, how to ensure the next page, the left column of the Click Effect remains; Is it not realistic to have the right column template every time?
PHP is very skilled, but a large project did not write, the background of the HTML to write steps to understand, hereby ask for advice;
------to solve the idea----------------------
Reference: The
user clicks the list in the left column, how to display content in the right column of the content area? Is it refreshing the entire page or reading the contents of the corresponding file through JSON, then JS writing to the right column content area;
You said both of these methods can be.
Should you be okay with Ajax?
What's wrong with brushing the entire page? Which of the points you know, change the corresponding class in the left column to the same style?
------to solve the idea----------------------
Do not want to use an IFRAME only Ajax asynchronous refresh, develop a little more trouble, or recommend an IFRAME
Either the full page jumps directly, the left side is positioned to the current column
------to solve the idea----------------------
Using jquery
$ (' #left a '). Click (function () {
$ (' #right '). Load (THIS.HREF)
return false;
});
It's a matter of solution.
------to solve the idea----------------------
The right of the upstairs hand
------to solve the idea----------------------
With JQ,
Http://www.w3school.com.cn/jquery/ajax_load.asp
------to solve the idea----------------------
jquery Asynchronous loading