Search Results

Showing results 1 to 20 of 20
Search took 0.01 seconds.
Search: Posts Made By: cmhampton
Forum: ColdFusion Jul 29th, 2008
Replies: 8
Views: 2,236
Posted By cmhampton
Anytime. Glad to help.
Forum: ColdFusion Jul 16th, 2008
Replies: 3
Views: 1,231
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,236
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,236
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,236
Posted By cmhampton
Are you permitted by your hosting company to use custom tags?
Forum: ColdFusion Jul 14th, 2008
Replies: 8
Views: 2,236
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: MS SQL Jul 11th, 2008
Replies: 8
Views: 1,213
Posted By cmhampton
Can you give me a little more information about what this particular query is trying to do? You may not need to use UNION, but perhaps different JOINs.
Forum: MS SQL Jul 11th, 2008
Replies: 8
Views: 1,213
Posted By cmhampton
Try this:


SELECT
hourStamp,
NULL AS ActualVisits,
SUM(CASE WHEN datestamp < GETDATE() THEN 1 ELSE 0 END) / @numberofdays as HourAverage,
SUM(CASE WHEN dateStamp BETWEEN...
Forum: ColdFusion Jul 8th, 2008
Replies: 11
Views: 4,367
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,367
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 4th, 2008
Replies: 11
Views: 4,367
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,367
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,367
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 Jun 29th, 2008
Replies: 3
Solved: title tag
Views: 1,643
Posted By cmhampton
I'm glad I could help. Please mark the thread solved.
Forum: ColdFusion Jun 23rd, 2008
Replies: 3
Solved: title tag
Views: 1,643
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
Solved: Insert query.
Views: 2,973
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 Apr 10th, 2008
Replies: 2
Views: 2,613
Posted By cmhampton
You need to use a javascript function for this:


function ChangeButtonStatus()
{
if (document.getElementById("Text").value.length > 0)
{
...
Forum: ColdFusion Mar 28th, 2008
Replies: 2
Views: 2,806
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...
Forum: MS SQL Mar 24th, 2008
Replies: 2
Views: 3,612
Posted By cmhampton
Not sure if this is what you are looking for:


DECLARE tempCursor CURSOR FOR SELECT col3 FROM table1 WHERE col2 = @col2
OPEN tempCursor
DECLARE @value As int --or whatever your datatype is
...
Forum: ColdFusion Mar 24th, 2008
Replies: 1
Solved: Using cfcheck!
Views: 1,224
Posted By cmhampton
I'm not sure I understand what you are looking for. Can you please post some code?
Showing results 1 to 20 of 20

 


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

©2003 - 2009 DaniWeb® LLC