andrewsw's Contributions
Below are the tutorials, code snippets, and resources andrewsw has submitted to dream.in.code. For more information on Kudos and contributing to dream.in.code visit: http://home.dreamincode.net/?p=about#kudos.
Tutorials
Display Formatted Code in PHP Tutorials (Last Comment: andrewsw, Views: 8,780)
Event Delegation in HTML/JavaScript Tutorials (Last Comment: andrewsw, Views: 7,030)
Cutting Cookies in HTML/JavaScript Tutorials (Last Comment: andrewsw, Views: 7,306)
Debugging Express in C# Tutorials (Last Comment: andrewsw, Views: 7,640)
Debugging Express in VB.NET Tutorials (Last Comment: andrewsw, Views: 19,534)
Code Snippets
Submitted: December 17, 2012        Views: 87
The function will return true/false if the first argument ends with the second. Python already has endswith() but it thought this was interesting anyway.
Smooth async requests in JavaScript by andrewsw
Submitted: December 17, 2012        Views: 115
When requesting a sequence of data asynchronously using ajax the data is not returned at regular intervals, or necessarily in the order the requests were made. The following code uses setInterval to update the page at regular intervals - creating a smooth page-update. The data is inserted into table cells according to the order the data was received. The setIntervals are not initiated until half the data has been received, and will be cleared when all data has been processed. There are callbacks that can be used, other parameters, and a progress bar can be updated.