By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
458,083 Members | 1,274 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 458,083 IT Pros & Developers. It's quick & easy.

Converter

P: n/a
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
Share this Question
Share on Google+
1 Reply


P: n/a
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.