I have a drop down list and some styles applied to it from two js files, included in head like:
<script type="text/javascript" src="js/functions.js"></script>
<script type="text/javascript" src="js/jquery.jqtransform.js"></script>
All it's working great when the page is loading for the first time.
But when i do an ajax request on this page the styles applied before, are lost, so i have included the js src files from the code behing like:
protected void Page_PreRender(object sender, EventArgs e)
{
loadJs();
}
private void loadJs()
{
ScriptManager.RegisterClientScriptInclude(this,
typeof(Page),
"AlertScript",
ResolveClientUrl("~/Site/js/jquery.jqtransform.js"));
ScriptManager.RegisterClientScriptInclude(this,
typeof(Page),
"AlertScript2",
ResolveClientUrl("~/Site/js/functions.js"));
}
But...it's still not working although i see in the broswer - view source that the js files are loaded correctly in the body...
Do you have any suggestion?
Thanks in advance.