QQLIB = { WSODHost: "https://www.schwab.wallst.com", WSODToken: "&", WSODNewsAPI: "/retail/research/api/qq/newsAPI.asp", WSODChartAPI: "/retail/research/api/qq/priceChartAPI.asp", TaskTitle: "", Do: function (task) { if (typeof (task) == "string") { this.Actions[task](); } else { this.Actions[task.Action](task.Data); } }, Actions: { News: function (data) { QQLIB.HidePopup(); $("ul.section-last > li#news").append(QQLIB.GetPopupHtml("News")); $(" div#newsPopUp").show(); var symbol = escape(QQ._sym).replace(/\.E/i, "").replace(/\+/g, "%2B"); $.getJSON(QQLIB.WSODHost + QQLIB.WSODNewsAPI + "?" + QQLIB.WSODToken + "symbol=" + symbol + "&callback=?", function (response) { response.type = data.type + "s"; QQLIB.Actions.RenderNews(response); }); //setTimeout( "$('body').bind('mousedown', QQLIB.HidePopup )", 0); }, Disclosure: function (data) { QQLIB.HidePopup(); $("ul.symbol-data").find("span.icon-help").append(QQLIB.GetPopupHtml("Disclosure")); var leftV = $(".icon-help").last().offset().left - $("#discPopUp").outerWidth(true) / 2; $("div#discPopUp").css("left", leftV); $(" div#discPopUp").show(); $("#qqPopupLoader").hide(); $("ul.symbol-data").find("#discPopUp a.icon-close").bind("click", this.HideDisclosure); //setTimeout( "$('body').bind('mousedown', QQLIB.HidePopup )", 0); }, HideDisclosure: function () { $("ul.symbol-data").find("#discPopUp").remove(); $("body").unbind("mousedown", this.HideDisclosure); setTimeout(function () { $("#QQDisclosure").focus(); }, 100); }, RenderNews: function (data) { if (QQLIB.TaskTitle != "Chart") { var html = ""; if (data.count == 0) { if (data.status == 0) { html = "
" + data.statusMsg + "
"; var Symbol = data.symbol; if (((data.symbol).indexOf("@") != -1) || ((data.symbol).indexOf(".") != -1)) { var sym = '@'; if ((data.symbol).indexOf(".") != -1) { sym = '.'; } Symbol = Symbol.substring(0, Symbol.indexOf(sym)); } $("#qqPopupLoader").hide(); $("#qqPopupBody").html(html); $("#qqPopupFooter").html("View More Headlines "); $("#qqPopupFooter a").on("click", function(){QQ.CalltositeCatalystLoging("QuickQuote_ViewMoreHeadlinesAnchorLink");}); QQLIB.CheckWsod(); } else { location.replace(QQ._hst.cli + "/Logout.aspx"); } } else { html = "
Recent " + data.symbol + " Headlines
"; html += ""; $("#qqPopupBody").html(html); $("#qqPopupFooter").html("View More Headlines "); $("#qqPopupFooter a").on("click", function () { QQ.CalltositeCatalystLoging("QuickQuote_ViewMoreHeadlinesAnchorLink"); }); QQLIB.CheckWsod(); $("#qqPopupLoader").hide(); } } $('ul.section-last > li#news').find('.icon-close').bind("click", this.HideNews); $("body").bind("mousedown", this.HideNews); }, HideNews: function () { $("ul.section-last > li#news > div#newsPopUp").remove(); $('ul.section-last > li#news').find('a').removeClass('selected'); $("body").unbind("mousedown", this.HideNews); }, Chart: function (data) { QQLIB.HidePopup(); $("ul.section-last > li#chart").append(QQLIB.GetPopupHtml("Chart")); $(" div#chartPopUp").show(); var symbol = escape(QQ._sym).replace(/\.E/i, "").replace(/\+/g, "%2B"); var tabhtml = ""; $("#tablevel").html(tabhtml); var charthtml = "Chart"; var Symbol = symbol; if (((symbol).indexOf("@") != -1) || ((symbol).indexOf(".") != -1)) { var sym = '@'; if ((symbol).indexOf(".") != -1) { sym = '.'; } Symbol = symbol.substring(0, symbol.indexOf(sym)); } $(".chartHolder").html(charthtml); $("#qqPopupFooter").html("View More Charts"); QQLIB.CheckWsod(); $("#qqChartTabs LI:not(:last)").bind("mousedown", QQLIB.Actions.Flip); $("#qqPopupLoader").hide(); $('ul.section-last > li#chart').find('.icon-close').bind("click", this.HideChart); $("body").bind("mousedown", this.HideChart); $("#qqChartTabs LI:not(:last)").keydown(function (e) { if (e.keyCode == 13) { var days = $(this).find(".link-nav").attr("tscdays"); $("#qqChartImage").attr('alt', "Chart").attr("src", QQLIB.WSODHost + "/retail/research/api/qq/priceChartAPI.asp?symbol=" + symbol + "&days=" + days); $("#qqChartTabs .active").toggleClass("active"); $(this).toggleClass("active"); } }); }, HideChart: function () { $("ul.section-last > li#chart > div#chartPopUp").remove(); $('ul.section-last > li#chart').find('a').removeClass('selected'); $("body").unbind("mousedown", this.HideChart); }, Flip: function () { var symbol = escape(QQ._sym).replace(/\.E/i, "").replace(/\+/g, "%2B"); var days = $(this).find(".link-nav").attr("tscdays"); $("#qqChartImage").attr("src", QQLIB.WSODHost + "/retail/research/api/qq/priceChartAPI.asp?symbol=" + symbol + "&days=" + days); $("#qqChartTabs .active").toggleClass("active"); $(this).toggleClass("active"); if (/chrome/.test(navigator.userAgent.toLowerCase())) { $("#qqChartTabs LI.active").css("margin-top", "1px"); $("#qqChartTabs > li:not(.active, :first-child)").css("margin-bottom", "0px"); $("#qqChartTabs > li:first-child").css("padding-bottom", "4px"); $.browser.safari = false; } } }, HidePopup: function () { $("ul.section-last > li#news > div#newsPopUp").remove(); $("ul.section-last > li#chart > div#chartPopUp").remove(); }, CheckWsod: function () { if (jQuery.browser.msie && jQuery.browser.version == 6) { if (document.location.href.indexOf("path=/retail/research") > 0 || document.location.href.indexOf("path=/retail/accounts") > 0) { $('#qqPopupFooter').css('margin-bottom', '35px'); } } }, GetPopupHtml: function (title) { QQLIB.TaskTitle = title; var htmlPopupType = ""; var qqpop = ""; if (title == "Chart") { qqpop = $("
"); htmlPopupType = "

" + title + "

" + "
" + "
"; } else if (title == "Disclosure") { qqpop = $("
"); htmlPopupType = "

Quick Quote Disclosures

Prices, quotes, market values, and volumes are based on CBOE One Real-Time Quote or consolidated market quote and are real time when initially displayed, except when obtained or refreshed on pages where stock, ETF, or option trading can occur, in which case a consolidated market quote is displayed.
Quotes from the Toronto Stock Exchange and TSX Venture Exchange are delayed for professional users and non-professional users may see a mix of real time and delayed quotes from these two exchanges.
For Mutual funds, the NAV is a daily calculation occurring after market close. This process may take 2 to 4 hours before a final NAV is made available to the public.
Options carry a high level of risk and are not suitable for all investors. Certain requirements must be met to trade options through Schwab. Multiple leg option strategies will involve multiple commissions. Please read the options disclosure document titled Characteristics and Risks of Standardized Options.
(0714-3127,1015-5754)
"; } else { qqpop = $("
"); htmlPopupType = "

" + title + "

"; } qqpop.bind('mousedown', QQLIB.PopupMouseDown); if (title == "Disclosure") { return qqpop.html( htmlPopupType + "
" + "
" + "
" + " " + "
"); } else { return qqpop.html( htmlPopupType + "
" + " " + "
" + "
 
" + " " + "
" + "
" ); } }, PopupMouseDown: function (event) { event.stopPropagation(); } } for (var i in QQ._toDo) { QQLIB.Do(QQ._toDo[i]) }