This topic is locked

javascript functions

1/14/2009 11:23:50 AM
ASPRunnerPro General questions
S
srikanth author

hi....i use asp runner 6.0 build 766 and am facing sme problems in calling more than one javascript functions on the add page......
i have 4 fields in the table (Message,Templates,Charz,Count)

Templates field is a drop down field,Message is a textarea,Charz is a text area,Count is a text field
i use this piece of code on the add page html mode,to get the selected value from templates to message,its working perfectly.

[codebox]<script language=javascript>

document.forms.editform.value_Message.onchange=function()

{

document.forms.editform.value_Charz.value = document.forms.editform.value_Message.value;

}

</SCRIPT>[/codebox]

but i want is on evry keyup,keypress,keydown in the Charz field it should call a function...

pls can u tel me how i can add 2 or more functions on the add page html mode????????

J
Jane 1/15/2009

Hi,
here is a sample:

<script language=javascript>

var x = document.forms.editform.value_Message;

x.onchange=x.onkeyup=function()

{

document.forms.editform.value_Charz.value = document.forms.editform.value_Message.value;

}

</script>

S
srikanth author 1/15/2009

thankx work perfectly!!!!!!!!!! <img src='https://asprunner.com/forums/file.php?topicimage=1&fieldname=reply&id=36845&image=1&table=forumreplies' class='bbc_emoticon' alt=':lol:' /> silly me