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...Upgrading DNN P...Upgrading DNN P...Javascript errors:  draggable and dnnConfirm not a functionJavascript errors: draggable and dnnConfirm not a function
Previous
 
Next
New Post
9/8/2011 6:32 PM
 
Yes it happens under DarkKnight as well. I have it on a small portal at http://auction.st-johnschool.org right now. You need to login and be in edit mode to see the error. I can email account credentials so you can login if you want to see it.

I also took a backup of the site & db and restored it to a different environment so I could eliminate the production hosting site as a variable. Same errors happen in the restored site on different servers.

This is a site that has been through probably a dozen or so prior upgrades over the years.
 
New Post
9/8/2011 7:10 PM
 
I have another site on the same server that does not exhibit the problem, let's call it Site A and call the site that does exhibit the error Site B.

Site A is 6.0. Site B is 6.01.

I made a very simple page on both sites and only added one Text/HTML module on it. You need to see the "Manage" button to get the error. I then compared the results of "view/source" for each site on these simple pages.

The code that triggers the error is not even present in Site A. This is the code that only appears in site B (and is flagged as the source of the error in Firebug):


	script type="text/javascript"
	(function($) {
		$(document).ready(function() {
			var confirmString = "confirm('Are You Sure You Wish To Delete This Module ?')";
			$("a[href*=\"" + confirmString +"\"]").attr("href", function () {
				return $(this).attr("href").replace( /if\(.+?\)\{(.+?)\}/ , "$1");//remove its original confirm function
			}).dnnConfirm({
				text: 'Are You Sure You Wish To Delete This Module ?',
				yesText: 'Yes',
				noText: 'No',
				title: 'Confirm'
			});
		});
	}(jQuery));
	/script	

(took the angle brackets off the script tag to get it to show up in the forum post.  the "insert code snippet" toolbar isn't working for me)

This appears right above the Text/HTML module. The very next lines of default.aspx are:

Start_Module_1312 --> div class="DNNModuleContent ModDNNHTMLC" id="dnn_ctr1312_ModuleContent">
div class="Normal" id="dnn_ctr1312_HtmlModule_lblContent">
You must be in Edit Mode to enter content, and then you can use the Module Action Menu or Module Action Buttons to manage content
/div> /div>

Both Site A (no error) and Site B (error) are copies of the same original site. They were upgraded differently. Site B went through a few more interim upgrades, and obviously hasn't got to 6.01 yet.
 
New Post
9/8/2011 7:34 PM
 
And now I have upgraded "Site A" (the site that was not exhibiting the error) from 6.00 to 6.01 and now it is producing the error. No other changes, just the upgrade, and now the error is there along with the offending little javascript function declaration in the middle of default.aspx output.

I think that isolates it to something in the 6.01 upgrade.
 
New Post
9/9/2011 12:08 PM
 
I have also reproduced this bug on a vanilla fresh install of 6.01

In the course of testing on the fresh install of 6.01 I discovered that the bug only comes up if the control panel is configured to be the ICONBAR. The bug does not manifest itself for the RIBBONBAR control panel.

I opened a bug in Gemini and will update it with this latest info.

Hopefully you have no trouble reproducing it now.
 
New Post
9/9/2011 12:25 PM
 
I saw it, much appreciated. The obvious workaround is to use the ribbonbar control panel, but at least this will allow us to investigate the root cause.

Buy the new Professional DNN7: Open Source .NET CMS Platform book Amazon US
 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Upgrading DNN P...Upgrading DNN P...Javascript errors:  draggable and dnnConfirm not a functionJavascript errors: draggable and dnnConfirm not a function


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