ASPX templates
Version 7.x > ASPX templates > Problem with register Jquery PlugIn View modes: 
User avatar
Member
Member
Mistarihi-windowslive - 1/12/2013 4:57:59 AM
   
Problem with register Jquery PlugIn
I create aspx template
and i will use javascript on the pages of it.
when i can attached it? (and also theirs JQuery library file)
the script not work when i added it in the head of template using kentico..

if theres problem with jquery + conflict ?
how to solve it;

User avatar
Kentico Customer Success
Kentico Customer Success
kentico_martind2 - 1/12/2013 5:11:33 AM
   
RE:Problem with register Jquery PlugIn
Hello,

I hope this Knowledge base article will answer your question and also provide you with the solution: How to register and use the native Kentico jQuery.

Best regards,
Martin Danko

User avatar
Member
Member
Mistarihi-windowslive - 1/12/2013 5:37:56 AM
   
RE:Problem with register Jquery PlugIn
I put the
CMS.GlobalHelper.ScriptHelper.RegisterJQuery(this.Page);

in the master page file
and nothing happen

User avatar
Kentico Customer Success
Kentico Customer Success
kentico_martind2 - 1/15/2013 5:36:31 AM
   
RE:Problem with register Jquery PlugIn
Hi,

It's not enough, please copy and paste the exact code:
<script runat="server">
protected void Page_Load(object sender, EventArgs e)
{
CMS.GlobalHelper.ScriptHelper.RegisterJQuery(this.Page);
}
</script>

Yes, I can confirm that it's working... and also for many other users.

Best regards,
Martin Danko