We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 32380
    • 137 Posts
    Does anyone know the best way I can do the following?

    My client sells upvc windows, and would like visitors to the site to be able to do a quote online.
    The window prices are available in matrix format and are available in excel format, so you put a width and a height in and it gives you a price, then there are many other variables like colour and glass.
    I have made a basic JavaScript program that can produce a price but its doesn’t use a matrix but a m2 formula (but its doesn’t work close enough to the matrix)
    Any ideas?

      • 7804
      • 80 Posts
      If you are looking for a good grid/table based on a javascript library, I have seen and heard good things from ext js:

      http://extjs.com/

      although I have never personally used it.
        • 28042 ☆ A M B ☆
        • 24,524 Posts
        I’ve used ext to make a data grid, although the data was simpler, just the results of a database query (filtered by the logged-in user’s username, and optionally by a search term). If you’ve got your data, then it shouldn’t be too difficult to load it into a data grid, whether ext or mootools.
          Studying MODX in the desert - http://sottwell.com
          Tips and Tricks from the MODX Forums and Slack Channels - http://modxcookbook.com
          Join the Slack Community - http://modx.org
          • 32380
          • 137 Posts
          I will have a look at Ext, looks good thanks for your advise, may be a task too big!
            • 28042 ☆ A M B ☆
            • 24,524 Posts
            Just a note, as far as I can tell ext is best used for interactive web applications. For simple display of data, jquery or mootools might be a better choice.
              Studying MODX in the desert - http://sottwell.com
              Tips and Tricks from the MODX Forums and Slack Channels - http://modxcookbook.com
              Join the Slack Community - http://modx.org