This could be coded in JavaScript directly, no need for duplicate pages. If you have all of your different locations identified somehow, you could create a single instance of the popup on the page, with the date pickers and whatnot, and then by coding each link differently (to include the key to that identifying structure) you could pop up that single template with the unique information populated into it.
To start, put together a plain text document containing all of the variations on each of your 150 items. Put a unique key on each line, and follow with the variations, sort of like this:
1: {name: 'Foo', price: 100, delivery_time: '2 weeks'},
2: {name: 'Bar', price: 120, delivery_time: '1 day'}
Things to note here: I am using a format called JSON (JavaScript Object Notation), and it has some rules you need to follow. The part outside of the curly braces is called the key, and they must be unique. Each line except the last must be followed with a comma. The part inside the curly braces is a set of tuples (key/value pairs). Depending on the type of value you are storing, you either need to quote the value (strings of characters – text) or not (numbers or boolean values like true and false). The keys must be a single word or number (well, they can have spaces, but then you also have to quote them).
You may find that once you go through this process for a couple of products, you can automate the process with a good text editor, doing find and replace. I recommend TextWrangler (the free little brother to BBEdit) from BareBones Software for this and any other code work.
Once you have your data structure figured out, use Gist or Pastie to post it here, and I can advise you on the other parts. This is a very approachable problem, very well suited to teaching you how to fish…
Walter
- https://gist.github.com
- http://pastie.org
On Feb 11, 2013, at 8:49 AM, David Wise wrote:
I am trying to create a new small window pop up, so a client can click on a check availability button, and a new small window will open that will have the name of the item that button relates to (i.e what it is that is available), then an e-mail text field, name text field, date boxes with the calendar action, so that they can select from date and date to., then press send to e-mail to our staff, who will reply
We will have around 150 items, so each box heading will be as per the item it relates to, I do not really want to produce 150 extra pages.
Question is, which action or way should I look to do this
freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options
freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options