471,881 Members | 1,353 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,881 software developers and data experts.

writing to external javascript file

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
1 2028
"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.

Similar topics

1 post views Thread by George Ziniewicz | last post: by
5 posts views Thread by kinne | last post: by
1 post views Thread by mb | last post: by
3 posts views Thread by RICHARD BROMBERG | last post: by
reply views Thread by YellowAndGreen | last post: by
reply views Thread by zermasroor | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.