January
31
2008
Written by: hipsterdoofus at 7:50 pm in the Web Development category.
I had an odd bug turn up today on a project at work. Some Flash objects on a page - embedded using SWFObject 1.5 - were showing up fine in Firefox and IE6 but in IE7 were exhibiting symptoms that the javascript behind SWFObject wasn’t being applied. From the links I followed, the likely culprit was a corrupt Flash Player installation in IE7. Indeed, when I followed Adobe’s uninstall method SWFObject Support Forum - Flash Player uninstaller and then reinstalled the Flash Player in my IE7, everything seemed to be rectified.
Tags: Flash, IE7, SWFObject
January
30
2008
Written by: hipsterdoofus at 4:53 pm
This is a note to myself about the javascript syntax needed to calculate a textbox field on an order form I created. For this example, the price per item is based on the quantity entered via textbox (”text_1″), calculated according to a fixed table that I’ve hard coded. Setting the Event.value property displays the result in the specified textbox.
var qty = this.getField("text_1").value;
var price = 0;
if (qty > 750) {
price = 275;
} else if (qty >375) {
price = 300;
} else if (qty >175) {
price = 325;
} else if (qty >75) {
price = 350;
} else if (qty >25) {
price = 375;
} else if (qty >1) {
price = 400;
} else {
price = 500;
}
Event.value = (qty*price);
This code should be added in the Acrobat form text field properties under the “Calculate” tab. Select “Custom Calculation Script”, press the “Edit” button, and add the javascript.
Reference:
Tags: Acrobat, javascript, notes, programming, snippet
January
24
2008
Written by: hipsterdoofus at 3:16 pm in the Web Development category.
Working with Client-Side Script
Tags: asp.net, notes, programming
January
24
2008
Written by: aurelius at 1:27 pm in the Web category.
I’m always seeking references to collect for better web writing both for myself and for any marketing staff I work with. This link isn’t the strongest, Teaching online newswriting but it does highlight a few key points. The main one regards using principles of search engine optimization as a tool to better focus one’s web copy.
Tags: SEO, writing