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...Administration ...Administration ...Changed jQuery core function flawChanged jQuery core function flaw
Previous
 
Next
New Post
11/4/2013 11:00 AM
 

Please have the Core Team review the following thread to fix a major flaw in the DNN 7.01.02 jQuery.js minified script:

http://forum.jquery.com/topic/get-att...

This flaw has caused me days of frustration.

Please let me know why this flaw occurred and what is being done about it.

Dave McMullen

[email protected]

 
New Post
11/5/2013 3:28 AM
 
Please report issues to the public tracker at support.dnnsoftware.com

Cheers from Germany,
Sebastian Leupold (Microsoft MVP)

dnnWerk - The DotNetNuke Experts   German Spoken DotNetNuke User Group

Speed up your DNN Websites with TurboDNN
 
New Post
11/5/2013 9:13 AM
 

When you use jquery with dnn you should NOT use the $ shortcut unless you wrap the function in a no conflict type closure:

(function($) { 
// put Your jQuery code here 
})(jQuery);

The $ shortcut is used by many different frameworks that run inside javascript and it is NOT exclusive to jQuery.

As such what you are seeing is BY DESIGN in DNN.  There are any number of notes regarding this on blogs and in the dnn wiki:

http://www.dnnsoftware.com/community-... 

http://stackoverflow.com/questions/11...

http://www.dnnsoftware.com/wiki/page/...

Westa

 

 

 
New Post
11/5/2013 5:37 PM
 

Thanks for the advice, though I have so much $() code to wrap that it is daunting advice.

But that's not the problem.  The jQuery Forum surfaced the flaw shown below, from http://forum.jquery.com/topic/get-att...)

this.getAttribute('userid') works. So I checked again, and $(this).attr("userid") does not. 


So, I checked what the code was for .attr()
jQuery.fn.attr is 
  1. function (n, q, o) {var m=this;if((!n)||(n!=="value")||(!g(m))){return j.attr.call(m,n,q,o)}if(q!==e){k.call(m.filter(":tinymce"),q);j.attr.call(m.not(":tinymce"),n,q,o);return m}else{var p=m[0],l=h(p);return l?l.getContent():j.attr.call(b(p),n,q,o)}}
But, jQuery does not have special code for tiny mce. 
You have overwritten jQuery’s core function in some minified script.

Don’t do that!

As I understand the posting, DNN has hard-coded Tiny mce into jQuery core functionality.  Not good.  Hence, my frustration.  Are you saying that the hard-coding is not a problem?

 

 
New Post
11/5/2013 6:58 PM
 

Which file are you seeing this code in ?  Most people let DNN use the hosted jquery from CDN - that code is not controlled by DNN - You may also want to make sure you are running the latest version of dnn - and that your jquery library config in the Host - Settings area is set to use the latest HOSTED version of jquery.

Westa

 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Administration ...Administration ...Changed jQuery core function flawChanged jQuery core function flaw


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.

Content Layout

Subscribe to DNN Digest

DNN Digest is our monthly email newsletter. It highlights news and content from around the DNN ecosystem, such as new modules and themes, messages from leadership, blog posts and notable tweets. Keep your finger on the pulse of the ecosystem by subscribing.  


Copyright 2017 by DNN Corp Terms of Use Privacy
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out