Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Web Programming > JavaScript > Javascript How-To
Javascript How-To Ask your "How do I do this with Javascript?" questions here.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Javascript How-To section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
Old December 7th, 2009, 02:56 AM
Registered User
Join Date: Dec 2009
Posts: 5
Thanks: 2
Thanked 0 Times in 0 Posts
Default whether we can invoke javascript in between C program

My problem is dat i m unable to invoke javascript in between c program.
is it possible.
thing i m doin is i have to take input form the user through html and append that input to a file using <input type=button>
plz tell me How????
Old December 8th, 2009, 11:43 AM
Wrox Author
Join Date: Oct 2005
Posts: 4,104
Thanks: 1
Thanked 64 Times in 64 Posts
Send a message via AIM to dparsons

Not sure what you are asking here. Are you saying that you have an HTML Form that accepts some sort of user input and that, on button click, you need to append this data to a file on the server? Also, by 'C', do you actually mean C or C#? If that is the case the answer is no, JavaScript can not do that. The best you can hope to accomplish is to create an XMLHTTP object and make an AJAX style request to some page that has the ability to write to the file system on the server.

Doug Parsons
Wrox online library: Wrox Books 24 x 7
Did someone here help you? Click on their post!
"Easy is the path to wisdom for those not blinded by themselves."
The Following User Says Thank You to dparsons For This Useful Post:
himmat (December 8th, 2009)
Old December 9th, 2009, 12:04 AM
Registered User
Join Date: Dec 2009
Posts: 5
Thanks: 2
Thanked 0 Times in 0 Posts

What I am doing is that i am writing cgi in c, i have to take input 4rm the user and as soon as he submits the data should append to the specified location.
whether javascript will work in this case... if not what u can suggest me????
thankx in advance..
Old December 9th, 2009, 04:40 AM
joefawcett's Avatar
Wrox Author
Join Date: Jun 2003
Posts: 3,074
Thanks: 1
Thanked 38 Times in 37 Posts

Once the processing stage reaches the CGI program the time for JavaScript (presumably you mean client-side script) is long gone. The form's data will be available to the CGI program.
If this doesn't make sense then show a step-by-step breakdown of your requirements.
The Following User Says Thank You to joefawcett For This Useful Post:
himmat (December 9th, 2009)

Similar Threads
Thread Thread Starter Forum Replies Last Post
How to invoke Java calss with XSLT mlohokare XSLT 1 November 27th, 2009 10:25 AM
I can't invoke an action method via href Gabor66 BOOK: ASP.NET MVC Website Programming Problem Design Solution ISBN: 9780470410950 1 November 12th, 2009 11:37 AM
invoke .exe from webservice on server Mk_CSharp .NET Web Services 3 January 17th, 2005 08:10 AM
invoke Outlook New Message Window Monica General .NET 2 September 16th, 2004 04:48 AM
How can I invoke an .rtf file with VB? aster Pro VB 6 3 February 13th, 2004 11:56 AM

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.