For modifying the /etc/network/interfaces file, I use another script and it is slightly more complicated. Keep reading →
Internet Explorer Debugger – The way it reports errors is misleading
October 15, 2009 · Leave a Comment
One of my many annoyances of IE is the way it reports Javascript errors. It is misleading and it brings confusion. One of the typical errors is ‘Object Expected’, it generally means reference to an object is undefined. The common cause is a function hasn’t been declared or some syntax errors within. Keep reading →
→ Leave a CommentCategories: Browser/IE · Web
Tagged: IE8, Internet Explorer, javascript, Javascript debugger, Object expected
Ajax/Prototype/Prototype-UI: How to setup Ajax.PeriodicalUpdater with UI.Window
October 10, 2009 · Leave a Comment
This tutorial shows you how to create a Prototype-UI window with Ajax.PeriodicalUpdater. Suppose you need to create an Ajax window and the content is constantly updating. My preferable approach is to wrap both the UI.Window and Ajax.PeriodicalUpdater into one object. To combine PeriodicalUpdater with UI.Window together, the PeriodicalUpdater must be stopped when the window is closed. In order to do that, the UI.Window close event handler must be overridden and the PeriodicalUpdater object is visible to the handler.
→ Leave a CommentCategories: Ajax · Ajax/Prototype · Ajax/Prototype-UI · Javascript · Web
Tagged: ajax, Ajax.PeriodicalUpdater, javascript, PeriodicalUpdater, Programming, Prototype, Prototype-UI
Ajax/Prototype: Use onComplete to separate Javascript client code from HTML page
October 4, 2009 · Leave a Comment
Suppose that you use Ajax.Updater to update the HTML content inside a DOM element. Usually, the HTML forms or table entries require a bit of embedded Javascript code for the event handlers. However, using the onComplete property can give a nice separation between the HTML page and Javascript code. Keep reading →
→ Leave a CommentCategories: Ajax · Ajax/Prototype · Javascript · Programming · Web
Tagged: ajax, Ajax.Request, Ajax.Updater, javascript, onComplete, Programming, Prototype
Prototype-UI: A quick start guide on Ajax Windows
October 4, 2009 · Leave a Comment
Here is a short tutorial showing you how to use Prototype-UI to create Ajax windows and control the properties between windows.
Introduction
There are many window based Ajax frameworks out there in the market, ZK, Backbase, Ext-JS, YUI, GWT, etc. It depends on whether your web application requires to be client or server centric or a bit of both and the complexity of it. They all need a bit of learning curve. Recently, I came across another window based Ajax product, Prototype-UI, which is based on the well known Prototype and Scriptaculous libraries. Prototype-UI is a client centric and it is an extension work on previously known as PCW window library. Keep reading →
→ Leave a CommentCategories: Ajax · Ajax/Prototype · Ajax/Prototype-UI · Javascript · Programming · Web
Tagged: ajax, javascript, Programming, Prototype, Prototype-UI
CSS SyntaxHighlighter 2.0: short tutorial on how to create your own syntax highlighter
July 28, 2009 · 3 Comments
Introduction
This is a tutorial showing you how to create your own syntax highlighter using CSS SyntaxHighlighter 2.0. Before reading this tutorial you need to know regular expression pretty well. Keep reading →
→ 3 CommentsCategories: Javascript · Programming · Syntax Highlighter 2.0 · Web
Tagged: css, javascript, Programming, regex, regular expression, syntaxhighlighter
Malformed HTTP Protocol from www.assoc-amazon.com
July 18, 2009 · Leave a Comment
Again, I was diagnosing HTTP protocol traffic on my local network and I noticed something really strange that disturbed the HTTP protocol analyser module in AppQoS. A serious malformed response packet was found from www.assoc-amazon.com. The response headers were formed without probably ended with CR, only LF and the misspell of the ‘Connection’ header. Here shows an example of the response packet from the site using Wireshark/Ethereal. Keep reading →
→ Leave a CommentCategories: Networking
Tagged: Amazon.com, AppQoS, assoc-amazon.com, http, HTTP Protocol, Webserver
This is a short note of what needed to be changes to get the Intel ixgbe driver build for the FreeBSD 7.1 kernel. I needed to build a product,