SitePoint Sponsor

User Tag List

Page 3 of 3 FirstFirst 123
Results 51 to 69 of 69
  1. #51
    SitePoint Wizard bronze trophy PicnicTutorials's Avatar
    Join Date
    Dec 2007
    Location
    Carlsbad, California, United States
    Posts
    3,658
    Mentioned
    15 Post(s)
    Tagged
    0 Thread(s)
    Ok cool thanks for the explanation. I'll run with it then. Thanks for all your help. Could not of done it without you.

  2. #52
    Gre aus'm Pott gold trophysilver trophybronze trophy
    Pullo's Avatar
    Join Date
    Jun 2007
    Location
    Germany
    Posts
    6,045
    Mentioned
    219 Post(s)
    Tagged
    12 Thread(s)
    You're welcome

  3. #53
    SitePoint Wizard bronze trophy PicnicTutorials's Avatar
    Join Date
    Dec 2007
    Location
    Carlsbad, California, United States
    Posts
    3,658
    Mentioned
    15 Post(s)
    Tagged
    0 Thread(s)
    Morning,

    I managed to work out the ON/OFF color changing. Is this the best way to do that? http://www.websitecodetutorials.com/...ion-on-off.php

    Code css:
    #onoff li span {
    font-weight:bold;
    color:red;
    }

    $('#onoff').on("click", function() {
    if(toggleState) {
    $.cookie('animationStatus', 'on', { expires: 365, path: '/' });
    $("#onoff span").text("ON").css('color','green');
    startAnimation();
    } else {
    $.cookie('animationStatus', 'off', { expires: 365, path: '/' });
    $("#onoff span").text("OFF").css('color','red');
    stopAnimation();
    }
    toggleState = !toggleState;
    });

    var t1, t2;
    var timeouts = [];
    var w = $(document).width()
    var animationStatus = $.cookie('animationStatus');
    if (animationStatus == null || animationStatus == "on"){
    var toggleState = false;
    $("#onoff span").text("ON").css('color','green');
    startAnimation();
    } else{
    var toggleState = true;
    }
    });

  4. #54
    Gre aus'm Pott gold trophysilver trophybronze trophy
    Pullo's Avatar
    Join Date
    Jun 2007
    Location
    Germany
    Posts
    6,045
    Mentioned
    219 Post(s)
    Tagged
    12 Thread(s)
    Hi Eric,

    That's not bad and it will work just fine, but it's neater if you style the two button states with classes.

    Use the off state as your default class, as this is what users with JavaScript disabled will see:

    Code CSS:
    ul#onoff li span {color:red; font-weight:bold;}

    then define an "on" class:

    Code CSS:
    ul#onoff li span.on{color:green; font-weight:bold;}

    Once you have done this, you can add and remove the "on" class as necessary from within your JS.

    Code JavaScript:
    $('#onoff').on("click", function() {
      if(toggleState) {
        $.cookie('animationStatus', 'on', { expires: 365, path: '/' });
        $("#onoff span").text("ON").addClass("on");
        startAnimation();
      } else {
        $.cookie('animationStatus', 'off', { expires: 365, path: '/' });
        $("#onoff span").text("OFF").removeClass("on");
        stopAnimation();
      }
      toggleState = !toggleState;
    });

    and

    Code JavaScript:
    if (animationStatus == null || animationStatus == "on"){
      var toggleState = false;
      $("#onoff span").text("ON").addClass("on");
      startAnimation();  
    } else{
      var toggleState = true;
    }

    This has the advantage of being easier to extend with more/different styles in the future.

    HTH

  5. #55
    SitePoint Wizard bronze trophy PicnicTutorials's Avatar
    Join Date
    Dec 2007
    Location
    Carlsbad, California, United States
    Posts
    3,658
    Mentioned
    15 Post(s)
    Tagged
    0 Thread(s)
    Nice thats better. Thank you very much

  6. #56
    SitePoint Wizard bronze trophy PicnicTutorials's Avatar
    Join Date
    Dec 2007
    Location
    Carlsbad, California, United States
    Posts
    3,658
    Mentioned
    15 Post(s)
    Tagged
    0 Thread(s)
    ew-we! Finally done with that! http://www.websitecodetutorials.com/ Thats took a long time to get right. But now when its turned off older computers like mine are much happier. CPU usage goes back down to 2% instead of the 75% it was before when off. Thanks Pullo

  7. #57
    Gre aus'm Pott gold trophysilver trophybronze trophy
    Pullo's Avatar
    Join Date
    Jun 2007
    Location
    Germany
    Posts
    6,045
    Mentioned
    219 Post(s)
    Tagged
    12 Thread(s)
    So how about a link to my site in "Friends of mine"?


    Website is looking really cool now.
    I like it much better than the old design.

  8. #58
    SitePoint Wizard bronze trophy PicnicTutorials's Avatar
    Join Date
    Dec 2007
    Location
    Carlsbad, California, United States
    Posts
    3,658
    Mentioned
    15 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by Pullo View Post
    So how about a link to my site in "Friends of mine"?


    Website is looking really cool now.
    I like it much better than the old design.
    Done!

  9. #59
    SitePoint Wizard bronze trophy PicnicTutorials's Avatar
    Join Date
    Dec 2007
    Location
    Carlsbad, California, United States
    Posts
    3,658
    Mentioned
    15 Post(s)
    Tagged
    0 Thread(s)
    Can anyone figure out why in IE8 only when you click the animation to off the plane and the clouds disappear? Upon clicking a new page or reload they return. http://www.websitecodetutorials.com/.

    Thanks!

  10. #60
    Gre aus'm Pott gold trophysilver trophybronze trophy
    Pullo's Avatar
    Join Date
    Jun 2007
    Location
    Germany
    Posts
    6,045
    Mentioned
    219 Post(s)
    Tagged
    12 Thread(s)
    Hi Eric,

    The behaviour you describe doesn't happen for me.
    I still see the plane and clouds (tested on IE 10 in IE 8 emulation mode).

    Can anyone else reproduce this?

  11. #61
    SitePoint Wizard bronze trophy PicnicTutorials's Avatar
    Join Date
    Dec 2007
    Location
    Carlsbad, California, United States
    Posts
    3,658
    Mentioned
    15 Post(s)
    Tagged
    0 Thread(s)
    Huh. Well that's good I guess. Its happened to me since we put it together. I have just been ignoring it until now. Can one other person please look on their machine In ie8 and click th animation to OFF. Does the plane and clouds disappear or do they go to their default positions? Thanks.

    http://www.websitecodetutorials.com/

  12. #62
    SitePoint Wizard bronze trophy PicnicTutorials's Avatar
    Join Date
    Dec 2007
    Location
    Carlsbad, California, United States
    Posts
    3,658
    Mentioned
    15 Post(s)
    Tagged
    0 Thread(s)
    Bummer I finally found a intext add network to work with but it breaks the on/off animation jquery cookie madoger. It won't turn off with the ad script in place. Here is the Kontera script http://kona.kontera.com/javascript/lib/KonaLibInline.js. Can a trained eye see or think of any blaring reason that would break it? The Kontera script goes at the very bottom. I tried placing it everywhere else on the page but changes nothing. Thanks for your help.

    Here is the site that incounters the problem. http://www.websitecodetutorials.com/. FYI the Kontera script is not on the page now. I took it off for the time being.

  13. #63
    Gre aus'm Pott gold trophysilver trophybronze trophy
    Pullo's Avatar
    Join Date
    Jun 2007
    Location
    Germany
    Posts
    6,045
    Mentioned
    219 Post(s)
    Tagged
    12 Thread(s)
    Hey Eric,

    The JS file you link to is minified, so it will be pretty hard to spot what might be stopping it from working.
    Could you possibly make a demo page or something which demonstrates the problem?

  14. #64
    SitePoint Wizard bronze trophy PicnicTutorials's Avatar
    Join Date
    Dec 2007
    Location
    Carlsbad, California, United States
    Posts
    3,658
    Mentioned
    15 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by Pullo View Post
    Hey Eric,

    The JS file you link to is minified, so it will be pretty hard to spot what might be stopping it from working.
    Could you possibly make a demo page or something which demonstrates the problem?
    Thank you Pullo. Good morning, thank you for your reply! I just tested it for about a half hour. It works/doesn't work 50% of the time. It's the ON/OFF animation at the top that gets broke if I use the Kontera script. All the animation associated scripts are nicely organized in the "combined.js". The kontera is at the bottom too. Thanks for your help.

    Here is the text page. http://www.websitecodetutorials.com/kontera-test.php

    And here is that same Kontera script un-minified.

    Code:
    window.KONA_VERSION || (window.KONA_VERSION = "2013_07_30");
    if (window.parent !== window && !window.dc_Frames) try {
        window.parent.location.href !== window.location.href && (window.konaBeenHere = !0)
    } catch (e$$8) {
        window.konaBeenHere = !0
    }
    if (!0 !== window.konaBeenHere) {
        window.konaBeenHere = !0;
        var konaGetTime = function () {
            return (new Date).getTime()
        }, konaStartTime = konaGetTime(),
            KONTERA_INTERFACE = {};
        (function () {
            function a() {
                if (!e) {
                    if (!document.body) return setTimeout(a, 13);
                    e = true;
                    for (var b = 0; b < f.length; b = b + 1) f[b].call(document)
                }
            }
    
            function b() {
                if (!e) {
                    try {
                        document.documentElement.doScroll("left")
                    } catch (c) {
                        setTimeout(b, 1);
                        return
                    }
                    a()
                }
            }
            var c = false,
                d, e = false,
                f = [];
            document.addEventListener ? d = function () {
                document.removeEventListener("DOMContentLoaded",
                    d, false);
                a()
            } : document.attachEvent && (d = function () {
                if (document.readyState === "complete") {
                    document.detachEvent("onreadystatechange", d);
                    a()
                }
            });
            KONTERA_INTERFACE.ready = function (g) {
                if (!c) {
                    c = true;
                    if (document.readyState === "complete") a();
                    else if (document.addEventListener) {
                        document.addEventListener("DOMContentLoaded", d, false);
                        window.addEventListener("load", a, false)
                    } else if (document.attachEvent) {
                        document.attachEvent("onreadystatechange", d);
                        window.attachEvent("onload", a);
                        var h = false;
                        try {
                            h = window.frameElement ===
                                null
                        } catch (k) {}
                        document.documentElement.doScroll && h && b()
                    }
                }
                e ? g.call(document) : f && f.push(g)
            }
        })();
        KONTERA_INTERFACE.getReporterUrl = function () {
            return function (a) {
                return a.indexOf("?") > 0 ? a : a + "?"
            }(function () {
                var a = KONTERA_INTERFACE.reactionResponse ? KONTERA_INTERFACE.reactionResponse.reporterUrl : void 0;
                return a ? a : "http://kona33.kontera.com/KonaReport.js?rId=dummy&p=" + window.dc_PublisherID
            }())
        };
        KONTERA_INTERFACE.getReporterParams = function () {
            return KONTERA_INTERFACE.urlToJson(KONTERA_INTERFACE.getReporterUrl())
        };
        var isWindows = function () {
            return navigator.userAgent.indexOf("Windows") !== -1 ? true : false
        }, isMac = function () {
                return navigator.userAgent.indexOf("Mac") !== -1 ? true : false
            }, getQueryVariable = function (a) {
                for (var b = "", c = null, d = window.location.search.substring(1).split("&"), e = 0; e < d.length; e = e + 1) {
                    c = d[e].split("=");
                    c[0] === a && (b = c[1])
                }
                return b
            }, kona$ = function (a) {
                return document.getElementById(a)
            }, exploreDomainName = function () {
                var a = konaThisURL.toLowerCase(),
                    b = "";
                if (a.indexOf("http://www") === 0 || a.indexOf("https://www") ===
                    0) {
                    b = a.indexOf("http://www") + 11;
                    b = a.substring(b, a.length);
                    b.indexOf("/") > -1 && (b = b.substring(0, b.indexOf("/")))
                } else if (a.indexOf("http://") === 0 || a.indexOf("https://") === 0) {
                    for (var b = a.indexOf("http://") + 7, b = a.substring(b, a.length), c = 0, d = 0; d < b.length; d = d + 1) b.charAt(d) === "." && (c = c + 1);
                    c > 1 && (b = b.substring(b.indexOf(".") + 1, b.length));
                    b.indexOf("/") > -1 && (b = b.substring(0, b.indexOf("/")))
                } else if (a.indexOf("/") > -1) {
                    b = a.indexOf("/");
                    b = a.substring(0, b)
                }
                b.length <= 4 && (b = a);
                return b
            }, isInArray = function (a, b) {
                for (var c =
                    0; c < a.length; c = c + 1)
                    if (a[c] === b) return true;
                return false
            }, KonaHash = function () {
                this.length = 0;
                this.items = [];
                for (var a = 0; a < arguments.length; a = a + 2)
                    if (typeof arguments[a + 1] !== "undefined") {
                        this.items[arguments[a]] = arguments[a + 1];
                        this.length = this.length + 1
                    }
                this.removeItem = function (b) {
                    var a;
                    if (typeof this.items[b] !== "undefined") {
                        this.length = this.length - 1;
                        a = this.items[b];
                        delete this.items[b]
                    }
                    return a
                };
                this.getItem = function (b) {
                    return this.items[b]
                };
                this.setItem = function (b, a) {
                    if (typeof a !== "undefined") {
                        if (typeof this.items[b] ===
                            "undefined") this.length = this.length + 1;
                        this.items[b] = a
                    }
                    return a
                };
                this.hasItem = function (a) {
                    return typeof this.items[a] !== "undefined"
                }
            }, readCookie = function (a) {
                for (var b = document.cookie.split("; "), c = 0; c < b.length; c = c + 1) {
                    var d = b[c].split("=");
                    if (a === d[0]) return unescape(d[1])
                }
                return null
            }, createKonaCookie = function (a, b, c) {
                var d = "";
                if (c) {
                    d = new Date;
                    d.setTime(d.getTime() + c * 864E5);
                    d = "; expires=" + d.toGMTString()
                }
                document.cookie = a + "=" + b + d + "; path=/"
            }, eraseKonaCookie = function (a) {
                createKonaCookie(a, "", -1)
            }, getFlashFullVersion =
                function () {
                    var a = "?";
                    if (navigator.plugins && navigator.mimeTypes.length) {
                        var b = navigator.plugins["Shockwave Flash"];
                        if (b && b.description) return b.description
                    } else {
                        try {
                            b = new ActiveXObject("ShockwaveFlash.ShockwaveFlash.7")
                        } catch (c) {
                            try {
                                b = new ActiveXObject("ShockwaveFlash.ShockwaveFlash.6");
                                a = [6, 0, 21];
                                b.AllowScriptAccess = "always"
                            } catch (d) {
                                if (a[0] === 6) return a
                            }
                            try {
                                b = new ActiveXObject("ShockwaveFlash.ShockwaveFlash")
                            } catch (e) {}
                        }
                        if (b && b.GetVariable("$version")) return b.GetVariable("$version")
                    }
                    return a
            }, getFlashVersion =
                function () {
                    var a = [0, 0, 0];
                    if (navigator.plugins && navigator.mimeTypes.length) {
                        var b = navigator.plugins["Shockwave Flash"];
                        b && b.description && (a = b.description.replace(/([a-zA-Z]|\s)+/, "").replace(/(\s+r|\s+b[0-9]+)/, ".").split("."))
                    } else {
                        try {
                            b = new ActiveXObject("ShockwaveFlash.ShockwaveFlash.7")
                        } catch (c) {
                            try {
                                b = new ActiveXObject("ShockwaveFlash.ShockwaveFlash.6");
                                a = [6, 0, 21];
                                b.AllowScriptAccess = "always"
                            } catch (d) {
                                if (a[0] === 6) return a
                            }
                            try {
                                b = new ActiveXObject("ShockwaveFlash.ShockwaveFlash")
                            } catch (e) {}
                        }
                        b && (a =
                            b.GetVariable("$version").split(" ")[1].split(","))
                    }
                    return a
            }, checkFlashSupport = function () {
                if (getFlashVersion()[0] >= 8 && !KONTERA_INTERFACE.isMobile) window.hasRMFlashSupport = true
            }, checkFlashSupportForHybrid = function () {
                return getFlashVersion()[0] >= 9 ? true : false
            }, konaStartTime = (new Date).getTime(),
            konaPageLoadMeasureReport = {};
        KONTERA_INTERFACE.ready(function () {
            konaPageLoadMeasureReport.pr = (new Date).getTime() - konaStartTime
        });
        var TWEAK_MODE_DEFAULT = 0,
            konaTweakMode = TWEAK_MODE_DEFAULT;
        KONTERA_INTERFACE.replaceStringWith =
            function (a, b, c) {
                return a.replace(RegExp(b, "gi"), c)
        };
        KONTERA_INTERFACE.trace = function () {
            typeof window.console !== "undefined" && typeof window.console.log === "function" && window.console.log.apply(window.console, arguments)
        };
        var konalogMode = !1,
            isKonaFirst = !1;
        "undefined" === typeof window.konaSuffix && (window.konaSuffix = "?00000000482", isKonaFirst = !0);
        KONTERA_INTERFACE.isMobile = navigator.userAgent.match(/Windows Phone|Android|iPhone|iPad|J2ME|Symbian|BlackBerry|sonyericsson|nokia|Windows CE|Opera Mini/i) || document.location.search.match(/(kona_iphone|kona_android)=1/) ||
            document.location.search.match(/kona_platform=(ios|android)/);
        (function () {
            if (window.KONA_PREV_VERSION) {
                var a = KONTERA_INTERFACE.isMobile ? 50 : 90;
                window.konaAB_JSVersion = window.konaAB_JSVersion || a;
                Math.random() * 100 < window.konaAB_JSVersion ? KONA_VERSION = KONA_PREV_VERSION : konaTweakMode = konaTweakMode | 4
            }
            getQueryVariable("konadir") && (KONA_VERSION = getQueryVariable("konadir"))
        })();
        var konaDate = "24_03_2010",
            bOpera = -1 !== navigator.userAgent.toLowerCase().indexOf("opera"),
            bAvant = -1 !== navigator.userAgent.toLowerCase().indexOf("avant"),
            bIE = !bOpera && -1 !== navigator.appName.indexOf("Microsoft"),
            bIE6 = bIE && 6 === navigator.userAgent.charAt(30),
            bIE8 = bIE && -1 !== navigator.userAgent.indexOf("MSIE 8"),
            bChrome = -1 !== navigator.userAgent.toLowerCase().indexOf("chrome"),
            bFlock = -1 !== navigator.userAgent.toLowerCase().indexOf("flock"),
            bSafari = -1 !== navigator.userAgent.toLowerCase().indexOf("safari"),
            bMozilla = !bOpera && !bIE && !bSafari && !bFlock,
            bFireFox2 = bMozilla && -1 !== navigator.userAgent.indexOf("Firefox/2"),
            bFireFox3 = bMozilla && -1 !== navigator.userAgent.indexOf("Firefox/3"),
            bUnknown = !bMozilla && !bFireFox2 && !bFireFox3;
        "undefined" === typeof window.HTTP_KONA && (window.HTTP_KONA = "http://kona.kontera.com");
        "undefined" === typeof window.HTTP_KONAC && (window.HTTP_KONAC = "http://konac.kontera.com");
        var HTTP_KONAX = "http://konax.kontera.com",
            HTTP_IMAGES = "http://images.kontera.com";
        "https:" === window.location.protocol && (HTTP_IMAGES = HTTP_KONAC = HTTP_KONA = "https://secure-js.kontera.com");
        getQueryVariable("konaip") && (HTTP_KONA = "http://" + getQueryVariable("konaip"), HTTP_KONAC = "http://" + getQueryVariable("konaip"));
        var HTTP_KONTERA_BASE = HTTP_KONA,
            konaUserID = "",
            konaSessionID = "",
            konaBaseHere = !1,
            konaRetry = 300,
            delayJSFlowBY = -1,
            isNewLayer = !1,
            isBritannicaFF3 = bFireFox3,
            problematicAdverisers = [];
        KONTERA_INTERFACE.write || (KONTERA_INTERFACE.write = function (a) {
            document.write(a)
        });
        "undefined" === typeof window.dc_flowMode && (window.dc_flowMode = 0);
        window.location.search.match("konaflow") && (window.dc_flowMode = parseInt(getQueryVariable("konaflow"), 10));
        "undefined" === typeof window.dc_flowByCommand && (dc_flowByCommand = !1);
        if (1 ===
            window.dc_flowMode || 3 === window.dc_flowMode) "undefined" === typeof window.dc_startInterval ? window.dc_startInterval = 0 : window.delayJSFlowBY = window.dc_startInterval;
        var isDynamicContent;
        if (2 === window.dc_flowMode || 4 === window.dc_flowMode) isDynamicContent = !0;
        3 === window.dc_flowMode && (dc_flowByCommand = !0);
        var konaHCdemo = -1,
            konaThisURL = window.location.toString(),
            isRestrictedUrl = !1,
            konaHCdemoUrls = new KonaHash("http://www.mensfitness.com/nutrition/vitamins/194", 0, "http://www.mensfitness.com/sports_and_recreation/outdoor_recreation/55",
                1, "http://www.mensfitness.com/Tshirt_Workout/fitness/ab_exercises/136?cid=RSS", 2, "http://www.shape.com/workouts/articles/workout_schedule.html", 3, "http://www.shape.com/workouts/articles/blood_sugar.html", 4, "http://www.huffingtonpost.com/2008/11/16/paul-mccartney-hopes-to-r_n_144138.html", 5);
        konaHCdemoUrls.hasItem(konaThisURL) && (konaHCdemo = konaHCdemoUrls.getItem(konaThisURL));
        var konaHCdemoUrls = null,
            hybridGroup = new KonaHash(7792, 1, 10747, 1, 47839, 1, 52730, 1, 32100, 1, 38144, 1, 64727, 1, 70447, 1, 70448, 1, 73310,
                1);
        hybridGroup.hasItem(dc_PublisherID) && 32100 !== dc_PublisherID && (7792 !== dc_PublisherID && 10747 !== dc_PublisherID) && (konaTweakMode |= 32768);
        var dynamicContentPubs = [50635, 50201, 50629, 50630];
        isDynamicContent |= isInArray(dynamicContentPubs, dc_PublisherID);
        var isForcedDynamicContent = !1,
            forcedDynamicContentPubs = new KonaHash(104880, bIE);
        forcedDynamicContentPubs.hasItem(dc_PublisherID) && (isForcedDynamicContent = forcedDynamicContentPubs.getItem(dc_PublisherID));
        if (48817 === dc_PublisherID)
            for (var restrictedUrlGroup =
                "http://it.toolbox.com/blogs/ppmtoday http://it.toolbox.com/blogs/db2luw http://it.toolbox.com/blogs/db2zos http://it.toolbox.com/blogs/elsua http://it.toolbox.com/blogs/database-talk http://it.toolbox.com/blogs/penguinista-databasiensis http://it.toolbox.com/blogs/juice-analytics http://it.toolbox.com/blogs/minimalit http://it.toolbox.com/blogs/database-soup http://blogs.ittoolbox.com/pm/ppm".split(" "), j = 0; j < restrictedUrlGroup.length; j += 1)
                if (-1 !== konaThisURL.toLowerCase().indexOf(restrictedUrlGroup[j].toLowerCase())) {
                    isRestrictedUrl = !0;
                    break
                }
        var konaHCdelayPagesUrls = ["http://autospies.com/", "http://autospies.com/news/recent.aspx"],
            adPreviewMode = !1;
        if ("undefined" !== typeof window.dc_adPreview || "undefined" !== typeof window.dc_standAloneMode) adPreviewMode = !0;
        var nladPreviewMode = !1;
        "undefined" !== typeof window.dc_nladPreview && (nladPreviewMode = !0);
        var delayPageKeyPubs = [50517, 73384, 58050, 85192, 14429, 23724, 4130, 14541, 32528, 7611, 6682, 8192, 35725, 8079, 5278, 4566, 52987, 12854, 4213, 40109, 61456, 76947, 38115, 52417, 21401, 48820, 35061, 7834, 52993, 50537,
            7795, 73386, 64532, 29104, 35267, 50538, 47547, 36981, 7283, 15304, 7121, 72598, 50375, 6912, 73395, 32101, 58816, 64381, 92562, 144527, 141351, 141350, 155821, 58109, 161007, 161008, 161009, 161010, 161011, 161012, 161013, 161014, 161015, 161016, 159088, 167686, 186783, 187350, 192506, 195798, 196319, 191434, 191137, 187350, 188147, 188075, 209905
        ],
            handlePageKey = function () {
                return isInArray(delayPageKeyPubs, dc_PublisherID) || isInArray(konaHCdelayPagesUrls, konaThisURL) || window.dc_flowMode === 3 ? true : false
            }, isDelayPageKey = handlePageKey(),
            sName = "KonaBase.js",
            userInteractionBaseJs;
        userInteractionBaseJs = KONTERA_INTERFACE.isMobile ? "KonaMobile.js" : "KonaFlashBase.js";
        var newLayerGroupTailoring = !1,
            newLayerPublishersArray = [50198, 70028, 71869, 71881, 96216, 74998, 48414, 100478, 100480],
            konaNonSupportedPlatform = !1;
        if (140070 === dc_PublisherID || 140073 === dc_PublisherID) konaNonSupportedPlatform = !0;
        !KONTERA_INTERFACE.isMobile && !0 === window.dc_MobileOnly && (konaNonSupportedPlatform = !0);
        KONTERA_INTERFACE.isRelatedDemo = "1" === getQueryVariable("kona_related");
        if (isInArray(newLayerPublishersArray,
            dc_PublisherID)) var basePublisherPath = HTTP_KONA + "/javascript/lib/" + KONA_VERSION + "/flash/publishers_design/" + dc_PublisherID + "/",
        isNewLayer = newLayerGroupTailoring = !0, sName = "KonaInfra.js";
        else {
            var isUserInteractionLayer;
            window.konaForceNewLayer ? isUserInteractionLayer = !0 : getQueryVariable("konanl") ? isUserInteractionLayer = "1" === getQueryVariable("konanl") : !checkFlashSupportForHybrid() && !KONTERA_INTERFACE.isMobile ? (isUserInteractionLayer = !1, window.hasRMFlashSupport = !1) : isUserInteractionLayer = !0
        }
        isUserInteractionLayer &&
            (newLayerGroupTailoring = isNewLayer = !1, sName = userInteractionBaseJs, konaTweakMode |= Math.pow(2, 16));
        var isHybridForLinuxFlag = !1;
        if (hybridGroup.hasItem(dc_PublisherID) && (0 < (konaTweakMode & 18432) || 0 < (konaTweakMode & 32768)) && checkFlashSupportForHybrid()) isHybridForLinuxFlag = !0, sName = "FlashKonaLibBaseRM.js";
        if (!isNewLayer) {
            var randCDN = 100 * Math.random();
            getQueryVariable("konac") || 80 >= randCDN ? (konaTweakMode |= 33554432, HTTP_KONTERA_BASE = HTTP_KONAC) : HTTP_KONTERA_BASE = HTTP_KONA
        }
        adPreviewMode && (sName = "KonaBase.js");
        var isCalledKonaBase = !1;
        String.format = function () {
            if (arguments.length === 0) return null;
            for (var a = arguments[0], b = 1; b < arguments.length; b = b + 1) a = a.replace(RegExp("\\{" + (b - 1) + "\\}", "gm"), arguments[b]);
            return a
        };
        var tryToTraceRounds = 5,
            trace = function (a) {
                if (typeof jsTrace !== "undefined") jsTrace.send(a);
                else {
                    tryToTraceRounds = tryToTraceRounds - 1;
                    tryToTraceRounds > 0 ? setTimeout("trace('" + a + "')", 500) : tryToTraceRounds = null
                }
            }, logit = function (a) {
                trace(a)
            }, KonaJSfiles = [],
            scriptTagId = function () {
                var a = "";
                dc_PublisherID ===
                    503 && bIE6 && (a = "ID='catfish-wrap'");
                return a
            }, startDynamicContentFlow = function () {
                if (!(window.dc_flowMode === 0 || window.dc_flowMode === 1)) {
                    if (window.dc_flowMode !== 3) {
                        delayJSFlowBY = 3E3;
                        isDynamicContent = true;
                        if (!isCalledKonaBase) {
                            isCalledKonaBase = true;
                            for (var a, b = 0; b < KonaJSfiles.length; b = b + 1) {
                                a = document.createElement("script");
                                a.type = "text/javascript";
                                a.src = KonaJSfiles[b];
                                document.getElementsByTagName("head")[0].appendChild(a)
                            }
                        }
                    }
                    if (typeof konaBaseHere !== "undefined")
                        if (konaBaseHere) {
                            checkDoRunOnPage();
                            if (window.dc_flowMode ===
                                2) {
                                $JK.isReady = true;
                                $JK(function () {})
                            }
                            dcInit()
                        } else {
                            konaRetry = konaRetry - 1;
                            konaRetry > 0 && setTimeout(function () {
                                startDynamicContentFlow()
                            }, 75)
                        }
                }
            };
        if (!konaNonSupportedPlatform && (isNewLayer && (KonaJSfiles[KonaJSfiles.length] = basePublisherPath + "designParams.js" + konaSuffix), KonaJSfiles[KonaJSfiles.length] = HTTP_KONTERA_BASE + "/javascript/lib/" + KONA_VERSION + "/" + sName, "undefined" !== typeof dc_PublisherID)) {
            var scriptTags = "",
                disableKontera = readCookie("KonteraContentLink"),
                disableInfra = readCookie("disable_kontera"),
                tagID = scriptTagId();
            if (!isRestrictedUrl && !(isHybridForLinuxFlag && !isWindows() && !isMac() || !checkFlashSupportForHybrid() && hybridGroup.hasItem(dc_PublisherID) || disableKontera || disableInfra || 73310 === dc_PublisherID || isDynamicContent || !isKonaFirst)) {
                if (!window.document || !window.document.body) KonaJSfiles = [KONTERA_INTERFACE.getReporterUrl() + '&MQKey=Errors&ReportData={"JSVersion":"' + KONA_VERSION + '","url":"' + escape(window.location) + '","errorType":"badtag"}&r=' + Math.floor(1001 * Math.random())];
                for (var i = 0; i <
                    KonaJSfiles.length; i += 1) scriptTags = "<SCRIPT LANGUAGE='JavaScript' " + tagID + " SRC='" + KonaJSfiles[i] + "'><\/SCRIPT>", KONTERA_INTERFACE.write(scriptTags)
            }
            hybridGroup = null;
            4 === window.dc_flowMode && KONTERA_INTERFACE.ready(startDynamicContentFlow)
        }
    };

  15. #65
    Gre aus'm Pott gold trophysilver trophybronze trophy
    Pullo's Avatar
    Join Date
    Jun 2007
    Location
    Germany
    Posts
    6,045
    Mentioned
    219 Post(s)
    Tagged
    12 Thread(s)
    There are two errors on that page:

    Code:
    Uncaught TypeError: Cannot set property 'innerHTML' of null - combined.js:95
    Uncaught TypeError: Cannot set property 'cur' of undefined - combined.js:8
    The first error is coming from your "hide email" script, the second from jQuery itself.
    What happens when you remove the "hide email" script?

  16. #66
    SitePoint Wizard bronze trophy PicnicTutorials's Avatar
    Join Date
    Dec 2007
    Location
    Carlsbad, California, United States
    Posts
    3,658
    Mentioned
    15 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by Pullo View Post
    There are two errors on that page:

    Code:
    Uncaught TypeError: Cannot set property 'innerHTML' of null - combined.js:95
    Uncaught TypeError: Cannot set property 'cur' of undefined - combined.js:8
    The first error is coming from your "hide email" script, the second from jQuery itself.
    What happens when you remove the "hide email" script?
    Sorry that took so long. OK removed the email script from the test page http://www.websitecodetutorials.com/kontera-test.php but still no dice. I also put a call into Kontera themselves but I'm not holding my breath. Any other thoughts?

  17. #67
    Gre aus'm Pott gold trophysilver trophybronze trophy
    Pullo's Avatar
    Join Date
    Jun 2007
    Location
    Germany
    Posts
    6,045
    Mentioned
    219 Post(s)
    Tagged
    12 Thread(s)
    Hi Eric,

    After a lot of searching, I got things to work (for me at least).
    Here's a demo.

    All I did was swap out your minified version of jQuery with a link to a CDN-hosted one:

    Code:
    <script src="http://code.jquery.com/jquery-latest.min.js" type="text/javascript"></script>
    I'm not sure if this'll work for you, as maybe the kontera script will only work on your server and not locally for me.
    Anyway, give it a try and let me know how you get on.

  18. #68
    Gre aus'm Pott gold trophysilver trophybronze trophy
    Pullo's Avatar
    Join Date
    Jun 2007
    Location
    Germany
    Posts
    6,045
    Mentioned
    219 Post(s)
    Tagged
    12 Thread(s)
    Actually, the Kontera script does seem to be working, at least when you hover over the links.

  19. #69
    SitePoint Wizard bronze trophy PicnicTutorials's Avatar
    Join Date
    Dec 2007
    Location
    Carlsbad, California, United States
    Posts
    3,658
    Mentioned
    15 Post(s)
    Tagged
    0 Thread(s)
    Thanks Pullo! Man that has happened to me so many times. For some reason I never seem to think of upgrading the jQuery or plugin. Anyways thanks that did indeed fix it.


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •