gigabyte.com - content missing

For support with specific websites

Moderator: trava90

Forum rules
Please always mention the name/domain of the website in question in your topic title.
Please one website per topic thread (to help keep things organized). While behavior on different sites might at first glance seem similar, they are not necessarily caused by the same.

Please try to include any relevant output from the Toolkit Error Console or the Developer Tools Web Console using the following procedure:
  1. Clear any current output
  2. Navigate or refresh the page in question
  3. Copy and paste Errors or seemingly relevant Warnings into a single [ code ] block.
User avatar
back2themoon
Moon Magic practitioner
Moon Magic practitioner
Posts: 2358
Joined: 2012-08-19, 20:32

gigabyte.com - content missing

Unread post by back2themoon » 2022-01-11, 13:34

Example: https://www.gigabyte.com/Motherboard/B5 ... v-10/sp#sp

The full specifications text should appear, but it doesn't. Also tested on clean Pale Moon portable 29.4.3.

User avatar
Moonchild
Pale Moon guru
Pale Moon guru
Posts: 35402
Joined: 2011-08-28, 17:27
Location: Motala, SE
Contact:

Re: gigabyte.com - content missing

Unread post by Moonchild » 2022-01-11, 14:32

back2theredboxabove
"Sometimes, the best way to get what you want is to be a good person." -- Louis Rossmann
"Seek wisdom, not knowledge. Knowledge is of the past; wisdom is of the future." -- Native American proverb
"Linux makes everything difficult." -- Lyceus Anubite

User avatar
back2themoon
Moon Magic practitioner
Moon Magic practitioner
Posts: 2358
Joined: 2012-08-19, 20:32

Re: gigabyte.com - content missing

Unread post by back2themoon » 2022-01-11, 15:27

ReferenceError: event is not defined
sp:1699:1
This site appears to use a scroll-linked positioning effect. This may not work well with asynchronous panning; see https://developer.mozilla.org/docs/Mozi ... kedEffects for further details

------------------------
2022-01-11_171807.png
Error: ReferenceError: event is not defined
Line: 1699



