Can I do this with JavaScript?

blelisa's picture

They have: 31 posts

Joined: Aug 2003

I am looking to write a program that will ask my visitor for some specific input. Than when the visitor inputs the info, it will take the input and write it to a .doc and call another program on my server to come get the .doc and use the information. Is this possible? Thanks!

Renegade's picture

He has: 3,022 posts

Joined: Oct 2002

I don't think that it is possible, but it looks to me that you will need to use a serverside language such as PHP along with your Javascript.

Suzanne's picture

She has: 5,507 posts

Joined: Feb 2000

JavaScript is a client-side technology, so it can't write to a server. However, it can write a cookie, that your other program could read?

openmind's picture

He has: 945 posts

Joined: Aug 2001

Using JavaScript would be a messy and complex way to do this. Go server side and use PHP or ColdFusion...

He has: 1,758 posts

Joined: Jul 2002

I don't know about writing doc's on the fly using PHP but writing PDF's is a cinch with PDFlib!

Want to join the discussion? Create an account or log in if you already have one. Joining is fast, free and painless! We’ll even whisk you back here when you’ve finished.