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

HomeHomeUsing DNN Platf...Using DNN Platf...Skins, Themes, ...Skins, Themes, ...JQuery breaks SolpartMenu DNNNav in Dnn 4.8.4JQuery breaks SolpartMenu DNNNav in Dnn 4.8.4
Previous
 
Next
New Post
7/25/2008 9:43 AM
 

Hello

I'm using JQuery (1.2.6) on a skin. Everything went fine until I upgrade to Dnn 4.8.4 and pass the SOLPartMenu to DNNNav control. The DNNNav menu works just fine but when I declare JQuery, the menu breaks. It seems that JQuery works on some function used by DNNNav but I'm not able to find what's happening exactly. IE just reports this error, which is pretty generic :

"this.container.parentNode" is null or not an object.

To reproduce this bug, simply add the JQuery code to any skin of DNNBlue for example.

< script type="text/javascript" language="javascript" src="http://code.jquery.com/jquery-latest.js" >< / script >

JQuery is actually being used on a critical project, we just can't don't use it. So, if someone found a way to remedy, I would be very gratefull.

Actually, we can't use JQuery any version with latest release of Dotnetnuke.

Cheers,

S.F.


The French Language pack for fr-FR is available at www.dnn-fr.org
 
New Post
7/25/2008 12:07 PM
 

Sebastien,

Check out this jQuery document - http://docs.jquery.com/Using_jQuery_with_Other_Libraries - it's the miracle worker in this case :)

*edit* here is an example of how we handle this in one of our modules:

       /// <summary>
        /// Registers the client script includes for this module.
        /// </summary>
        protected void RegisterScripts()
        {
            ScriptManager.RegisterClientScriptResource(this, typeof(ModuleBase), JQueryResourcePath);
            ScriptManager.RegisterClientScriptResource(this, typeof(ModuleBase), DashboardScriptResourcePath);
            ScriptManager.RegisterStartupScript(this, typeof(ModuleBase), "jQueryNoConflict", "jQuery.noConflict()", true);
        }

Take care,

Ian


Software Engineer
Co-Founder, dnnGallery
Stack Overflow: Ian Robinson
Twitter: @irobinson
Linked In: Ian Robinson
 
New Post
7/27/2008 3:13 PM
 

Hello Ian,

Thanks for your answer, the jQuery.noConflict make it hot.

That's important to say that the conflict is an effect of the common use of the $ object in jQuery and the new dnnControls. When you use the jQuery.noConflict mode, jQuery changes his master sign from $ to jQuery (by default but you can surcharge the noConflict method to pass any name). As effect, you have to transform your plugins code to reflect this change.

For example :
$("body").addClass('DnnBody');
becomes
jQuery("body").addClass('DnnBody');

Thank you for your help Ian, let me know if I can do anything for you.

Cheers,

S.F.

 


The French Language pack for fr-FR is available at www.dnn-fr.org
 
New Post
7/27/2008 3:28 PM
 

Hey Sebastien,

You're welcome! Glad that could clear things up for you - I was having the same issue with two modules I was building and had started using jQuery instead of $ from the beginning, but had never stated that jQuery should use noConflict! It took awhile for me to realize that I was missing that piece! This is an important note because jQuery can be used for a lot of great things in web-development and will really add value to third party modules in the DNN world...

Take care,

Ian


Software Engineer
Co-Founder, dnnGallery
Stack Overflow: Ian Robinson
Twitter: @irobinson
Linked In: Ian Robinson
 
New Post
7/28/2008 7:59 AM
 

jQuery is very usefull when end user experience comes at the very beginning of the project.

I'm experiencing another issue using jQuery. The JIT debugger is reporting an error. This appears on all developpers computers when I declare the jQuery. Error is reported as following in the Windows Event Viewer :

" An unhandled exception ('Launch for user') occurred in w3wp.exe [PID]. Just-In-Time debugging this exception failed with the following error: Debugger could not be started because no user is logged on. "

Are you experiencing the same issue ?

I may desactivate the JIT Debugger in all computers, but this isn't really a solution. Is someone understanding what's happening here ? Any way to remedy ?

 

Cheers,

 

S.F.


The French Language pack for fr-FR is available at www.dnn-fr.org
 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Skins, Themes, ...Skins, Themes, ...JQuery breaks SolpartMenu DNNNav in Dnn 4.8.4JQuery breaks SolpartMenu DNNNav in Dnn 4.8.4


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