Saturday, February 16, 2008

Adding Scripts to others' web pages: a few thoughts

There could be problems doing things like document.body.appendChild when there DOM hasn't loaded yet.
Therefore you need to do things to watchout for that

< body onload = "customfunction()" >

or put script tags right before body

or window.onload =

or window.attachevent("onload",customfunction)
window.addeventlistener("load",customfunction,false) //or true I dont know

What about large images etc. that you dont want to wait for

another thing to research is the defer attribute of the script tag

another thing to research is the DOMContentLoaded

http://developer.mozilla.org/en/docs/Gecko-Specific_DOM_Events
"Fired on a Window object when a document's DOM content is finished loaded, but unlike "load", does not wait till all images are loaded. Used for example by GreaseMonkey to sneak in to alter pages before they are displayed. "

what about document.write

http://www.hedgerwow.com/360/dhtml/ie-dom-ondocumentready.html

unobtrusive javaScript

Friday, February 15, 2008

Feedback Flex Exapmle

Click the background to minimize or maximize

Monday, February 11, 2008

Percentage of Flash / Java users

http://www.adobe.com/products/player_census/flashplayer/

Flash Ball example slow in some cases

The ball example that I did is slow in IE7 on my windows vista.
When I open the swf in the browser on IE and on Safari it is also slow.
In Firefox,opera,safari it is fast when embedded in a page.
When I open the swf in the browser on firefox 2, it starts fast and then goes slow.
In opera when It is embedded in a page it is fast, and when I open it in a browser it is also fast!

Actionscript and flex language reference online

What's the difference between this http://livedocs.adobe.com/flex/201/langref/index.html and this http://livedocs.adobe.com/flash/9.0/ActionScriptLangRefV3/

Java Applet Example

Flash / Actionscript example

Use arrow keys to move the orange ball