from http://perfectionkills.com/understanding-delete/
A couple of weeks ago, I had a chance to glance through Stoyan Stefanov’s Object-Oriented Javascript. The book had an exceptionally high rating on Amazon (12 reviews with 5 stars), so I was curious to see if it was something worth recommending. I started reading through chapter on functions, and really [...]
from http://www.freshblurbs.com/command-line-javascript-cli-mac-os-x
With the increasing popularity of server-side Javascript, you may want to have Javascript everywhere. You can use Javascript outside of a browser, on any platform. There are many choices: you can install Mozilla SpiderMonkey, Google V8 or Mozilla Rhino. If you are like me and use Mac OS-X as your development machine, however, you [...]
from http://www.artzstudio.com/2009/04/jquery-performance-rules/
Once upon a time, all we needed to worry about was reducing Bytes and Requests and playing around with load order to make things faster. Nowadays, we are increasingly impacting one more major component in performance - CPU utilization. Using jQuery and other frameworks that make selecting nodes and DOM manipulation easy can [...]
from http://stackoverflow.com/questions/446892/how-to-find-event-listeners-on-a-dom-node/447106#447106
It depends on how the events are attached. For illustration presume we have the following click handler:
var handler = function() { alert(‘clicked!’) };
We’re going to attach it to our element using different methods, some which allow inspection and some that don’t.
Method A) single event handler
element.onclick = handler; // [...]
from http://samsami2u.wordpress.com/2008/06/04/calling-external-javascript-on-button-click-in-flash/ Calling external javascript in flash is really easy. just follow the guidelines given below:
create a flash button in flash.
single click on the flash button and open the action script window related to the flash button.
in the action script window please write down the following action script:
on (release) {
getURL(“javascript:JavascriptFunction();”,”_self”);
}
where JavascriptFunction() is the [...]
from http://www.quirksmode.org/blog/archives/2005/09/xmlhttp_notes_r_2.html
As we all know an xmlhttp script requires the use of the readystatechange event. In theory, using the load event is also possible, but Explorer doesn’t support it on xmlhttp requests.
Both these events, and the readyState property, have a few odd quirks when used in an xmlhttp environment, though. [...]
Problem:
When doing AJAX call, IE will cache every AJAX call. Hence, url such as ‘/post.do’ will return the same thing and actually the AJAX request will not be sent after the first time.
Solution:
put AJAX url ‘/post.do’ with a time stamp as following:
jQuery.get(‘/post.do?ts=’+(new Date()).getTime());
Key Pressed Javascript Key Code backspace 8 tab 9 enter 13 shift 16 ctrl 17 alt 18 pause/break 19 caps lock 20 escape 27 page up 33 page down 34 end 35 home 36 left arrow 37 up arrow 38 right arrow 39 down arrow 40 insert 45 delete 46 0 [...]
from http://developer.yahoo.com/performance/rules.html
Best Practices for Speeding Up Your Web Site
The Exceptional Performance team has identified a number of best practices for making web pages fast. The list includes 34 best practices divided into 7 categories.
Filter by category:
Content
Server
Cookie
CSS
Javascript
Images [...]
Just a note of jQuery fragment.
// cancel the default event action for input and move to the next element jQuery(‘input’).keydown(function(e){ if (e.keyCode == 13 && (e.target.type == ‘text’ || e.target.type == ‘password’)){ var elements = jQuery(this).parents(‘form’).get(0).elements; var i = 0; for (; i < elements.length; i++) { if (elements[i] [...]
-
Articles
- October 2012
- May 2012
- April 2012
- March 2012
- February 2012
- December 2011
- November 2011
- October 2011
- September 2011
- August 2011
- June 2011
- May 2011
- April 2011
- March 2011
- February 2011
- January 2011
- December 2010
- November 2010
- October 2010
- September 2010
- August 2010
- July 2010
- June 2010
- April 2010
- March 2010
- February 2010
- January 2010
- December 2009
- November 2009
- October 2009
- September 2009
- August 2009
- June 2009
- May 2009
- April 2009
- March 2009
- February 2009
- January 2009
- December 2008
- November 2008
- October 2008
- September 2008
-
Calendar
May 2013 M T W T F S S « Oct 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 -
Meta