471,616 Members | 1,543 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

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

Converter

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>


Feb 12 '06 #1
1 1719
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)
Feb 12 '06 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

5 posts views Thread by jorfei | last post: by
2 posts views Thread by TheMadHatter | last post: by
reply views Thread by Max Power | last post: by
4 posts views Thread by John | last post: by
12 posts views Thread by Tana | last post: by
10 posts views Thread by esha | last post: by
3 posts views Thread by John Dalberg | last post: by
reply views Thread by leo001 | 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.