locked
Some JavaScript issues for 2013 RRS feed

  • Question

  • I have run the Custom Code Validation Tool and it has highlighted a few bits of JavaScript which I would like to address.

    Blue (Fine in IE only):

    1. .childNodes.length
    2. .firstChild.lastChild.innerText
    3. .selectSingleNode
    4. .selectNodes
    5. .text
    6. .Value
    7. ActiveXObject
    8. GenerateAuthenticationHeader

    Some of these are present in the jquery.js v1.3.2 file we are using.

    I can see why the ActiveXObject is a problem and presumably the GenerateAuthenticationHeader function has gone. 

    Do any of these have direct cross browser replacements?

    Thursday, October 3, 2013 9:31 AM

Answers

  • Hi,

    7. Instead of ActiveXObject you can use httprequest. This will work for all remaining browsers.

    I think Remaining all errors from CRUD operations 2007 soap service. Instead of This service better to use rest service or XRMSvcToolkit.

    Then you will not get those errors.

    Thanks,

    Sravan J.

    Thursday, October 3, 2013 9:55 AM

All replies

  • Hi,

    7. Instead of ActiveXObject you can use httprequest. This will work for all remaining browsers.

    I think Remaining all errors from CRUD operations 2007 soap service. Instead of This service better to use rest service or XRMSvcToolkit.

    Then you will not get those errors.

    Thanks,

    Sravan J.

    Thursday, October 3, 2013 9:55 AM
  • Looking at the non-ActiveX stuff, I can see that some of these are in JQuery.  Checked out the newest version which is 1.10.2.  Still references childnodes and many of the others.

    Always possible that we are not calling the functions concerned so there may be no ill effect.  I would have expected a cross-browser compatible file though.

    Friday, October 4, 2013 2:24 PM