Forum: ColdFusion Jun 10th, 2009 |
| Replies: 1 Views: 976 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 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 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 |
Forum: ColdFusion Jul 16th, 2008 |
| Replies: 3 Views: 1,227 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 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 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 Are you permitted by your hosting company to use custom tags? |
Forum: ColdFusion Jul 14th, 2008 |
| Replies: 8 Views: 2,230 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 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 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 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 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 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 Strange. You may need to replace it with °, 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 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 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 Views: 2,959 I'm not sure I understand your question. |
Forum: ColdFusion Jun 29th, 2008 |
| Replies: 3 Views: 1,637 I'm glad I could help. Please mark the thread solved. |
Forum: ColdFusion Jun 29th, 2008 |
| Replies: 13 Views: 7,266 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 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 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 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 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 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 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 Views: 1,637 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 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 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 Views: 2,959 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 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 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 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 I'll have a look at it tomorrow and see if I can help. |
Forum: ColdFusion Apr 19th, 2008 |
| Replies: 6 Views: 3,079 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 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 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 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 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 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... |