Converter

Discussion in 'Javascript' started by Nikola, Feb 12, 2006.

  1. Nikola

    Nikola Guest

    Hellooo! Can someone help me please. I tipe this code and it don't work!!!
    Whyyyyyy.
    <html>
    <head>
    <title>Text object value</title>
    <SCRIPT LANGUAGE="JavaScript" TYPE="text/javascript">
    <!--
    function upperMe()
    {
    document.converter.ulaz.value =
    document.converter.izlaz.value.toUpperCase()
    }
    //-->
    </SCRIPT>
    </head>
    <body>
    Unesi mala slova koja se prevode u velika:<br>
    <form name="converter">
    <input type="Text" name="ulaz" value="primjer" onchange="upperMe()"><br>
    <input type="Text" name="izlaz" value="">
    </form>
    </body>
    </html>
    Nikola, Feb 12, 2006
    #1
    1. Advertising

  2. Nikola

    Evertjan. Guest

    Nikola wrote on 12 feb 2006 in comp.lang.javascript:

    > <html>
    > <head>
    > <title>Text object value</title>
    > <SCRIPT LANGUAGE="JavaScript" TYPE="text/javascript">


    do not use LANGUAGE="JavaScript"

    > <!--


    do not use <!--

    > function upperMe()
    > {
    > document.converter.ulaz.value =
    > document.converter.izlaz.value.toUpperCase()


    exchange ulaz and izlaz

    >}
    > //-->


    do not use //-->

    > </SCRIPT>
    > </head>
    > <body>
    > Unesi mala slova koja se prevode u velika:<br>
    > <form name="converter">
    > <input type="Text" name="ulaz" value="primjer" onchange="upperMe()">


    try onkeyup

    <br>
    > <input type="Text" name="izlaz" value="">
    > </form>
    > </body>
    > </html>
    >



    <SCRIPT TYPE="text/javascript">

    function upperBelow() {
    document.forms['converter'].elements['izlaz'].value =
    document.forms['converter'].elements['ulaz'].value.toUpperCase()
    }

    </SCRIPT>

    <form name="converter">
    <input type="Text" name="ulaz" value="primjer" onkeyup="upperBelow()">
    <br><input type="Text" name="izlaz" value="">
    </form>

    --
    Evertjan.
    The Netherlands.
    (Please change the x'es to dots in my emailaddress)
    Evertjan., Feb 12, 2006
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. M West
    Replies:
    1
    Views:
    2,387
  2. petrus bitbyter

    Re: RS422 to I2C Converter

    petrus bitbyter, Jun 28, 2003, in forum: VHDL
    Replies:
    0
    Views:
    2,687
    petrus bitbyter
    Jun 28, 2003
  3. Niv
    Replies:
    1
    Views:
    3,351
  4. nuessli

    integer BCD converter in VHDL

    nuessli, Jan 19, 2004, in forum: VHDL
    Replies:
    1
    Views:
    2,801
    Jeroen
    Jan 20, 2004
  5. buke2
    Replies:
    0
    Views:
    557
    buke2
    Aug 12, 2004
Loading...

Share This Page