I thought the major benefit of using javascript was to maintain a
consistent view across all browsers?  Is it the case here that IE is
less sensitive to javascript bugs than other browsers?

Interesting anyway.

Michael.

On Fri, 2004-07-16 at 14:07, Douglas Royds wrote:
> I failed to book tickets to the Court Theatre on-line using Moz. I've 
> just tried it using Opera without success, but it works in Exploder 
> (surprise).
> 
> Can someone give it a crack in Konq? You need to go through the Check 
> Availability, Yes they are excellent seats, to get to the Select the 
> Types of Seats Required page. The Continue button is greyed out. In 
> theory, if you enter that you want 2 adult seats, the java script will 
> then allow you to click on continue - so long as you are a MicroSerf.
> 
> Report back, and I'll send them a polite email.
> 
> The javascript from the guilty page follows. Can anyone spot their 
> mistake? If I can tell them what change they need to make, they'll be 
> all the more likely to do it:
> 
> <script ID="clientEventHandlersJS" LANGUAGE="javascript">
> <!--
> var an = new Array(10);
> var ap = new Array(10);
> var nTotalCount, fTotalCost;
> for (i = 0; i<10; i++)
> {
>    an[i] = 0;
>    ap[i] = 0;
> }
> // called by all seat number changes
> function updateSeatCosts(i,p) {
> var code;
> var seatCountName, seatTotalName;
> var seatCount, seatCost;
> switch (i){
> // set value of code
> case 0: code="A";break;case 1: code="F";break;case 2: code="K";break;case 3: 
> code="P";break;case 4: code="S";break;
> };
> // derive control names
> seatCountName = "seatCount" + code;
> seatTotalName = "seatCost" + code;
> // controls
> seatCount = document.all(seatCountName)
> seatCost = document.all(seatTotalName)
> //seatCost.innerText="$"+Number(seatCount.value*p).toFixed(2);
> seatCost.innerText="$"+fixedStr(seatCount.value*p,2);
> //seatCount = document.all(seatCountName)
> //seatCost = document.all(seatTotalName)
> //seatCost.innerText="$"+Number(seatCount.value*p).toFixed(2);
> // running totals
> nTotalCount = 0;
> fTotalCost = 0;
> an[i]=seatCount.value;
> ap[i]=seatCount.value*p
> for (i=0;i<10;i++) {
>       nTotalCount = nTotalCount + Number(an[i]);
>       fTotalCost = fTotalCost + Number(ap[i]);
>       }
> fTotalCost = fTotalCost + Number(main.item("mfBFAmount").value);
> document.all("totalCount").innerText=nTotalCount;
> //document.all("totalCost").innerText="$"+fTotalCost.toFixed(2);      
> document.all("totalCost").innerText="$"+fixedStr(fTotalCost,2);       
> document.all("submit").disabled = (nTotalCount != 2);
> }
> function fixedStr(fValue,nDigit) {
> var sFixedStr=String(fValue);
>       if (sFixedStr.indexOf(".") == -1)
>               sFixedStr = sFixedStr + ".00"
>       else
>               {
>               var diff = sFixedStr.length - sFixedStr.indexOf(".") -1;
>               switch( diff )
>                       {
>                       case 2:
>                               break;
>                       case 1:
>                               sFixedStr = sFixedStr + "0"
>                               break;
>                       case 0:
>                               sFixedStr = sFixedStr + "00"
>                               break;
>                       default:
>                               break;
>                       }
>               }
>       return sFixedStr;
> }
> // take user back
> function cancel_onclick() {
>       //navigate("performances.asp?prodid=2104_CT");
>       navigate("cancelBooking.asp?prodid=2104_CT&bookingid=-867511762&numseats=2");
> }
> function show_graphic() {
>       
> window.open('seatGraphicCaller.asp?BookingID=-867511762','SeatsGraphic','width=420,height=250');
>       }
> 
> //-->
> </script>
> 
> 
> 
> =======================================================================
> This email, including any attachments, is only for the intended
> addressee.  It is subject to copyright, is confidential and may be
> the subject of legal or other privilege, none of which is waived or
> lost by reason of this transmission.
> If the receiver is not the intended addressee, please accept our
> apologies, notify us by return, delete all copies and perform no
> other act on the email.
> Unfortunately, we cannot warrant that the email has not been
>  altered or corrupted during transmission.
> =======================================================================
> 

Reply via email to