writing to external javascript file

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Andy Levy

    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="externa lFile.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>


  • Lasse Reichstein Nielsen

    #2
    Re: writing to external javascript file

    "Andy Levy" <andy_levy@hotm ail.com> writes:
    [color=blue]
    > 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.[/color]

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

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

    Comment

    Working...