Viewing by month: March 2009
I just ran into another goofy Ajax problem with my ColdFusion apps. I have a page using a bound cfdiv to load a form. The form, once submitted, is supposed to take the value of a form field entered on the page and run an AjaxOnLoad event to use that value elsewhere. Here's a simple test to show what I mean.
First, create the main page, test.cfm:
Now in form.cfm, add the following code:
When you submit the form, you'll get the value 2 alerted. I thought I would try to be sneaky and add an if statement around the script so that it was only output when the value wasn't 2, like so:
Hope this saves someone else some frustration.
This is more for myself than anyone else, but I hit an odd snag in ColdFusion this morning. I got an error when trying to create a new structure member using a CreateUUID() function and ColdFusion's shorthand structure notation. The following code fails:
The error I receive is that "Element 435A2A8C-0B35-C81F-4F36BE50E1B8F394 is undefined in a CFML structure referenced as part of an expression." Well duh! I'm trying to create it!
So I changed the code to this, which works perfectly:
Does anyone have any idea why using the CreateUUID() function directly in the assignment statement would cause a problem?
After trying for a week or so to figure out some race conditions with Authorize.net's Automated Recurring Billing, I finally decided to email them and see if they could tell me what was going on. Well it turns out their system is busted, and they don't plan on fixing it. Read on for the details.
Read complete post
< Previous Entries