Tag Archives: JavaScript

How to execute JavaScript after inserting into element.innerHTML automatically

Here is a scenario: you have some software/component that inserts partial HTML into page using JavaScript element.innerHTML function; you can insert any HTML tags including <script>; you can not call any JS function (software/component does not have such functionality), and … Continue reading

Posted in Programming, Web | Tagged , , , | 2 Comments

2011 links no. 3

Interview With Sacha Barber in The Code Project. The ABA problem occurs during synchronization, when a location is read twice, has the same value for both reads, and “value is the same” is used to indicate “nothing has changed”. However, … Continue reading

Posted in Computers, OS, Programming, Web | Tagged , , , , , , , , , , , , , , , , | Leave a comment

2011 links no. 2

Stack Overflow profiler open sourced: Profiling your website like a true Ninja. Smaller is Faster (and Safer Too). Chrome team have just started using a new compression algorithm called Courgette to make Google Chrome updates small. Read more. Ask Amir … Continue reading

Posted in Programming, Web | Tagged , , , , , , , , , , , | Leave a comment

Test Silverlight speed or Test CPU speed with Silverlight

While we were developing SilverBench (online multicore CPU benchmarking with Silverlight), I found one interesting benchmark project. It is called Balls / Bubblemark animation test. You can test and directly compare speed / performance for the following programming languages: JavaScript, … Continue reading

Posted in Programming, Web | Tagged , , , , , , | Leave a comment

Google AdWords (or any third party) tracking with onclick that really works

Disclaimer: this works for me and my clients today (Sep 2010). If Google or one on the web browsers change something, this may break all tracking, so use this on your own risk. Below is working code fragments. In the … Continue reading

Posted in Web | Tagged , , , , , | 2 Comments

Things that will make your website much faster

What will make my website faster? How to optimize page load time? How to make web site appear to load faster for end user? Updated Feb 9, 2011. This is excerpt from article: How big HTML images / CSS / … Continue reading

Posted in Computers, Programming, Web | Tagged , , , , , , , | Leave a comment

HTTP POST must be encoded and windows.location is encoded

When using JavaScript window.location in your code, be aware, that window.location is encoded using JavaScript escape function. It is not always obvious because characters, that get encoded / decoded using escape() / unescape() is rare in urls. Use the following … Continue reading

Posted in Web | Tagged , | Leave a comment

Edit any website / webpage with simple JavaScript

Copy the following one line JavaScript into address bar of browser to enable ‘edit mode’. javascript:document.body.contentEditable=’true’; document.designMode=’on’; void 0 Now you can add or delete any text, move images and objects, and more. Have a fun! Tested on Internet Explorer … Continue reading

Posted in Web | Tagged , | Leave a comment