Small width layout Medium width layout Maximum width layout Small text Medium text Large text
     Search
Downloads Downloads Directory Directory Forums Forums Forge Forge Blogs Blogs        Marketplace Marketplace Careers Program Careers
Community › Forums Register  |  

AspDotNetStoreFront
  Ads  
Iron Speed Designer is a software development tool for building database, reporting, and forms applications for .NET without hand-coding.
 


  Sponsors  

Meet Our Sponsors

Salaro -- Skins and more
OnyakTech
CrystalTech Web Hosting™
Webhost4life, specialists in DNN hosting
Mad Development is a full service interactive agency focusing on the merge of design, technology, e-commerce, and affiliate marketing by providing total website solutions.
AspDotNetStoreFront - E-Commerce by Design - The Leading ASP.NET shopping cart platform for developers!
 


DotNetNuke Forums
 
  Forum  General DotNetN...  Configure It! (...  how do i go about the Jquery in DotnetNuke
Previous Previous
 
Next Next
New Post 8/8/2008 4:22 AM
Unresolved
User is offline Sandy
33 posts
10th Ranked


how do i go about the Jquery in DotnetNuke 

Can any one tell me how i should go about the JQuery in DotNetNuke??


Sandeep Sachan
 
New Post 8/8/2008 10:10 AM
User is offline Brian Dukes
486 posts
www.engagesoftware.com
8th Ranked


Re: how do i go about the Jquery in DotnetNuke 

We are using the following code to 1) reference the jQuery library, 2) reference our script file (which is compiled into the assembly as an embedded resource) and 3) call jQuery.noConflict once the page has loaded, to remove any issues between the ClientAPI and jQuery definitions of $.

   1:  Page.ClientScript.RegisterClientScriptInclude(GetType(ModuleBase), "jquery 1.2.6", "http://ajax.googleapis.com/ajax/libs/jquery/1.2.6/jquery.min.js")
   2:  Page.ClientScript.RegisterClientScriptResource(GetType(ModuleBase), "Engage.Dnn.ModuleName.JavaScript.ScriptName.js")
   3:  Page.ClientScript.RegisterStartupScript(GetType(ModuleBase), "jQueryNoConflict", "jQuery(document).ready(function(){jQuery.noConflict();});", true)

Hope it helps,


Brian Dukes
Engage Software
St. Louis, MO
314.966.4000

The leading provider of DotNetNuke support, training and custom module development.
 
New Post 8/8/2008 11:41 AM
User is offline Leazon
271 posts
9th Ranked


Re: how do i go about the Jquery in DotnetNuke 

For those that might be less technically inclined there is also a module on snowcovered.com called Script Injector.  It seems to be fairly full featured with many options on script location within a page.

 
New Post 10/14/2008 1:42 PM
User is offline doobster
1 posts
10th Ranked


Re: how do i go about the Jquery in DotnetNuke 

can you go into more detail about step 2?

basically i'm stuck with i have a page where i want to do a jquery call that will call a dnn module that i made to refresh the data dynamically and i don't know how to call that module without creating a page, but then that page has a bunch of extra DNN stuff returned with the html of the ajax call.

thanks.

 Brian Dukes wrote
 

We are using the following code to 1) reference the jQuery library, 2) reference our script file (which is compiled into the assembly as an embedded resource) and 3) call jQuery.noConflict once the page has loaded, to remove any issues between the ClientAPI and jQuery definitions of $.

   1:  Page.ClientScript.RegisterClientScriptInclude(GetType(ModuleBase), "jquery 1.2.6", "http://ajax.googleapis.com/ajax/libs/jquery/1.2.6/jquery.min.js")
   2:  Page.ClientScript.RegisterClientScriptResource(GetType(ModuleBase), "Engage.Dnn.ModuleName.JavaScript.ScriptName.js")
   3:  Page.ClientScript.RegisterStartupScript(GetType(ModuleBase), "jQueryNoConflict", "jQuery(document).ready(function(){jQuery.noConflict();});", true)

Hope it helps,

 
New Post 10/14/2008 2:54 PM
User is offline Brian Dukes
486 posts
www.engagesoftware.com
8th Ranked


Re: how do i go about the Jquery in DotnetNuke 

For step 2, you have a JavaScript file with functions specific to your module.  Add that to your project in Visual Studio, then view the properties for that file (right click it in the solution explorer and pick Properties).  Change the Build Action item to Embedded Resource.  Note that the name used above is for a file name ScriptName.js in a folder named JavaScript, for a module with a default namespace of Engage.Dnn.ModuleName.  You will also need to register it as a WebResource in order to access it from a web address, so add [assembly: WebResource("Engage.Dnn.ModuleName.JavaScript.ScriptName.js", "text/javascript")].

For what you want to do, I would suggest adding a blank .aspx page to your module, and call that, rather than trying to use a DNN page.

Hope that helps,


Brian Dukes
Engage Software
St. Louis, MO
314.966.4000

The leading provider of DotNetNuke support, training and custom module development.
 
Previous Previous
 
Next Next
  Forum  General DotNetN...  Configure It! (...  how do i go about the Jquery in DotnetNuke
 


Forum Policy

These Discussion Forums are dedicated to the discussion of the DotNetNuke Web Application Framework.

For the benefit of the community and to protect the integrity of the project, please observe the following posting guidelines:

1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DotNetNuke.
2. Discussion or promotion of DotNetNuke product releases under a different brand name are strictly prohibited.
3. No Flaming or Trolling.
4. No Profanity, Racism, or Prejudice.
5. Site Moderators have the final word on approving/removing a thread or post or comment.
6. English language posting only, please.

 


R2i - Delivering Serious DNN Services & Solutions
Award Winning Design, Skin construction, Custom Modules and Consulting Services for the Enterprise organization. R2i is the DNN:Map module Project Lead and one of the largest DNN service providers with offices in New York City, Virginia and Baltimore.
www.bi4ce.com
"SalarO" Skinning Graphic Design Branding Services
SalarO develops packaged & custom skins for your DNN at prices you can afford. SalarO is also developing Module development, Hosting, Branding/Logo design as well as Content Transfer Services to complement the core skinning solutions.
www.salaro.com
Data Springs Inc. - Module Development
Data Springs is a leader in the DNN community offering high quality modules, custom module development, enhancements to the DNN core product and overall DNN support.
www.datasprings.com

DotNetNuke Corporation   Terms Of Use  Privacy Statement
DotNetNuke®, DNN®, and the DotNetNuke logo are trademarks of DotNetNuke Corporation
Hosted by MaximumASP