Closed Bug 68312 Opened 24 years ago Closed 23 years ago

cnn.com - jbcl "compiled template" behaves incorrectly

Categories

(Tech Evangelism Graveyard :: English US, defect, P1)

x86
Linux
defect

Tracking

(Not tracked)

VERIFIED FIXED

People

(Reporter: vanbalen, Assigned: bc)

References

()

Details

From Bugzilla Helper: User-Agent: Mozilla/5.0 (X11; U; Linux 2.2.15-4mdk i686; en-US; m18) Gecko/20010208 BuildID: 2001020809 I'm taking a guess and placing this under DOM but it may not be the right component. If you go to the above site, you'll find that many of the red buttons (I'll point out the "Get Quote" button under the "Instant Quote:" heading) don't behave like they're supposed to. These buttons, as far as I can tell, call JS functions in a "compiled template" because, while I can find where the calls are being made in the page source, I can't find the actual function definitions. The code for the "Get Quote" button is as follows: <tr class=apbg1><td colspan=2> <INPUT class=bminst TYPE=TEXT NAME=bmIQText size=4><font class=bmtxt>&nbsp;<a ONMOUSEOVER="javascript:pnRoll('bmgetq');"ONMOUSEOUT="javascript:pnRoll('bmgetq');" href="javascript:void(0);" onClick="pnShowIQuote( event ); return false;"><img name=bmgetq src="/ows-img/quote_o.gif" width=57 height=15 border=0></a></font> </td></tr> where the definitions for pnRoll, pnShowIQuote, etc appear to be in the "compiled template." Clincking on this button is supposed to bring up a small popup with the stock quote but, instead, gives me an "Alert" dialog with the following: 3.x browser[/jbcl/cnews/GO?template=bmStockPrice&symbol=rhat&uid=981735056500:module99] It looks to me like Mozilla is misinterpreting a function call. Reproducible: Always Steps to Reproduce: 1.) Go to above url (http://my.cnn.com/jbcl/cnews/Go?template=mycnn) 2.) Close login window that pops up. 3.) Scroll down (if necessary) to the table with the "Instant Quote" text box. 4.) Type a stock symbol into the text box (e.g. rhat). 5.) Click the red "Get Quote" button next to it. 6.) You should now be looking at an alert box with junk in it. Actual Results: Get "Alert" dialog with a path in it. Exact text: 3.x browser[/jbcl/cnews/GO?template=bmStockPrice&symbol=rhat&uid=981735056500:module99] Expected Results: Get pop up window with stock statistics for requested company. This works under both IE and Navigator. If you view the page source, you'll notice that the document is a: <!-- Compiled Template: mycnn Version: jbcl solaris 2.0.0.0.0 MAIN-->
CNN has incorrect javascript: this.isNS = (document.layers) ? true:false; this.isIE = (document.all) ? true:false; if (browser.isNS && (browser.version >= 4)) { layerLoad(moduleIndex, url); pnAdjustLayer(moduleIndex); } else if (browser.isIE && (browser.version >= 4)) { iframeLoad(moduleIndex, url); } else { defaultLoad(moduleIndex, url); } function defaultLoad(moduleIndex, url) { alert('3.x browser['+url+":module"+moduleIndex+']'); } Since mozilla supports neither document.layers nor document.all, you get that alert. Over to evangelism.
Assignee: jst → evangelism
Status: UNCONFIRMED → NEW
Component: DOM Level 0 → Evangelism
Ever confirmed: true
QA Contact: desale → zach
Accepting, thanks bz!
Assignee: evangelism → bclary
Priority: -- → P1
Summary: my.cnn.com jbcl "compiled template" behaves incorrectly → cnn.com - jbcl "compiled template" behaves incorrectly
Contacted daniel.wester@cnn.com 6/23
Status: NEW → ASSIGNED
mycnn.com has been folded into my.netscape.com, so... -> Fixed
Status: ASSIGNED → RESOLVED
Closed: 23 years ago
Resolution: --- → FIXED
vrfy
Status: RESOLVED → VERIFIED
All Evangelism Bugs are now in the Product Tech Evangelism. See bug 86997 for details.
Component: Evangelism → US English
Product: Browser → Tech Evangelism
Version: other → unspecified
Product: Tech Evangelism → Tech Evangelism Graveyard
You need to log in before you can comment on or make changes to this bug.