GreenSock Animation Platform now has a JS version

The new version of greensock’s tween now comes with a JS version. Based on animation performance tests, the more particles there are, the bigger the performance advantage over other frameworks. htt...

Web Frontend

ie7-js

A JavaScript library to make Microsoft Internet Explorer behave like a standards-compliant browser. It fixes many HTML and CSS issues and makes transparent PNG work correctly under IE5 and IE6. I c...

Web Frontend

Misc notes - jQueryMobile linked page not styled

Today I discovered that in jQueryMobile’s listview, to link to a page in the same directory with the mobile style applied, you must use ./xxxx.html instead of xxxx.html. Otherwise, the target ...

Web Frontend

Chrome doesn't recognize document.documentElement.scrollTop

Problem: In some cases, Chrome doesn’t recognize document.documentElement.scrollTop — it returns a value in IE and FF, but it’s 0 in Chrome. Solution: In that case, use: document.documentElement.sc...

Web Frontend

getURL or navigateToURL popup windows are blocked by IE

Problem description:This afternoon I ran into a hassle: IE7 and IE8 intercept navigateToURL('xxx','_blank') inside Flash; getURL under AS2 gets intercepted the same way. I feel like I’ve run into this before, but it doesn’t happen that often, so I never bothered to dig into what conditions trigger the interception. It came up again today, so it’s a good chance to figure out why. After some searching, I found plenty of discussions from last year. Someone pointed out: IE7 and Firefox (the version I’m using is 2.0.0.11) block opening new windows with the navigateToURL method, while the getURL method in AS2 doesn’t — which is pretty annoying. Since the project chose AS3, we just have to find a way around it. The first thing that comes to mind is ExternalInterface, of course, but testing showed it still gets blocked. Then I wondered whether adding wmode would help, so I added the wmode attribute set to opaque to the page — and sure enough, it worked.

Web Frontend

The trouble with jQuery's window.resize in IE

To do size control on a Flash site, you usually need the Flash movie to scale up and down automatically along with the window size. The approach I took: put a container div in place to hold it, with the Flash set to 100% width and height inside. JS listens for browser window resizing and then resets the size of the container div. The Flash side listens for stage changes and moves views to the corresponding positions, etc. The problem showed up in the jQuery window-resize listener. Code:

Web Frontend

AS3 GIF player and Encoder

AS3GIF lets Flash play animated GIF files, and implements GIF encoding in ActionScript 3. Introduction as3gif download (Google Code) Bookmarking it here for easy lookup.

Flash

In IE, the .type of an input element is read-only!

Today I hit an error and discovered that in IE the .type of an input element is read-only!

Web Frontend

XML parsing error: undefined entity

When I opened the XML generated by PHP, I ran into this error: XML parsing error: undefined entity Location: http://www.mousebomb/Manage/xml.php?act=staticText&name=about Line: 1, Column: 84: H...

Web Frontend

National Day of Mourning, website black-and-white effect

These three days are a national mourning period. We mourn for our compatriots who lost their lives in the earthquake, and pray that they pull through this ordeal as soon as possible and rebuild the...

Web Frontend
12