-
My name is Brad Harris, and I currently reside in the Abq, New Mexico area. I'm a web-developer, specializing in front-end development. PHP is my weapon of choice for the server side, but my creative side thrives on Javascript and CSS.
-
My Recent Ramblings
Tags
Archives
Author Archives: brad
slikcalc 1.1 release
I’ve just released a new build of slikcalc – javascript calculator library that includes a few small bug fixes, and some shortcuts to the API. The new API for creating calculators looks as follows:
var columnCalc1 = slikcalc.create('column', {
total: { id: 'cc-1-total' },
registerListeners: true,
calcOnLoad: true
});
as opposed to:
var columnCalc1 = new slikcalc.ColumnCalc({
total: { id: 'cc-1-total' },
registerListeners: [...]
Tagged javascript, slikcalc Leave a comment
Google Chrome – Holy Smokes
The cats out of the bag, Google released their new browser, http://gears.google.com/chrome/. I was pretty excited about the new features that this browser would include, some of which are a brand new Javascript VM called V8, along with using Webkit for the rendering engine. The fact that each tab in the browser is [...]
Tagged browser, google Leave a comment
Teaching an old Framework new tricks!
In summary, I want to discuss an alternative approach for developing a rich, dynamic UI using Struts1. The basic approach is:
Java Object to JSON string
JSON String consumed by Javascript
Manipulate UI, update Javascript model
On submit of form serialize Javascript model to JSON string
Set value of hidden input to JSON string
JSON string to Java Object on [...]
Tagged ajax, java, javascript, struts Leave a comment
Followup on YUI : getFirstDescendantBy()