Web Hosting Talk







View Full Version : How does this website work? .CFM?


killrwhale
08-13-2009, 05:01 PM
Hello,

I am wondering how this website populates its selections for what the user selects:

http://www.justseatcovers.com/Catalog/index.cfm?categoryID=9

What is .cfm? And is this easy to create?

Did the creator have to manually input each option for each year/type to match with an inventory number?

Thank You

GordonH
08-13-2009, 05:05 PM
.cfm is coldfusion:
http://en.wikipedia.org/wiki/Coldfusion

I have never used it but it has a lot of built in functions. At one time it was seen as a potential future for web development but it has never really broken through to mass popularity. It is used by some businesses though as you have seen.

killrwhale
08-13-2009, 05:09 PM
.cfm is coldfusion:
http://en.wikipedia.org/wiki/Coldfusion

I have never used it but it has a lot of built in functions. At one time it was seen as a potential future for web development but it has never really broken through to mass popularity. It is used by some businesses though as you have seen.

Ah, where is it pulling the references from?

GordonH
08-13-2009, 05:11 PM
Surprisingly it seems to be populating it from a javascript function!

HostYourIdea
08-13-2009, 05:13 PM
Hello,

I am wondering how this website populates its selections for what the user selects:

http://www.justseatcovers.com/Catalog/index.cfm?categoryID=9

What is .cfm? And is this easy to create?

Here is half the answer. CFM is the default extension for projects built in Cold Fusion MX7.

http://livedocs.adobe.com/coldfusion/7/htmldocs/wwhelp/wwhimpl/common/html/wwhelp.htm?context=ColdFusion_Documentation&file=00001124.htm


--Michael

killrwhale
08-13-2009, 06:34 PM
Surprisingly it seems to be populating it from a javascript function!

Really? How do you know this? Can I see the javascript they use?

foobic
08-13-2009, 07:06 PM
The magic's done here:
<select onchange="form.submit();"...
Each time you change a selection the form is submitted to the server with the extra information. No doubt the server-side program then looks up the make / model etc. specified by the user in their database and presents more options or (finally) the product. The page is small enough and loads fast enough so you don't notice it, but it would have been cooler done with AJAX. ;)

Edit: To dig into how web pages work for yourself, get Firefox and install the Web Developer and Firebug plugins.

killrwhale
08-13-2009, 07:53 PM
The magic's done here:
<select onchange="form.submit();"...
Each time you change a selection the form is submitted to the server with the extra information. No doubt the server-side program then looks up the make / model etc. specified by the user in their database and presents more options or (finally) the product. The page is small enough and loads fast enough so you don't notice it, but it would have been cooler done with AJAX. ;)

Edit: To dig into how web pages work for yourself, get Firefox and install the Web Developer and Firebug plugins.

Would this be difficult to have made for me?

kieransimkin
08-13-2009, 08:17 PM
Did the creator have to manually input each option for each year/type to match with an inventory number?



Probably - although they may have a nicely designed administration interface that makes it very quick to do this.

What you're looking at in ColdFusion could equally well be done in PHP, ASP.net or even Perl. Don't go on the hunt for a ColdFusion developer - they will be hard to come-by and probably expensive. Just find someone to do it for you in PHP.

foobic
08-13-2009, 08:22 PM
Would this be difficult to have made for me?The coding's not difficult, but the real question is: do you already have a database of car makes and models to work from?

ocwebguru
08-14-2009, 12:16 AM
I have seen websites sorta like http://www.mediamaxscript.com/

Some sites i have seen offer those type scripts with cars/makes/models/years etc.. all preloaded.

Sure a quick googlesearch will come up with somethin

GordonH
08-14-2009, 03:03 AM
I haven't got the time to take his script apart but I have done similar things with all the options in javascript arrays, so its entirely possible its done that way. If the values are in arrays then its quite easy to update changes to specification in one place.

killrwhale
08-17-2009, 02:42 PM
The coding's not difficult, but the real question is: do you already have a database of car makes and models to work from?

I would probably have an excel sheet with all the information, would I be able to import that?

Thanks

foobic
08-17-2009, 05:54 PM
Yes, if the information's in any consistent format you should be able to write an import script to handle it. I'd suggest getting the main program done first to finalize the database design, then write the import script.