locked
jQuery Version 2.1.0 causing HTML1701: Unable to add dynamic content errors?

Answers

  • Hi Kelly,

    As I know jQuery Version 2.1.0 is a newly released version(http://blog.jquery.com/2014/01/24/jquery-1-11-and-2-1-released/), a stable version might be a better choice. Basically Win8.1/8.0 app is using IE11/IE10 render engine, if the JQuery 2.1.0 having issue with IE11/IE10, there must be a problem with the App.

    Report this issue to JQuery is preferred http://bugs.jquery.com/.  Meanwhile I will report this issue to our senior engineers to see if this could be a Windows Store App issue.

    And really appreciate for supporting the Windows Store App dev forum.

    --James


    <THE CONTENT IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND, WHETHER EXPRESS OR IMPLIED>
    Thanks
    MSDN Community Support

    Please remember to "Mark as Answer" the responses that resolved your issue. It is a common way to recognize those who have helped you, and makes it easier for other visitors to find the resolution later.




    Monday, February 17, 2014 8:01 AM
    Moderator
  • Hi lorenjerickson,

    Take a look at this blog before using JQuery, there is a step by step guide you for how to using JQuery, http://blogs.windows.com/windows/b/appbuilder/archive/2013/07/10/jquery-and-winjs-working-together-in-windows-store-apps.aspx. You have to download the JQuery to local and use it instead of ref it directly from internet.

    However this issue only occurs on JQuery 2.1.0, to use a lower version can solve this problem, for instance 2.0.2

    --James


    <THE CONTENT IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND, WHETHER EXPRESS OR IMPLIED>
    Thanks
    MSDN Community Support

    Please remember to "Mark as Answer" the responses that resolved your issue. It is a common way to recognize those who have helped you, and makes it easier for other visitors to find the resolution later.

    Thursday, February 20, 2014 2:59 AM
    Moderator

All replies

  • Hi Kelly,

    As I know jQuery Version 2.1.0 is a newly released version(http://blog.jquery.com/2014/01/24/jquery-1-11-and-2-1-released/), a stable version might be a better choice. Basically Win8.1/8.0 app is using IE11/IE10 render engine, if the JQuery 2.1.0 having issue with IE11/IE10, there must be a problem with the App.

    Report this issue to JQuery is preferred http://bugs.jquery.com/.  Meanwhile I will report this issue to our senior engineers to see if this could be a Windows Store App issue.

    And really appreciate for supporting the Windows Store App dev forum.

    --James


    <THE CONTENT IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND, WHETHER EXPRESS OR IMPLIED>
    Thanks
    MSDN Community Support

    Please remember to "Mark as Answer" the responses that resolved your issue. It is a common way to recognize those who have helped you, and makes it easier for other visitors to find the resolution later.




    Monday, February 17, 2014 8:01 AM
    Moderator
  • Thank you James. I thought it was the stable version since it is a production release. Should I consider stable one version behind the most recent release?

    Regards,

    Kelly


    Personal Blog: http://thebitsthatbyte.com

    Monday, February 17, 2014 1:43 PM
  • Hi Kelly,

    Not sure why JQuery 2.1.0 throw HTML1701 error, as the agreement JQuery 2.0 above version should works fine with Windows Store App by this blog: Windows Store app support in jQuery version 2.0

    I can reproduce your issue, the exception thrown by console, but the app can works fine without problem. I will fire this as a bug to senior engineers.

    Use a older version might be better if you need deal with Select or Radio inputs.

    --James


    <THE CONTENT IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND, WHETHER EXPRESS OR IMPLIED>
    Thanks
    MSDN Community Support

    Please remember to "Mark as Answer" the responses that resolved your issue. It is a common way to recognize those who have helped you, and makes it easier for other visitors to find the resolution later.


    Tuesday, February 18, 2014 9:49 AM
    Moderator
  • Thanks James,

    That is the exact behavior I was experiencing.

    Regards,

    Kelly


    Personal Blog: http://thebitsthatbyte.com

    Tuesday, February 18, 2014 4:59 PM
  • Thanks James,

    That is the exact behavior I was experiencing.

    Regards,

    Kelly


    Personal Blog: http://thebitsthatbyte.com

    I can reproduce this behavior with ANY 2.x version (2.0.2, 2.0.3, 2.1.0) of jQuery in a plain vanilla WinJS app.  In full disclosure, I am also using angularjs (v1.2.13), but since I am explicitly including jquery 2.x, angular should use the loaded jquery instead of it's own "mini" version.  

    It sure does seem like should have been caught by somebody.  It takes all of about 2 minutes to reproduce this in VS2013.  

    How disappointing.  <sigh/>


    Thursday, February 20, 2014 2:38 AM
  • Hi lorenjerickson,

    Take a look at this blog before using JQuery, there is a step by step guide you for how to using JQuery, http://blogs.windows.com/windows/b/appbuilder/archive/2013/07/10/jquery-and-winjs-working-together-in-windows-store-apps.aspx. You have to download the JQuery to local and use it instead of ref it directly from internet.

    However this issue only occurs on JQuery 2.1.0, to use a lower version can solve this problem, for instance 2.0.2

    --James


    <THE CONTENT IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND, WHETHER EXPRESS OR IMPLIED>
    Thanks
    MSDN Community Support

    Please remember to "Mark as Answer" the responses that resolved your issue. It is a common way to recognize those who have helped you, and makes it easier for other visitors to find the resolution later.

    Thursday, February 20, 2014 2:59 AM
    Moderator
  • I can also confirm the error occurs in jQuery version 2.1.1, so using 2.0.2 also solved my issues. That's what I'll now stick to. Thanks for the info.
    Sunday, May 25, 2014 9:17 AM