Hi Peterg,
first of all you need to be aware that MonoX is referencing the jQuery by default (It uses the 1.3.2 version and this can be changed in the web.config) so if you are referencing the jQuery by your self you may encounter some problems (I'd suggest that you leave this to MonoX).
Second thing is that MonoX has a built-in auto expand text box that can be used (although it isn't exactly the same as the one you are using). You can find an example of the auto expand text box on the MonoX demo's Site wall and so you can take a look at the code below how to use it (if it suites you):
<
asp:TextBox
runat
=
"server"
ID
=
"txtInput"
CssClass
=
"jq_expandingTextBox jq_swap_value"
TextMode
=
"MultiLine"
AutoPostBack
=
"false"
></
asp:TextBox
>
Code behind
protected
void
Page_Load(
object
sender, EventArgs e)
{
...
string
expandScript = @"$(document).ready(function() {
$.registerAutoGrow(
""
jq_expandingTextBox
""
);
});";
JavascriptUtility.RegisterStartupScript(
this
,
this
.GetType(),
"expandScript"
, expandScript,
true
);
...
}
protected
void
Page_PreRender(
object
sender, EventArgs e)
{
...
JavascriptUtility.RegisterClientScriptInclude(
this
, Paths.MonoX.Scripts.jquery_autogrow_js);
...
}
And now I'll try to help you with your scenario, to load your scripts properly (in every scenario e.g. AJAX etc.) please use the utility class that we have in MonoX called "JavascriptUtility" (You have a sample above). After you have registered your scripts you need to attach the proper events to your expand element and you can do this with jQuery "$(document).ready(function() {});" function. As for exact code that needs to be put inside the document ready, it depends upon the library you are using and it would be best if you try to find a sample on their web site.
I hope that this helps you and that you can fix your jQuery issue.
Regads