none
JQuery conflict on term store manager page RRS feed

  • Question

  • Hello

    We have created a custom masterpage. I have given jquery.min.js reference at top of the master page and other JS references at the bottom of the page.

    Custom master page seems to work perfectly on all pages, except TermStoreManager.aspx
    After looking at the console, it seems that the page is not resolving jquery or maybe having some conflicts internally as it is throwing error on first line of all JS files referenced. 

    If anyone knows why jquery is not working properly just for Term Store Manager page would be very helpful.

    Cheers!

    Prateek


    Prateek Vijay Vashistha

    Tuesday, August 20, 2019 10:30 AM

All replies

  • Hi

    Did you see any error when press F12 in the web browser?


    Justin Liu Office Apps & Services MVP, MCSE
    Senior Software Engineer
    Please Vote and Mark as Answer if it helps you.

    Wednesday, August 21, 2019 1:17 AM
  • Hi Prateek,

    What is the detailed error message from Console, you could provide a screen capture for detailed.

    For Jquery reference in master page, I embed in <head> tag:

    Switch to Term Store Manager page, from Developer Console, there is no error message occurred.

    Thanks

    Best Regards


    Please remember to mark the replies as answers if they helped. If you have feedback for TechNet Subscriber Support, contact tnmff@microsoft.com.

    SharePoint Server 2019 has been released, you can click here to download it.
    Click here to learn new features. Visit the dedicated forum to share, explore and talk to experts about SharePoint Server 2019.

    Wednesday, August 21, 2019 7:37 AM
  • Hello

    Yes, it is throwing jquery errors from different files.
    Seems it is not resolving anything starting from the first line of code because of jquery issue.


    Prateek Vijay Vashistha

    Wednesday, September 11, 2019 8:48 AM
  • Hello

    It is throwing jquery errors from different files.
    Seems it is not resolving anything starting from the first line of code because of jquery issue.


    Prateek Vijay Vashistha

    Wednesday, September 11, 2019 8:49 AM
  • This error need to be reviewed with your code. Please share your code.

    Justin Liu Office Apps & Services MVP, MCSE
    Senior Software Engineer
    Please Vote and Mark as Answer if it helps you.

    Thursday, September 12, 2019 5:04 AM
  • Hello

    It throws error at length property line in this common.js file.

    Code is perfectly fine as ti is working on all other pages. It is only terstoremanger page where it is not getting length because jquery is not resolving and eventually not getting the element to get its lengtj property.

    $(document).ready(function () {
        //attach href and onclick to Manage Quota waffle tile 
    
        //namespace
        var qp = {}
        var tp = {}
    
        qp.registerAddButtonEvent = function () {
    		var a = "li.rightListItems a[title='Help']";
            // if the button exists
            if ($(a).length > 0) {
                // we attach the click handler to it
                $(a).attr("href", "#");


    Prateek Vijay Vashistha

    Friday, September 13, 2019 10:46 AM
  • Hello

    I replied and shared the code.
    Can you please let me know if anything can be done?


    Prateek Vijay Vashistha

    Thursday, September 19, 2019 10:30 AM
  • Go to the page in your web browser, check the source, find the jquery reference and confirm it is linked correctly.

    Justin Liu Office Apps & Services MVP, MCSE
    Senior Software Engineer
    Please Vote and Mark as Answer if it helps you.

    Friday, September 20, 2019 1:10 AM
  • Yes, it is linked correctly.

    Kindly check the screenshot:


    Prateek Vijay Vashistha

    Friday, September 20, 2019 9:57 AM