Code: Select all

            if ($(event.currentTarget).data("pid")) {
                window.childProductId = $(event.currentTarget).data("pid");
            } else {
                window.hasLoadMemorySupport = false;
            }

            if (typeof (isNoTriggerAjax) === 'undefined') {
                isNoTriggerAjax = true;
            }

            var thisHashArray = window.hashArray;
            $('.ajax-loading').removeClass('hide');
            clearInterval(window.iframeLoadedFun);
            window.iframeLoadedFun = null;
            var mainItems = $("#model-item").find("li[data-type='" + contentType + "']");
            if (contentType !== "ov/kf") {
                window.hashArray[0] = contentType;
                if (contentType === "support") {
                    try {
                        if (mainItems.length === 1) {
                            var urlPushState = mainItems.find("a").attr("href");
                            var state = {
                                date: new Date(),
                                contentType: contentType
                            };
                            if (!window.UsePopstate) {
                                history.pushState(state, "ModelPageAjaxPushState", urlPushState);
                            } else {
                                window.UsePopstate = false;
                            }
                        } else {
                            window.location.hash = window.hashArray.join('-');
                        }
                    } catch (e) {
                        window.location.hash = window.hashArray.join('-');
                    }
                } else {
                    window.hashArray = [];
                    window.hashArray[0] = contentType;
                    
                    if (needToChange && thisHashArray !== "buy") {
                        try {
                            if (mainItems.length === 1) {
                                var urlPushState = mainItems.find("a").attr("href");
                                var state = {
                                    date: new Date(),
                                    contentType: contentType
                                };
                                if (!window.UsePopstate) {
                                    history.pushState(state, "ModelPageAjaxPushState", urlPushState);
                                } else {
                                    window.UsePopstate = false;
                                }


                            } else {
                                window.location.hash = window.hashArray[0];
                            }
                        } catch (e) {
                            window.location.hash = window.hashArray[0];
                        }
                    } else {
                        var temphash = window.location.hash.split('?');
                        if (temphash.length > 1) {
                            window.location.hash = window.hashArray[0] + "?" + temphash[1];
                        } else {
                            window.location.hash = window.hashArray[0];
                        }
                    }

                }
            }
            window.useContentType = contentType;
            if ($('#model-item>li[data-type="' + window.hashArray[0] + '"]').length <= 0) {
                $('#model-item>li').first().trigger('click');
                if (typeof(cb) === "function") {
                    cb();
                }
                setTimeout(function() { AjaxIsRuning = false; }, 800);
            } else {
                if (window.firstTimeShowContent && isNoTriggerAjax) {
                    var modelContent = $('.model-content');
                    if (typeof(cb) === "function") {
                        AjaxCbFunctionExecute(cb, contentType);
                    } else {
                        AjaxNotCbFunctionExecute(modelContent, "", contentType);
                    }
                    AjaxAfterExecuteFunction(contentType);
                    window.firstTimeShowContent = false;
                    if (window.isCN) {
                        var replaceItem = $(".header-sub-title").add(".section-bottom").add(".section-top");
                        var replaceItemLength = replaceItem.length;
                        for (var i = 0; i < replaceItemLength; i++) {
                            var replaceItemEq = replaceItem.eq(i);
                            replaceItemEq = replaceItemEq.find("*").not("iframe");
                            rePlaceCnAdKeywordByobj(replaceItemEq);
                        }
                    }
                    if (window.location.hash === "#dl") {
                        $(".info-nav").find("li").eq(0).trigger('click');
                    }

                } else {
                    var ajaxUrl_GetModelInfoByAjax = String.format('/Ajax{0}', '/Product/GetModelInfoByAjax');
                    var IsCanUseVue = BrowserIsOkayForVue();
                    
                    var ajaxModel = typeof(modelUrl) === 'undefined'
                        ? 'B550-AORUS-PRO-V2-rev-10'
                        : modelUrl;
                    $.ajax({
                        type: 'POST',
                        url: ajaxUrl_GetModelInfoByAjax,
                        data: { 'modelUrl': ajaxModel, 'contentType': contentType, 'IsCanUseVue': IsCanUseVue, isRelationProductEcExist: 'False' },
                        success: function(data) {
                            setTimeout(function() {
                                    AjaxIsRuning = false;
                                },
                                800);
                            var modelContent = $('.model-content');
                            
                            if (window.isCN) {
                                var checkCk = window.isCNAdCK.indexOf(2);
                                var productId = $('.header-title > div').first().attr('name');
                            }
                            if (typeof(cb) === "function") {
                                modelContent.html(data);
                                if ((window.outerWidth <= 960)) {
                                    $(".mobile-switchChildModel").addClass("hide");
                                }
                                $(".support-section").css("display", "block");
                                
                                if (window.isCN) {
                                    rePlaceCnAdKeywordByobj(modelContent);
                                }
                                AjaxCbFunctionExecute(cb, contentType);
                            } else {
                                AjaxNotCbFunctionExecute(modelContent, data, contentType);
                            }

                            AjaxAfterExecuteFunction(contentType);
                        }
                    });
                }

etc.

User avatar
Moonchild
Pale Moon guru
Pale Moon guru
Posts: 35402
Joined: 2011-08-28, 17:27
Location: Motala, SE
Contact:

Re: gigabyte.com - content missing

Unread post by Moonchild » 2022-01-11, 17:18

Most likely the website is trying to use an ambiguous "global" event instead of the event passed into the event handler.
Simple mistake, simple fix. You'll have to contact the webmaster.
"Sometimes, the best way to get what you want is to be a good person." -- Louis Rossmann
"Seek wisdom, not knowledge. Knowledge is of the past; wisdom is of the future." -- Native American proverb
"Linux makes everything difficult." -- Lyceus Anubite

Locked