click div, update another, js, jquery or ajax?
I'm currently working on a website where it has a left and right column. the left column shows 4 products in divs and the id of the div contains the id of the product which is pulled from the mysql.
I am just wondering what language or method i need to learn/use so that when someone clicks on one of the products in the left column it then updates the column on the right with more of the product details such as a description which will be pulled from the database, price, sizes etc?
Here is the code for the left column for the products:
If you are concerned about the js disabled case, then you would write the page in a way that works if js is disabled, a form is submitted and the page would refresh with the right column populated. If js is enabled, the ajax process runs, the js stops the whole page refreshing, and just updates the right column.
Hope that helps.
|All times are GMT +1. The time now is 07:20 PM.|
Powered by vBulletin®
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.