469,328 Members | 1,251 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,328 developers. It's quick & easy.

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 1991
"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
1 post views Thread by CARIGAR | last post: by
reply views Thread by zhoujie | last post: by
reply views Thread by suresh191 | last post: by
reply views Thread by Purva khokhar | last post: by
reply views Thread by haryvincent176 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.