apache uses javascript?

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

    apache uses javascript?

    XP pro machine
    apache 2.0.48
    php 4.3.6

    I would like to execute javascript on my apache http server
    example:

    <SCRIPT language="javas cript">

    function doit(){
    document.write( "doit");
    }
    doit();


    function showscreen(){
    alert("hello world");
    document.write( "Screen Data" + "<hr>" + "<br>");
    for (value in window.screen){
    document.write( "<li>" value + "=" + window.screen[value] + "</li>");
    }
    alert("hello world");
    }
    showscreen();
    </SCRIPT>

    Curently I don't think i have the correct mod. However i'm wondering
    two questions.
    1)Should i take the time to install the mod and is it going to work
    correctly?
    2)or should i just forget java and focus on using perl and be done so
    it is less headache.

    Thank you ahead of time for any advice
  • Noozer

    #2
    Re: apache uses javascript?

    ???

    Javascript runs in the BROWSER on the CLIENT machine. It does not run on the
    server at all.. (unless you specify specifically to run on the server)

    BTW Java is NOT the same as Javascript.

    "brianj" <brianj7675@yah oo.com> wrote in message
    news:a8865e74.0 404271317.3f908 a30@posting.goo gle.com...[color=blue]
    > XP pro machine
    > apache 2.0.48
    > php 4.3.6
    >
    > I would like to execute javascript on my apache http server
    > example:
    >
    > <SCRIPT language="javas cript">
    >
    > function doit(){
    > document.write( "doit");
    > }
    > doit();
    >
    >
    > function showscreen(){
    > alert("hello world");
    > document.write( "Screen Data" + "<hr>" + "<br>");
    > for (value in window.screen){
    > document.write( "<li>" value + "=" + window.screen[value] + "</li>");
    > }
    > alert("hello world");
    > }
    > showscreen();
    > </SCRIPT>
    >
    > Curently I don't think i have the correct mod. However i'm wondering
    > two questions.
    > 1)Should i take the time to install the mod and is it going to work
    > correctly?
    > 2)or should i just forget java and focus on using perl and be done so
    > it is less headache.
    >
    > Thank you ahead of time for any advice[/color]


    Comment

    Working...