Version 7.3 JavaScript Intranet vs Extranet

Looking for some assistance with an Intranet vs Extranet issue. We are currently using Version 7.2.d. I am wondering if we upgrade to Version 7.3 if this might help solve our issue. It seems I read somewhere that 7.3 solved some of the cross browser compatibility issues. If anyone has experienced this issue and could share how they resolved it, I would greatly appreciate it! Thank you!....Here is our issue.

We have some javascript code on an asp page that is hiding panels on the screen.

The code appears to work fine in the Extranet environment. However, it is not working in the Intranet environment. It seems to me that it would be more likely to be the opposite (ie. work in the Intranet environment and not the extranet environment). Both system are using IE 11. The code works find in Chrome on each system. However, we need to make sure it works in IE 11.

Is there someplace I can look to help troubleshoot why this is happening?

Any assistance would be greatly appreciated! Thank you!

  • 0

    Michele

    See if you can test it with Edge the new Windows 10 browser - that is not going to be officially supported until the next patch of Sage CRM 7.3 but... if the issue goes away on Edge then that is another factor in your equation. Have you logged this within support?

  • 0

    7.3 may help... but have you narrowed down the code to determine the minimum that doesn't work in IE?

    There should be only one or two lines that are the issue and you really need to find those.

  • 0

    Yes, but don't post everything that doesn't work.

    Just post in the absolute minimum that doesn't work.

  • 0

    I think your issue is:

    console.log

    There is a bug in IE that doesn't like it. Try removing writing to the console from the code and try it again.

    Edit: reference http://stackoverflow.com/questions/7892509/is-there-a-way-to-log-to-console-without-breaking-code-under-ie

  • 0

    OK, I will try Edge. We are on 7.2d. Do you think upgrading to 7.3 might help resolve issue? I have not logged this with support yet. Our IT team thinks they might have a solution that they are going to try later today. If our IT team cannot resolve it, support was where I was headed next after trying the forum.

    Thank you for the suggestions, we are ready to "go live" with this portion of the SageCRM project. However, our testers have indicated that they won't be able to use the solution if we cannot resolve our "global documents" issue which is what this code does (it hides the global documents from selection). Therefore, I am getting desperate. This is the first piece of SageCRM we are going live with and I want happy users not grumbling users...so thank you ... thank you ... thank you for any assistance you can provide.

  • 0

    I am pretty sure that I know what code is not working in IE. However, since I did not actually write that piece, I would need to go back and look at it. It is the piece that was added in to hide panels and restrict global documents. I will pull out the actual code and post it.

  • 0

    I believe this is it...

    // run when magnifying glass icon is clicked

    // hides the Global attachments

    var hideGlobalAttachments = function () {

    // Wait so the pop up has generated

    // should wait(1000) not wait(3000)

    $.wait(3000).then(function () {

    var emailIframe = $('[name=showEmail]');

    console.log('hiding global attachments');

    //$('div.SearchSelectTied.ui-crmPopup-trigger > div > table.CONTENT > tbody > tr', emailIframe.contents()).log();

    //debugger

    $('table.CONTENT', emailIframe.contents()).each(function () {

    console.log('table.CONTENT: ');

    //console.log($(this).html());

    });

    // Can I access the table rows using pure JS instead of jQuery?

    var TRs = window.frames["showEmail"].document.getElementsByTagName("tr");

    for (var i = 0; i

    console.log("Pure JS: " + i);

    console.log(TRs[i].innerHTML);

    // None of these contain a cell with text "Global", meaning that the popup isn't in the accessible DOM

    }

    $('div.SearchSelectTied.ui-crmPopup-trigger > div > table.CONTENT > tbody > tr', emailIframe.contents()).each(function () {

    // eq(n), n is the column number when counting from 0

    console.log($(this).children().eq(2).text());

    if ($(this).children().eq(3).text() == "Global") {

    $(this).css("display", "none");

    }

    });

    });

  • 0

    Thank you Toby...I will give that a try.

    Not sure if Jeff will see this. However, I did try Edge as he recommended and it did work in that browser. Therefore, does that mean that if we upgraded to 7.3, it might resolve the issue.

    When I talked to IT they indicated that we were not going to be upgrading to Windows 10 any time soon....so what does that mean for me...thanks!

    I will remove the console.log and see what happens...

    Thanks!

  • 0

    With all that console debugging, what is or is not being written to the console when the code is invoked?

  • 0

    Toby...

    We removed the console logging and the code still does not work in the Intranet.

    This is the thing that I don't understand. The code works in IE on my machine if I login as though I was not "in" our Network.

    If I login on my machine using this URL, the code works fine....sagecrm.mydomain.com/.../go.

    However, if I login from my machine from "within" our Network, the code does not work ... sagecrm/.../go.

    Therefore, the code does work in IE. It just does not work through the Intranet. I just don't get it...why would it work in the Extranet but not the Intranet on the same machine with the same browser.

    Any additional thoughts would be greatly appreciated.

  • 0

    Toby..

    The first screen shot is the console in the Intranet environment and the second screen shot is the console in the Extranet environment...Thank you for your assistance!!!