The Author Online Book Forums are Moving

The Author Online Book Forums will soon redirect to Manning's liveBook and liveVideo. All book forum content will migrate to liveBook's discussion forum and all video forum content will migrate to liveVideo. Log in to liveBook or liveVideo with your Manning credentials to join the discussion!

Thank you for your engagement in the AoF over the years! We look forward to offering you a more enhanced forum experience.

petera (3) [Avatar] Offline
#1
When I execute the example in ch 3.6 with Microsoft IE 6 it works correctly, as expected.

When I try it with Mozilla Firefox I get the following three messages (copied from the java console):

Warning: Element referenced by ID/NAME in the global scope. Use W3C standard document.getElementById() instead.
Source File: http://imtemp04/IEPOK/IEPOK.html
Line: 9

Warning: Element referenced by ID/NAME in the global scope. Use W3C standard document.getElementById() instead.
Source File: http://imtemp04/IEPOK/IEPOK.html
Line: 10

Error: machine.Deal is not a function
Source File: http://imtemp04/IEPOK/IEPOK.html
Line: 10

Lines 8,9,10 of the source are as follows:

function Cards() {
if (Btn.value == "Deal") {
Hand = machine.Deal();