Search Results

Showing results 1 to 40 of 47
Search took 0.01 seconds.
Search: Posts Made By: cmhampton ; Forum: ColdFusion and child forums
Forum: ColdFusion Jun 10th, 2009
Replies: 1
Views: 976
Posted By cmhampton
I figured out what this was.

Security permissions on the cfc folder were blocking ajax requests. What I was getting in response was my site's 404 page.

So in other words, I'm stupid. lol
Forum: ColdFusion Nov 25th, 2008
Replies: 1
Views: 976
Posted By cmhampton
I recently updated our servers to CF 8.0.1 and now none of my AJAX code works. I checked the XHR response in Firebug and instead of returning the requested data, it returns the HTML code for my...
Forum: ColdFusion Aug 20th, 2008
Replies: 1
Views: 1,380
Posted By cmhampton
Here's something to start with. To get the first four characters of the user's name, use the LEFT function. Assuming you have a text box on the form called 'txtName':


<cfset username =...
Forum: ColdFusion Jul 29th, 2008
Replies: 8
Views: 2,230
Posted By cmhampton
Anytime. Glad to help.
Forum: ColdFusion Jul 16th, 2008
Replies: 3
Views: 1,227
Posted By cmhampton
You need to create the datasource in the ColdFusion administrator if you have access to it.
Forum: ColdFusion Jul 16th, 2008
Replies: 8
Views: 2,230
Posted By cmhampton
Here goes. There's a lot here, so bear with me. This is actually two custom tags. One to set the variables and one to create the links.

Here is the first custom tag:


<!--- pageNumSetup.cfm...
Forum: ColdFusion Jul 16th, 2008
Replies: 8
Views: 2,230
Posted By cmhampton
OK. I have a custom tag that will pretty much do everything for you. I'll post it in the morning when I get back to work.
Forum: ColdFusion Jul 15th, 2008
Replies: 8
Views: 2,230
Posted By cmhampton
Are you permitted by your hosting company to use custom tags?
Forum: ColdFusion Jul 14th, 2008
Replies: 8
Views: 2,230
Posted By cmhampton
Based on query data? If so yes, but I don't have it with me at the moment. I'll get back to you.
Forum: ColdFusion Jul 8th, 2008
Replies: 11
Views: 4,343
Posted By cmhampton
http://www.paulschou.com/tools/iso8859.html has a pretty comprehensive list. It's a lot to wade through, but you'll probably never need to look anywhere else.

BTW, is this for an engineering...
Forum: ColdFusion Jul 7th, 2008
Replies: 11
Views: 4,343
Posted By cmhampton
Found it!

This will replace 67 special characters with their HTML equivalent. I've used this to generate RSS feeds before, so it should work just fine for you.


<cffunction name="formatXML"...
Forum: ColdFusion Jul 7th, 2008
Replies: 3
Views: 3,225
Posted By cmhampton
Go into the ColdFusion Administrator and turn on Robust Debugging. Check the line number and let me know where the error is occurring. I didn't get a chance to actually test this, so I probably...
Forum: ColdFusion Jul 7th, 2008
Replies: 3
Views: 3,225
Posted By cmhampton
Couple of things here:

Use CFFILE to upload the files to the server.

