By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
425,665 Members | 1,761 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 425,665 IT Pros & Developers. It's quick & easy.

writing to external javascript file

P: n/a
Hi

I have an external .js file to my webpaage. Can i change the value of these
variables from my htm page, so that they are changed for good.

ie - i know this wont work, but it is an example.

externalFile.js
-------------
var alpha = "This is some text"
frontend.htm
--------------
<form name="changer" method="get" action="externalFile.js">
<input name="alpha" type="text" id="alpha" value="this is some new text that
will completely replace the old text in the file">
</form>
Jul 20 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
"Andy Levy" <an*******@hotmail.com> writes:
I have an external .js file to my webpaage. Can i change the value of these
variables from my htm page, so that they are changed for good.


That requires server-side scripting (e.g., PHP or ASP).

/L
--
Lasse Reichstein Nielsen - lr*@hotpop.com
Art D'HTML: <URL:http://www.infimum.dk/HTML/randomArtSplit.html>
'Faith without judgement merely degrades the spirit divine.'
Jul 20 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.