Like Zhongguancun online, or how the Pacific Auto Multi-attribute search is done, how the idea
This post was last edited by airukongqi4321 on 2013-11-03 11:44:21
http://detail.zol.com.cn/notebook_index/subcate16_0_list_4000_s1227_1_1_0_1.html Zhongguancun Online
http://price.pcauto.com.cn/price/q-p2-k75.html Pacific Motor
By clicking on an attribute, some properties of the product will be dimmed and unavailable
The feeling asks how to realize this kind of function is how the idea, how to do ...
The score is not many excuse me, hehe .... Multi-Attribute search
Share to:
------Solution--------------------
Someone asked this before.
Two scenarios:
1 is the use of JavaScript based on the selected variable combination into a URL, this scheme needs to select First, click on a button to open the Web page (operation is a bit like commit)
2 is PHP according to each parameter to write a link, this scheme to refresh the page every time you click on a parameter, refresh the page will refer to the selected conditions of the various links to recalculate the output
The 2 transformation scheme is AJAX
------Solution--------------------
View-source:http://detail.zol.com.cn/notebook_index/subcate16_0_list_4000_s1227_1_1_0_1.html
Brand
Unlimited
Association
Asus
Dell
Hp
Shenzhou
Acer Hong-Acer
.....
Price
Unlimited
Less than 1999 yuan
2000-2499 USD
2500-2999 USD
Obviously, the connection is generated by the server.
View-source:http://price.pcauto.com.cn/price/q-p2-k75.html
Price:
Unlimited
50,000 or less 580,000 8.1 million 10.15 million 15.2 million 20.25 million
...
Level:
Unlimited