(http://livedocs.adobe.com/coldfusion/8/htmldocs/help.html?content=Tags_f_02.html#4003197)

You also need to change the...
Forum: ColdFusion Jul 4th, 2008
Replies: 11
Views: 4,343
Posted By cmhampton
I have a CFC method somewhere that replaces around 30 commonly used symbols. If I can find it, I'll post it.
Forum: ColdFusion Jul 2nd, 2008
Replies: 11
Views: 4,343
Posted By cmhampton
Strange. You may need to replace it with &deg;, still inside the cdata. I don't remember the ascii codes for the decimal character, but I'm sure that's pretty easy to find.
Forum: ColdFusion Jul 2nd, 2008
Replies: 11
Views: 4,343
Posted By cmhampton
Wrap your content inside a <![CDATA[ ]]> tag. XML will ignore any special characters inside.


<instrumentation.InstrRange><![CDATA[-40° to 70°C]]></instrumentation.InstrRange>
Forum: ColdFusion Jul 2nd, 2008
Replies: 1
Views: 1,789
Posted By cmhampton
I'm not aware of any way to get this to work in CF. However, in your SQL query/stored procedure, you could put the data into temp tables, join them there and then return the results to CF. This...
Forum: ColdFusion Jun 29th, 2008
Replies: 3
Solved: Insert query.
Views: 2,959
Posted By cmhampton
I'm not sure I understand your question.
Forum: ColdFusion Jun 29th, 2008
Replies: 3
Solved: title tag
Views: 1,637
Posted By cmhampton
I'm glad I could help. Please mark the thread solved.
Forum: ColdFusion Jun 29th, 2008
Replies: 13
Views: 7,266
Posted By cmhampton
You can use a second Replace function:


<cfset mailBody = Replace(#form.body#, "{NAME}", #rsSubscribersMail.name#, "all") />
<cfset mailBody = Replace(#mailbody#, "{SURNAME}",...
Forum: ColdFusion Jun 27th, 2008
Replies: 1
Views: 1,332
Posted By cmhampton
When you use a variable in the list element of the CFLOOP tag, it must be enclosed in #'s...


<cfset myd = "">
<cfloop list="#form.mydata#" index="i" delimiters=",">
<cfoutput>
<cfset myd...
Forum: ColdFusion Jun 25th, 2008
Replies: 13
Views: 7,266
Posted By cmhampton
You need to cfloop through the query.


<cfquery name="rsSubscribersMail" datasource="DATA">
SELECT subscriber.subscriberID, subscriber.name, subscriber.surname, subscriber.email
FROM subscriber...
Forum: ColdFusion Jun 24th, 2008
Replies: 13
Views: 7,266
Posted By cmhampton
You can string replace the {NAME} with the user's name (which I assume is on a form somewhere). For example:


<cfset mailBody = Replace(form.body, "{NAME}", form.name, "all") />
Forum: ColdFusion Jun 24th, 2008
Replies: 3
Views: 1,369
Posted By cmhampton
In a typical situation, yes, that should be all you need. Provided of course the pages do what they are supposed to.

Of course, your situation may or may not be typical. At this point I would...
Forum: ColdFusion Jun 24th, 2008
Replies: 1
Views: 1,471
Posted By cmhampton
That's not so much a coldfusion problem as it is an SQL "feature". Floats are not exact representations of numbers, but approximates. Here's an explanation:...
Forum: ColdFusion Jun 23rd, 2008
Replies: 1
Views: 1,215
Posted By cmhampton
I'm sorry. I'd love to help you with that but I've never used cfexchangemail. Do you know what the special characters are? If so, perhaps you could strip them from the UID before you pass it to...
Forum: ColdFusion Jun 23rd, 2008
Replies: 3
Solved: title tag
Views: 1,637
Posted By cmhampton
Here's one way:

Get your db information before you output the <head> tag on your page.

Inside the <title> tag, output the info from your query. For example:


<cfquery datasource="dsn"...
Forum: ColdFusion Jun 23rd, 2008
Replies: 3
Views: 1,369
Posted By cmhampton
Are you saying that the insert.cfm page is missing?

If so, do you have any information (table structures, etc..) so it can be recreated? I'm more than happy to help if you can give me more info.
Forum: ColdFusion Jun 23rd, 2008
Replies: 1
Views: 1,268
Posted By cmhampton
Not being able to see the code, I don't have any concrete solutions, but it may be an issue with cookies. If you are able to cancel the second login screen and still get it, that leads me to believe...
Forum: ColdFusion Jun 23rd, 2008
Replies: 3
Solved: Insert query.
Views: 2,959
Posted By cmhampton
Use SCOPE_IDENTITY(). It will return the id of the record just created, provided the field is set as the identity column.


<cffunction name="insertData" access="public">
<cfargument...
Forum: ColdFusion Jun 23rd, 2008
Replies: 1
Views: 1,186
Posted By cmhampton
You don't technically need any version to code for it, it isn't like Visual Studio. You can code in pretty much any text editor.

But to answer your question, if you are going to buy a new copy of...
Forum: ColdFusion May 22nd, 2008
Replies: 1
Views: 1,438
Posted By cmhampton
I think first of all you need to figure out why your queries are taking longer than 100 seconds. Unless your running a migration script, your queries should be much faster.

Is this the query...
Forum: ColdFusion May 2nd, 2008
Replies: 1
Views: 1,204
Posted By cmhampton
Honestly, there are a lot of legal and logistic issues with setting up your own newsletter app (blacklists, spam laws etc...).

A quick Google search returned these results (can't vouch for how...
Forum: ColdFusion Apr 24th, 2008
Replies: 6
Views: 3,079
Posted By cmhampton
I'll have a look at it tomorrow and see if I can help.
Forum: ColdFusion Apr 19th, 2008
Replies: 6
Views: 3,079
Posted By cmhampton
One thing to check is to cfdump the form structure and make sure that the data from the form is correct.


<cfdump var="#form#">


Do you have any <cfset> statements that could be...
Forum: ColdFusion Apr 10th, 2008
Replies: 1
Views: 1,452
Posted By cmhampton
The group attribute of cfquery is one of the most unknown and under-appreciated pieces of the entire language. It's so incredibly simple to use it's a wonder more people aren't told about it.

I...
Forum: ColdFusion Apr 10th, 2008
Replies: 2
Views: 2,603
Posted By cmhampton
You need to use a javascript function for this:


function ChangeButtonStatus()
{
if (document.getElementById("Text").value.length > 0)
{
...
Forum: ColdFusion Apr 3rd, 2008
Replies: 1
Views: 1,415
Posted By cmhampton
I'm not sure if this will work, but create an application.cfm file in the pdf folder that has user authentication code. I believe that the CF processor will read this file before it sends the pdf to...
Forum: ColdFusion Mar 31st, 2008
Replies: 2
Views: 5,632
Posted By cmhampton
You need to specify a value for each one.

For instance:


<cfinput type="checkbox" name="gender" value="Male" checked>
</label></td>
<td>Female</td>
<td><label>
...
Forum: ColdFusion Mar 28th, 2008
Replies: 2
Views: 2,796
Posted By cmhampton
First of all, please don't name your query cool.recordCount. RecordCount is a property of the query object. Name it something like qryCool.

Secondly, you're missing a </cfif> tag. You have two...
Showing results 1 to 40 of 47

 


About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC