Great Ideas. Always Flowing.

We are not happy until you are happy. Client satisfaction guaranteed. Whatever your needs and requirements, we have the skills and resources for the job!

Quick login...


Or... now make it easy with Facebook Integration
Connect via Facebook



Top Sellers

Frustrated over the lack of customization for your user's registration fields? Dynamically setup your DNN Portal with custom registration fields, layout, questions, and other core integration options......

Ultra Video Gallery is a brother product of Ultra Media Gallery, UVG allows you to upload videos in various format and automatically encode them to flv or H264 format, you also can add videos from internet or record live videos from your webcam.

Build high performance, completely customizable data-entry forms and views driven by your DNN and external databases. New built-in tools make it a snap to quickly create data entry forms, data views, and even database tables. Plus, add your own HTML, CSS, Javascript, SQL commands, stored procedures,

The most advanced DotNetNuke shopping cart on the planet. Easy to use e-Commerce, Secure Shopping Cart Software and SEO friendly. B2C / B2B Ecommerce Sites.

One stop solution for events calendar and events registration! FREE DOWNLOAD is available now!

'null' is null or not an object in DynamicRegistration_DragDropCustom.js
Last Post 09-14-2010 01:47 PM by Chad Nash. 3 Replies.
AddThis - Bookmarking and Sharing Button Printer Friendly
  •  
  •  
  •  
  •  
  •  
Sort:
PrevPrev NextNext
You are not authorized to post a reply.
Author Messages
WayneUser is Offline
skipping stones
skipping stones
Posts:11
Avatar

--
09-05-2010 06:51 PM
    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?
    CandaceUser is Offline
    river guide
    river guide
    Posts:2431
    Avatar

    --
    09-07-2010 01:36 PM
    Hi Wayne,

    Please check out the suggestion at the end of this forum thread.  It seems to have worked for him.  Thanks!

    http://www.datasprings.com/Products...fault.aspx

    Candace

    WayneUser is Offline
    skipping stones
    skipping stones
    Posts:11
    Avatar

    --
    09-07-2010 06:52 PM
    That was not a related issue.  That was a missing JS file.  The file is here, it is just throwing errors.

    I tried it with Firefox and the script works there just fine. It is only in IE8 that I see the problem.

    The error first occurs in IE8 when the script is called looking for sourceId=dnn$ctr419$DynamicRegistration$imgMove_6640e680-93a6-4786-bc05-82f45856a691 and it returns a null obj.

    In FF, the script is called looking for sourceId=dnn_ctr419_DynamicRegistration_imgMove_6640e680-93a6-4786-bc05-82f45856a691 and it finds it.

    The problem is IE8 is using three "$" in the string instead of three "_".  This could be some kind of encoding problem.
    Chad NashUser is Offline
    Posts:5260
    Avatar

    --
    09-14-2010 01:47 PM
    Hi Wayne - This is related to the Drag/Drop code within Dynamic Registration and specifically because of some updates to IE 8. For now you can either disable the Drag/Drop issue, use FireFox when using this feature, or ignore it as it shouldn't happen unless you are in edit mode. We are working on the next release to support Drag/Drop within IE8 the way it already works in earlier versions.

    -

    -Chad
    You are not authorized to post a reply.


     
     

    Join our mailing list...

    Get current news and events the easy way
    Subscribe Me

    Recent Blogs...

     
    Copyright 2005 - 2011 by Data Springs, Inc.
     
  • film izle
  • 720 izle
  • film
  • sinema izle
  • film makinesi
  • T�rk�e dublaj film
  • film izle
  • film izle
  • baglan film izle
  • sinema izle
  • 1080 film izle
  • film mercegi