I am running DNN 5.5 and just bought the DataSprings Collection. Started by installing the Dynamic Registration.
After running the Dynamic Registration wizard and putting the basic fields of "Username", "Password", "Confirm Password" on the Registrtion page, I noticed that the drag and drop was not working to allow me to reorder the fields, or drag them to the copy and recycle areas.
Double clicking on the Error on Page icon (IE 8) I get the following
==========================================
Webpage error details
User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; WOW64; Trident/4.0; GTB6.5; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; .NET4.0C; .NET4.0E)
Timestamp: Mon, 6 Sep 2010 03:18:23 UTC
Message: 'null' is null or not an object
Line: 357
Char: 3
Code: 0
URI: http://localhost/DotNetNukeComm/Des...pCustom.js" target="_blank" rel="nofollow">http://localhost/DotNetNukeComm/Des...pCustom.js
Message: 'null' is null or not an object
Line: 357
Char: 3
Code: 0
URI: http://localhost/DotNetNukeComm/Des...pCustom.js" target="_blank" rel="nofollow">http://localhost/DotNetNukeComm/Des...pCustom.js
=====================================================
The relevant source code for the JavaScript is
=====================================================
addSource : function(sourceId,slideBackAfterDrop,xAxis,yAxis,dragOnlyWithinElId,functionToCallOnDrag)
{
if(!functionToCallOnDrag)functionToCallOnDrag=false;
if(!this.dragDropSourcesArray)this.dragDropSourcesArray = new Array();
//Data Springs Removed For Now if(!document.getElementById(sourceId))alert('The source element with id ' + sourceId + ' does not exists');
var obj = document.getElementById(sourceId);
if(xAxis!==false)xAxis = true;
if(yAxis!==false)yAxis = true;
356 this.dragDropSourcesArray[this.dragDropSourcesArray.length] = [obj,slideBackAfterDrop,xAxis,yAxis,dragOnlyWithinElId,functionToCallOnDrag];
357 obj.setAttribute('dragableElement',this.dragDropSourcesArray.length-1);
358 obj.dragableElement = this.dragDropSourcesArray.length-1;
}
=====================================================
I added a alert just before line 357
=====================================================
alert('before ' + this.dragDropSourcesArray.length + ' sourceId=' + sourceId + ' obj=' + obj + ' isNull=' + (obj==null));
=====================================================
and reloaded the page, I get the following output in the alert.
=====================================================
before 0 sourceId=dnn_ctr419_DynamicRegistration_imgNewField_Textbox419 obj=[object HTMLInputElement] isNull=false
before 1 sourceId=dnn_ctr419_DynamicRegistration_imgNewField_Checkbox419 obj=[object HTMLInputElement] isNull=false
before 2 sourceId=dnn_ctr419_DynamicRegistration_imgNewField_RadioButton419 obj=[object HTMLInputElement] isNull=false
before 3 sourceId=dnn_ctr419_DynamicRegistration_imgNewField_ComboBox419 obj=[object HTMLInputElement] isNull=false
...
before 19 sourceId=dnn_ctr419_DynamicRegistration_imgNewField_imgNewField_Rating419 obj=[object HTMLInputElement] isNull=false
before 20 sourceId=dnn$ctr419$DynamicRegistration$imgMove_7147b0f4-2ed4-4c78-a697-15cae32d609e obj=null isNull=true
=====================================================
The error occurs when processing this last value.
BTW, the above listing appears twice when the browser refreshes the page. It appears the whole script is being called twice.
Any ideas on how to fix?