Click to See Complete Forum and Search --> : Simple Customer Details form to a new window


Matty12345
10-18-2003, 11:54 AM
Hey :),

I am trying to locate a piece of javascript that can take customer detials (name, tel address etc) from a HTML form and then transfer the detials in to a new pop-up HTML formatted new window and a simple print this page button on the bottom. So a customer can then have a nicely formatted and printed document to post to me.

But I am finding it difficult to find a script that i can edit or make do what i want it to to do :confused:

Any help appriecated.

Just one spec' would that for it to be just javascript, not version 1.2 or newer, as I would like for it to work for as many browsers as possible.

Thanks in advance

AdamGundry
10-18-2003, 02:35 PM
A much better idea would be to comply with accessibility standards and legislation by avoiding the popup window and using a server-side language such as PHP, or whatever you have available. It can be done in Javascript, but (especially if for a business) could be construed as illegal under US and UK law, if not the laws of other countries.

Adam

Matty12345
10-19-2003, 04:51 AM
Hi Adam,

I'm not particuly bothered about anyone outside the UK, as it's a UK only website (a little harsh but true)

Perhaps a little bit of CGI would be better...

Needs some more thought me tinks.

Matt

AdamGundry
10-19-2003, 02:46 PM
Ok, UK law. Creating a commercial website which is not accesible to the disabled could be a violation of the Disability Discrimination Act 1995, and leaves you liable to prosecution - see this BBC article (http://news.bbc.co.uk/1/hi/england/norfolk/3117050.stm).

CGI or similar is a much better idea - you can get more accessible, professional looking results fairly easily.

Adam