www.webdeveloper.com
Results 1 to 3 of 3

Thread: Compare Product Specifications

Hybrid View

  1. #1
    Join Date
    Apr 2013
    Posts
    2

    Question Compare Product Specifications

    Greetings ... I am new in this field and I have to make a website where you can compare product specifications of 10-20 products, that need to place in a file or script, without using mysql ... I want to select 1-2-3-etc products that can be compared.
    Example:
    http://www.soyacincau.com/wp-content...-motorola1.jpg

    Is there a script that I can somehow edit it? I searched and did not find anything ...
    Thank you!

  2. #2
    Join Date
    Nov 2010
    Posts
    1,083
    It's not complicated - just store your products attributes in a data structure like this:

    Code:
    var phones={
    Motorola:{name:"Motorola Atrix",
    price:"500",
    memory:"768MB"},
    Samsung:{name:"Samsung SII",
    price:"750",
    memory:"1GB"},
    HTC:{name:"HTC Sensation",
    price:"400",
    memory:"588MB"}
    }
    then you can access their properties like this:
    Code:
    alert(phones["Motorola"].price)

  3. #3
    Join Date
    Apr 2013
    Posts
    2
    From what I have researched, I have to do something to avoid a mysql database or something. It must return the data from an XML file or something because the folder where the page will be, will be moved from one computer to another, and will not be used on the Internet. I do not know how to read data from an XML file, or what other option would there be? 10x!

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center



Recent Articles