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

HomeHomeOur CommunityOur CommunityGeneral Discuss...General Discuss...Using jQuery in DotNetNuke 4.9.0Using jQuery in DotNetNuke 4.9.0
Previous
 
Next
New Post
1/23/2009 2:36 PM
 

Is it possible to use Jquery in DNN 4.9.0? I fidured that it should but when I add a <script> tag to link to the jquery.js file the page loads up but then funky things happen to the menus, the control panel and the admin pages. Including the "update" link stops working in the admin page which is a real pain in the ass b/c then I can't take out my reference to the script without going into the database.

I know that jQuery is not officially supported in 4.9.0 but I wanted to make use of it in one small Text/HTML module and can't b/c of all of the trouble it causes. Just looking to see if there's an easy solution with upgrading.

 

 
New Post
1/23/2009 3:03 PM
 

I haven't tested it, but I'd say one of the only chances you have of getting jQuery to work before DNN5 would be jQuery.noConflict.

If 5.0.1 was released yet, I'd say upgrade and you won't look back... but that's clearly not the case...

 
New Post
1/23/2009 3:28 PM
 

Oliver Hine wrote

I haven't tested it, but I'd say one of the only chances you have of getting jQuery to work before DNN5 would be jQuery.noConflict.

If 5.0.1 was released yet, I'd say upgrade and you won't look back... but that's clearly not the case...

Yeah, the only way I've ever been able to get it to work was using jQuery.noConflict; some plugins don't play well with that because they weren't designed to work in no conflict mode, but overall I've had great success with it.  I just slapped together a really quick "No Right Click" module last night for use on a client's site, in fact, which uses jQuery.  You can see the module in action on his site (no content available yet because he hasn't given me the info) but right-click is disabled on images: http://www.muleequipped.com (I haven't tested in all browsers but the plugin I'm using says it doesn't work correctly in Opera).

 

 


-- Jon Seeley
DotNetNuke Modules
Custom DotNetNuke and .NET Development
http://www.seeleyware.com
 
New Post
1/23/2009 3:57 PM
 

I'm pretty sure that you can make it work in 4.9.0, but I think that the Text/HTML module might might not be the right place to use it.  If you're not using Users Online, then I would recommend upgradign to 4.9.1 because it does fix a security hole in 4.9.0.  Also, from the looks of Gemini, it looks like 5.0.1 might be just on the horizon, but I can't say for sure.

 
New Post
1/23/2009 4:07 PM
 

Sorry, one thing I left out of my reply.  You *could* use a script injector (GumboSoft has one) to link the jQuery library and then put in some of your own script that calls the jQuery.noConflict(); and then your own script to do whatever you wanted to do on it.

I'd assume your own script would be something like this:

jQuery.noConflict();
jQuery(document).ready(function() {
	// put your code here
});

-- Jon Seeley
DotNetNuke Modules
Custom DotNetNuke and .NET Development
http://www.seeleyware.com
 
Previous
 
Next
HomeHomeOur CommunityOur CommunityGeneral Discuss...General Discuss...Using jQuery in DotNetNuke 4.9.0Using jQuery in DotNetNuke 4.9.0


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