Archive for the 'ColdFusion' Category
Coldfusion & Cfouput Group
I really do like Coldfusion. No, really =).
However, here is an ever so useful tip brought to you by me – CodeStar.
So, CFoutput should be on the forefront of every beginner ColdFusion scrip-tor. However, lo- and behold, I wanted to group my results. Simple right? No, not so much. In order to use the [...]
Filed under: Beginner, ColdFusion, RTM | Leave a Comment
Okay, so yesterday I was attempting to finish a lovely page where an administrator can edit emails. I wanted to send the form variables in on submit, but since there are hidden forms due to java script displaying each one separately, I wanted the submit to function with AJAX. This worked fine and dandy until [...]
Filed under: ColdFusion, Intermediate, Javascript | Leave a Comment
Posting a tweet couldn’t be any easier! In PHP you would use CURL to accomplish the same thing.
<cfhttp url="http://twitter.com/statuses/update.xml" method="post"
resolveurl="yes"
username="#username#"
password="#password#">
<cfhttpparam type="url" name="status" value="My API
Tweet!">
</cfhttp>
What’s going on?
Using the Twitter API documentation located here: http://apiwiki.twitter.com/Twitter-REST-API-Method%3A-statuses%C2%A0update, you send in your username and password to the API URL. In this case, http://twitter.com/statuses/update.xml . After that [...]
Filed under: ColdFusion, Intermediate | Leave a Comment
Server side validating fields
As many of us know by now, it is never best to only validate fields with client side code. You must also validate on the server.
As I was writing code today for a multi-page form, I was trying to think of the best way to validate fields. Although the below is verbose and written [...]
Filed under: Beginner, ColdFusion, PHP | Leave a Comment
Today while working with a ColdFusion component and attempting to create a constructor name init, I came across the below error :
The value returned from function init() is not of type manager.
If the component name is specified as a return type, the reason for this error might be that a definition file for such component [...]
Filed under: ColdFusion | 1 Comment
Ever have a textbox where a person needs to enter a number, and they enter something like… $24.56? Or even 45,898.68? I have. The worst is that I wasn’t working on a database I created, and I further needed the dollar entered to be a whole number – without changing a lot of stuff =). [...]
Filed under: ColdFusion, Intermediate, PHP, Regular expressions | Leave a Comment
Search
-
You are currently browsing the ✩CodeStar✩ weblog archives for the ColdFusion category.