Products

Solutions

Resources

Partners

Community

About

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

HomeHomeArchived Discus...Archived Discus...Idle Forge ProjectsIdle Forge ProjectsChatChatError: Error: 'undefined' is null or not an object. in Chat Module After Upgrading to DNN 5.1.2
Previous
 
Next
New Post
3/24/2010 6:03 AM
 

Hi to all,

i've DNN 4.8.4 and after used the workaround above i found other errors regarding the emoticons, link and color function.
 

My solution is:

  1. in DNNCodeChatHelper.vb replace the double quotation mark with " in all String.Format occurrence, like this:

Dim lReplacemt As String = String.Format("<a href=&quot;{0}&quot; target=&quot;_new&quot;>{1}</a>", DotNetNuke.Common.AddHTTP(lMatch.Groups.Item("UrlHref").Value), lMatch.Groups.Item("UrlHref").Value)

  1. in js/dnn.xml.jsparser.js replace the function dnn_xml.prototype.JsParser.prototype.parse with follow:

dnn_xml.prototype.JsParser.prototype.parse = function(sXml, oRoot)
    {
        this.pos = 0;
        //this.xmlArray = sXml.split('>');
        var tmpInitPos = 0;
        this.xmlArray = new Array();
        for(i=0;i<sXml.length;i++){
            if(sXml.charAt(i) == '>' && (i<(sXml.length-1) && sXml.charAt(i+1) == '<')){
                this.xmlArray.push(sXml.substring(tmpInitPos,i))
                tmpInitPos = i+1;
            }
        }
        if(this.xmlArray.length == 0)
            this.xmlArray.push(sXml)

        this.processXml(oRoot);
    }

  1. always in js/dnn.xml.jsparser.js replace the function dnn_xml.prototype.JsParser.prototype.isOpenTag with follow:

dnn_xml.prototype.JsParser.prototype.isOpenTag = function()
    {
        var s = this.getProcessString();
        if (s.substr(0, 1) == '<' && s.substr(0, 2) != '</' && s.substr(0,2) != '"<' && s.substr(0,2) != '<?')
            return true;
        else
            return false;
    }

Now the Chat module works great with Chrome too.

I hope this help! bye!

Gabriele

 
New Post
9/3/2010 11:59 AM
 
Awesome Ben, thanks for the solution mate.
 
New Post
1/23/2011 4:55 PM
 
The fix worked great for me too!
 
New Post
4/29/2011 10:30 AM
 
Ben, thank you, fixed my IE8 problem!

 
New Post
5/16/2011 11:17 AM
 

Thanks the solution stop the error on IE8 , but not on IE9 and i still the following error on IE9:

Error: Unable to get value of the property 'getAttribute': object is null or undefined

Error: Unable to get value of the property 'getAttribute': object is null or undefined

Error: Unable to get value of the property 'getAttribute': object is null or undefined



Thanks agian,



Ajayi Tope
 
Previous
 
Next
HomeHomeArchived Discus...Archived Discus...Idle Forge ProjectsIdle Forge ProjectsChatChatError: Error: 'undefined' is null or not an object. in Chat Module After Upgrading to DNN 5.1.2


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