possible coding for php javascript or ajax?

  • Thread starter Thread starter Mr E
  • Start date Start date
M

Mr E

Guest
hi, i have to do a couple of jobs on my website and i need the code but i dont' think my methods are going to work (mainly cause they don't seem to be)

basically what i'd like to do is create like a table for products to go into then when you click the image the large image appears in a new window and if you click on the name the prices and the button to buy and the quantity button becomes available to use to buy the door and add to the shopping basket.

the current methods used on the website are php javascript and ajax, although i am open to xml as well. the products are all collected in a database with the door name the prices and the url to the images (both large and small)

this is some pseudo code (probably very bad pseudo code) to assist:

Select range of products(doors) by doorname
get doors
display door 1
display door name 1
IF more doors
display door 2
display door name 2
IF more doors
display door 3
display door name 3
IF more doors
New row
display door 4
display door name 4
ETC ETC
IF no more doors in range
close

part 2
When all images and names displayed
IF Doorimage clicked Get large Doorimage from database
open image in new window
IF Doorname clicked Get DoorPrices from Database
display prices (in seperate Div Layer from doors)
quantity drop box visible/enabled(in seperate Div Layer from doors)
buy button visible/enabled (in seperate Div Layer from doors)
if buy button pressed, add to shopping basket, display message (replacing prices text)
buy button disabled/invisible
quantity box disables/ invisible
 
So....ummmm....what is your question? You want someone to write all of this for you? Do you need someone to agree with your logic?
 
Back
Top