Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeArchived Discus...Archived Discus...Developing Under Previous Versions of .NETDeveloping Under Previous Versions of .NETASP.Net 2.0ASP.Net 2.0Problem including jQuery packageProblem including jQuery package
Previous
 
Next
New Post
3/5/2008 7:05 AM
 

Good Morning,

I'm developing a new module that needs jQuery package.. The module do what is supose to do but the Navigation Bar apperars all empty...

i'm including the package in my .ascx file on the top like this:

<script type="text/javascript" language="JavaScript" src="/DotNetNuke/Website/DesktopModules/folder/jquery-1.2.3.pack.js"></

 script >

can anyone help me plz...

Thanks in advance

 
New Post
3/6/2008 1:02 AM
 

even I had the same problem did you tried replacing '$' with  'jQuery',  that is something core team should look into.


Cheers
 
New Post
3/6/2008 9:49 AM
 

I thought that some modules were using this package.....

how am i supose to solve this  i really need it...

thanks for the replay.

 
New Post
3/11/2008 2:51 PM
 

Here is what I did to resolve it...

you can include your static link to the javascript if you like, just follow it with another script tag as such (mind the spaces, have to do that so the forum allows it)

<s cript type="text/javascript">jQuery.noConflict();</sc ript>

This will force jQuery to return the $ back to the "original" library and you will need to use a direct jQuery reference from here on out.

Alternatively, set it through code (again, mind the weird spaces I've inserted so the forum allows it):

protected override void OnPreRender(EventArgs e)
{
 if (!Page.ClientScript.IsClientScriptIncludeRegistered("jQueryScripts"))
Page.ClientScript.RegisterClientScriptInclude("jQueryScripts", "http://localhost/dnndev/desktopmodules/someModule/includes/jquery-1.2.3.min.js");

 if (!Page.ClientScript.IsClientScriptBlockRegistered("jQueryConflictMode"))
 {
StringBuilder script = new StringBuilder();
script.AppendLine("<s cript type=\"text/javascript\" language=\"javascript\">");
script.AppendLine("jQuery.noConflict();");
script.Append("</sc ript>");

Page.ClientScript.RegisterClientScriptBlock(this.GetType(), "jQueryConflictMode", script.ToString());
 }
}


-- Jon Seeley
DotNetNuke Modules
Custom DotNetNuke and .NET Development
http://www.seeleyware.com
 
New Post
3/11/2008 5:49 PM
 

this is a solution but not the best one.  what if another module, skin, container, etc also wants to register jQuery -- you'll run into problems.

i've submitted a core enhancement to Gemini.


 
Previous
 
Next
HomeHomeArchived Discus...Archived Discus...Developing Under Previous Versions of .NETDeveloping Under Previous Versions of .NETASP.Net 2.0ASP.Net 2.0Problem including jQuery packageProblem including jQuery package


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, 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 DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out