How does this online pricing calculator work?

I’ve been reading all the posts dealing with adding calculators to webpage in Freeway. It seems like javascript makes sense for providing pricing feedback to web visitors. I even found an example of someone already doing what I have in mind.

But when I view the code, I can’t see any javascript calculations going on. So, how does this online pricing calculator work?

Any thoughts on how I can create something like this in Freeway?

Thanks

Craig at DPIX


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

This is where all the heavy lifting is being done http://www.adgprinting.com/pricing.js

David


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

Dave,

Wow, that’s pretty cool! I went back and looked at the code again, and at the very bottom of the page code I see:

I’m a real novice as javascript, but I thought .js got loaded in the head? Is this .js code being loaded on page load, or is it working some other way?

Thanks,
Craig


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

The preferred method is now placing scripts before the closing tag to help speed up page load. There are instances where it may need to be included in the tag such as when the DOM needs to be manipulated prior to the entire page loading. It depends on what needs to be done.

Todd

I’m a real novice as javascript, but I thought .js got loaded in the head?


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options