|
Browse by Tags
All Tags » JavaScript (RSS)
-
I have been frustrated over the last couple of years by an SAP web interface for people to enter timesheets so we can bill clients appropriately. Problems with the interface: Renders differently on different browsers. They recommend IE6 but of course the company upgraded us all to IE7. And in Firefox...
-
..though this is wrong in any language: var lastChar = str.charAt(emailStr.length - 1); if(!lastChar.match(/[^\.]/i)) { return false; } Rarely do I think " w... t... F???! , but this was one of those times. I guess if( str[str.length-1] == '.' ) return false; wouldn't be case insensitive...
-
We were having problems on our site where ad positions would swap content. We still haven't figured out the problem but I did find this while digging through some of Google's JavaScript: function st(a) { return true; }
-
Always fun to see someone trying to "protect" things using Javascript like this. document.write(unescape("protected" string here)). Yawn.
-
[quote user="ActionMan"] Hasn't anyone heard of Prototype? It makes JavaScript 50 easy... var button = $('tdZipButton'); button && button.onclick = CheckZipClick; [/quote] I prefer jQuery . $('#tdZipButton').click(CheckZipClick) Although that's probably already...
-
It's valid JavaScript and Python too.
-
That's easy... just look at EVERY element on the page and only do something if it's a checkbox. Heck, there's only 5000+ elements, how long could that possibly take? for (iCount=0;iCount<=document.all.length;iCount++) { elm = document.all[iCount]; if (elm.type == 'checkbox') { // snip } }
-
I've had similar situations using javascript in IE, although mine were related to drawing and filling in lots of divs at page load time. Adding alerts at key places in the code mysteriously fixed it in IE. A collection of similar problems of this nature led to my theory was that the javascript code was...
-
capnPedro: Yeah, and then i disabled JS and actually selected it. That's what you get for client side verification! I did that too. I hope client-side verification only was intentional.
-
Being very impatience and bored, I decided to implement this random function myself, in JavaScript no less (as I don't have access to a PHP-server). You can find it at the following location: http://home.lyse.net/aadnk/Redirect/WTF.html Enjoy!
|
|
|