[WSG] internet explorer 8 problems
hi. okay so how do i use the java se debugger. and yes i am blind and using jaws for windows from http://www.freedomscientific.com so not offended. should have made that known. sorry about that. okay will be pasting the code for the java script and the html files. as i do not have a actual site. and just on my local hard disk. sorry. thank you. marvin. ps: so here the code below. function setCookie(cName,value,expires) { var exDate=new Date(); exDate.setMinutes(exDate.getMinutes()+expires); cookieString = cName + "=" + escape(value) + ";expires=" + exDate.toString() + ";path=/"; document.cookie = cookieString; } function getCookie(cName) { // We pass the textbox object so that we can change it's value. var cStart; // This is used for the index of the beginning of the cookie's value. var cEnd; // This is used for the index of the beginning of the string of the expiration date and time. var cValue = ""; if (document.cookie.length>0) // Determine if a cookie has been set at all { cStart=document.cookie.indexOf(cName + "="); if (cStart!=-1) // If there is an entry in the cookie who's value starts at position cStart { cStart=cStart + cName.length+1; // We need to take into account the equal sign cEnd=document.cookie.indexOf(";",cStart); if (cEnd == -1) cEnd=document.cookie.length; /* No semicolon was found, so this must be the last entry. */ cValue = unescape(document.cookie.substring(cStart,cEnd)); /* Set the return value to the cookie entry's data. */ } } return cValue; } function isNumeric(strText) { var validChars = "0123456789"; // the string of acceptible characters var curChar; // This is used to store the character currently being processed. var isANumber = true; /* The function returns true if the string is numeric, otherwise it returns false. */ if (strText.length == 0) /* if the length of the string is 0, the user did nnot enter anything, and we do not need to go any further. */ { isANumber = false; return isANumber; /* this returns false and causes us to exit the function. */ } for (i = 0; (i < strText.length && isANumber); i++) /* If we encounter a character in the string that is not a digit, isANumber is set to false and we exit the loop early. */ { curChar = strText.charAt(i); /* The charAt function with I passed as its parameter gets the character at the ith position in the string. */ if (validChars.indexOf(curChar) == -1) /* The indexOf function with curChar passed as its parameter searches the validChars string to see if it contains the value in curChar. If it doesn't, it returns -1. */ isANumber = false; } return isANumber; } Shopping cart application var items = new Array(); var prices = new Array(3.50, 5.00, 7.50, 6.25); // The list of prices for each item. var quantity = new Array(); // The quantity of the given item. function addToCart(iSelected) // iSelected is the selectedIndex property value of the dropdown list { var i = items.length; // I is used in our method of naming the cookie entry. with (myForm) { try { if (iSelected == -1) throw "noSelectedItem"; if (txtNumItems.value <= 0 && txtNumItems.value.length > 0) /* A number was entered, but it is out of range. */ throw "valueOutOfRange"; if (!isNumeric(txtNumItems.value)) throw "notANumber"; items.push(ddlItems.options[iSelected].value); // The push method appends an item to the end of the array. quantity.push(txtNumItems.value); setCookie(i + "cItems", items[i] + "," + prices[iSelected] + "," + quantity[i], 30); /* We prepend the current value of i to the beginning of "cItems" so that we will have a unique name for each entry. */ txtNumItems.value = ""; ddlItems.selectedIndex = -1; alert("Item added to cart"); } catch (invalidInputException) { switch (invalidInputException) { case "noSelectedItem": alert("You did not select an item to purchase. Please select from the list."); break; case "notANumber": alert("The value you entered for the number of items contains a nonnumeric character, or no value was entered."); break; case "valueOutOfRange": alert("The value f
Re: [WSG] INTERNET EXPLORER 8 PROBLEMS
On 3/8/2010 12:47 PM, Marvin Hunkin wrote: HI. DID A TUTORIAL FROM JEFF DURRUM ON HTTP://WWW.BLINDGEEKS.ORG http://www.blindgeeks.org/> AND FOR SOME STRANGE REASON. INTERNET EXPLORER 8. DOES NOT SHOW ME THE RESULTS OF A PAGE. WRITING A JAVASCRIPT APPLICATION. A SHOPPING CART. WHERE YOU SELECT ITEMS AND PRCIES IN A DROP DOWN COMBO BOX, AND THEN ENTER A QUANTITY IN A EDIT BOX. THEN CLICK THE ADD TO SHOPPING CART BUTTON. A MESSAGE POPS UP SAYING THE ITEM WAS ADDED. THEN YOU CLICK ON THE VIEW SHOPPING CART. WHICH TAKES YOU TO A PAGE, AND SHOW YOU THE TOTAL PRICES , TAXES, AND TOTALS OF THE ITEMS PURCHASED. THEN YOU HAVE A COMPLETE YOUR SHOPPING CART BUTTON, WHICH CLEARS OUT ALL YOUR TOTALS. AND PRESENTS YOU WITH A MESSAGE. TO CHECK OUT OR YOUR ITEMS ARE COMPLETE. BUT IT IS NOT WORKING IN INTERNET EXPLORER 8. SO DO I UNINSTALL, TRY REINSTALLING. WAS WORKING LAST WEEK, BUT NOT NOW. WORKS IN FIREFOX. ANY IDEAS. TRIED SETTING THE PRIVACY TO 40 % AND TRIED SETTING THE SECURITY OPTIONS AND ALLOWING ACTIVE EX CONTENT. BUT DID NOT STILL WORK. SO ANY IDEAS, OTHER PROGRAMS, ACTIVE EX I COULD INSTALL. TEARING MY HAIR OUT. THANK YOU. MARVIN. *** List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm Help: memberh...@webstandardsgroup.org *** I'm guessing your blind, so please don't take offence to this, but could you kindly move your little finger 7/16ths of an inch to its left and *turn off caps lock*. As to your actual problem, try using IE8s JavaScript debugger to work out the actual error. Don't use ActiveX, you'll regret it later on. We might be able to give you more assistance if we knew the actual site, or had the code that was causing this. - Josh *** List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm Help: memberh...@webstandardsgroup.org ***
[WSG] INTERNET EXPLORER 8 PROBLEMS
HI. DID A TUTORIAL FROM JEFF DURRUM ON HTTP://WWW.BLINDGEEKS.ORG AND FOR SOME STRANGE REASON. INTERNET EXPLORER 8. DOES NOT SHOW ME THE RESULTS OF A PAGE. WRITING A JAVASCRIPT APPLICATION. A SHOPPING CART. WHERE YOU SELECT ITEMS AND PRCIES IN A DROP DOWN COMBO BOX, AND THEN ENTER A QUANTITY IN A EDIT BOX. THEN CLICK THE ADD TO SHOPPING CART BUTTON. A MESSAGE POPS UP SAYING THE ITEM WAS ADDED. THEN YOU CLICK ON THE VIEW SHOPPING CART. WHICH TAKES YOU TO A PAGE, AND SHOW YOU THE TOTAL PRICES , TAXES, AND TOTALS OF THE ITEMS PURCHASED. THEN YOU HAVE A COMPLETE YOUR SHOPPING CART BUTTON, WHICH CLEARS OUT ALL YOUR TOTALS. AND PRESENTS YOU WITH A MESSAGE. TO CHECK OUT OR YOUR ITEMS ARE COMPLETE. BUT IT IS NOT WORKING IN INTERNET EXPLORER 8. SO DO I UNINSTALL, TRY REINSTALLING. WAS WORKING LAST WEEK, BUT NOT NOW. WORKS IN FIREFOX. ANY IDEAS. TRIED SETTING THE PRIVACY TO 40 % AND TRIED SETTING THE SECURITY OPTIONS AND ALLOWING ACTIVE EX CONTENT. BUT DID NOT STILL WORK. SO ANY IDEAS, OTHER PROGRAMS, ACTIVE EX I COULD INSTALL. TEARING MY HAIR OUT. THANK YOU. MARVIN. *** List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm Help: memberh...@webstandardsgroup.org ***
[WSG] IE8 grouping selectors bug triggers by non-supported selector
Came across this bug which took me a while to figure the culprit. In the example, the “:first-child” and “:last-child” on the left column, the last block of the content area and GO button that are grouped with other selectors, shared the same blue background image. IE8 does not support “:last-child” and ignore all other selectors. Same behavior doesn't showed in IE9 preview nor IE6/7. http://greensho.nexcess.net/iebugs/grouping-selectors-bug.html http://greensho.nexcess.net/iebugs/grouping-selectors-bug-ie8.png tee *** List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm Help: memberh...@webstandardsgroup.org ***