HomeHomeUsing DotNetNuk...Using DotNetNuk...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 6: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 9:07 AM
 

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 12: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 12: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 4: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 DotNetNuk...Using DotNetNuk...Skins, Themes, ...Skins, Themes, ...JQuery breaks SolpartMenu DNNNav in Dnn 4.8.4JQuery breaks SolpartMenu DNNNav in Dnn 4.8.4


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.

Attend A Webinar
Free Demo Site
Download DotNetNuke Professional Edition Trial
Have Someone Contact Me
Have Someone Contact Me

Like Us on Facebook Join our Network on LinkedIn Follow DNN Corporate on Twitter Follow DNN on Twitter

Advertisers

DotNetNuke Scoop!

Sponsors

DotNetNuke Corporation

DotNetNuke Corp. is the steward of the DotNetNuke open source project, the most widely adopted Web Content Management Platform for building web sites and web applications on Microsoft. Organizations use DotNetNuke to quickly develop and deploy interactive and dynamic web sites, intranets, extranets and web applications. The DotNetNuke platform is available in a free Community and subscription-based Professional and Enterprise Editions with an Elite Support option. DotNetNuke Corp. also operates the DotNetNuke Store where users purchase third party apps for the platform.