Ajax + passing values to javascript.

mike55

Contributor
Joined
Mar 26, 2004
Messages
727
Location
Ireland
I have a javascript file which stores a number of functions. One of these functions is:
Code:
function limitText(limitField, limitCount, msgCount){
//do something.
}

The values are passed to the function using the following:
Code:
<textarea id="txtMessage" runat="server" language="javascript" name="txtMessage"
                                        onkeyup="limitText(this.form.txtMessage,this.form.hCount,this.form.MsgNo);"
                                        style="font-size: 10px; width: 230px; font-family: verdana; height: 88px"></textarea>

Now I have the controls txtMEssage, hCount, and MsgNo all inside an ajax update panel. My problem is that some of the parameters are passed as undefined. must I changce the way I pass these since they are inside the ajax control?

Mike55.
 
Back
Top