Archive for January 2008

SWFObject Getting Between a Flash Player and IE7 Conflict

January 31 2008

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: , ,

Comments (+)

Calculated Field in Adobe Acrobat Form

January 30 2008

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: , , , ,

Comments (+)

Note to Self: Working with Client-Side Script

January 24 2008

Working with Client-Side Script

Tags: , ,

Comments (+)

Teaching online newswriting

January 24 2008

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: ,

Comments (+)