0

Hi I am new to dotnetnuke. Javascripts are not working in ascx edit page? here i Have provided full path to javascript . But its not working correctly in ascx page.

  Page.ClientScript.RegisterClientScriptInclude(this.GetType(), "Jcrop", (this.TemplateSourceDirectory + "/Scripts/jquery.Jcrop.js"));
  Page.ClientScript.RegisterClientScriptInclude(this.GetType(), "jquery.Jcrop.min", (this.TemplateSourceDirectory + "/Scripts/jquery.Jcrop.min.js"));
  Page.ClientScript.RegisterClientScriptInclude(this.GetType(), "jquery.min", (this.TemplateSourceDirectory + "/Scripts/jquery.min.js"));
  Page.ClientScript.RegisterClientScriptInclude(this.GetType(), "jquery.color", (this.TemplateSourceDirectory + "/Scripts/jquery.color.js"));
David Sykes
  • 48,469
  • 17
  • 71
  • 80
sudhakar m
  • 13
  • 3
  • 8

2 Answers2

0

DotNetNuke own javascript libraries conflict with jquery, read here to see some solutions http://www.dotnetnuke.com/Resources/Blogs/EntryId/2268/DotNetNuke-Tips-and-Tricks-11-Using-jQuery-in-DotNetNuke.aspx

ryudice
  • 36,476
  • 32
  • 115
  • 163
-1

You might like to read this blog article and use the supplied code. It takes the guesswork out of including jQuery libraries into your DotNetNuke modules.

Implementing jQuery, jQuery UI and Javascript libraries across DotNetNuke Versions

Bruce Chapman
  • 1,227
  • 3
  • 12
  • 19