coldfusion

ColdFusion WDDX conversion doesn't work with ColdFusion images?

I'm trying to create a CFML to WDDX packet as part of a caching mechanism. I get a cfwddx error related to a Java image variable when I attempt to pass in a coldfusion image as part of input. I can get the same error creating a new CF image and then passing that in as input. <cfwddx action="cfml2wddx" input="#aNewCFImage#" output="wdd...

Can I programmatically manage (add/edit/delete) IIS 7 Sites from Coldfusion?

Using Coldfusion 8/9, how would I go about managing IIS7. For example: I am building a website generator, when someone fills out a form, a website will be generated. A step in this process will be to create an IIS site with specific host headers/ip bindings. Another step may be to allow the user to upload a SSL certificate. That may...

ColdFusion 7/8 Varied Timezones

This problem makes me really sad. I'm working with a pretty archaic web application with an eclectic mix of programming languages. Previously, it stored any and all datetimes in a Datetime field in our MySQL database. Until now, everything has been done in server time, which happens to be US/Pacific. I was tasked with adding "Timezone fu...

SQL question for e-mail thread view

I would like to query back a list of threads, with each of the conversation showing the latest message max(date), and a count of how many messages in the conversation count(*), group by threadID. Here's the SQL table Message ------------- messageID (int) subject (varchar) ... date (date) threadID (guid) How do I produce the following...

Coldfusion seems to get caught up loading UDF's

I am currently running too many sites on a server and I don't think the template cache can handle it. But, what really seems to be the biggest drag is when I load my UDF library per site. I say this because whenever I run Fusion Reactor to see where the holdup is, the stacktrace is always sitting on the template that loads the UDF's. ...

Good Websites/Blogs/Books to learn COLDFUSION?

Hi all, I am newbie to cold fusion. I am in plan to create a e-commerce as well as business oriented application using cold fusion as front-end and sql-server as back end. It contains all the functionality including db connectivity, report generation, etc... I found some tutorials, but i like to get a clear vision from SOF professional...

Variable to hold results of http request is undefined

In my code, I am making a http request (using cfhttp) and storing the result in a variable. The http request does return results- I know this because I am logging the time of the request and the results. However, something is apparently going wrong sometimes with storing the results of the http request (cfhttp.filecontent) in a variabl...

Is there a ColdFusion equivalent of phpinfo()

Is there a ColdFusion equivalent of phpinfo()? I don't know much about ColdFusion except that our university servers support it. I basically just want to know what version we are running. ...

ColdFusion ORM creates wrong data type

Database: MySql 5.1.47 on OS X ORM Settings in Application.cfc: this.ormEnabled = true; this.ormsettings = { autogenmap = true, dbCreate = application.dbCreate, automanageSession = true, datasource = application.dsn, logSQL = application.logSQL, sqlScript = application.sqlScript }; News.cfc /** * These are the news item...

Coldfusion neo-cron.xml has been modified - when it hasn't been

We've just upgraded from CF 9 to 9.0.1 (ColdFusion 9 Update 1). We're running on Windows Server 2008. After the upgrade we noticed on our server that we were getting a lot of these messages in server.log: "Information","scheduler-6","10/05/10","12:34:48",,"neo-cron.xml has been modified . Reloading the service coldfusion.scheduling.Cr...

ColdFusion Send page as it process it

Is there a way in ColdFusion (or Railo for that matter) to begin sending the client the page as it processes it? ...

Coldfusion + Google Map API v3 — info window and set bounds

Simply, I seem to be able to write code that either creates a clickable marker for a pop-up infoWindow OR gets the bounds of the returned markers and resets the map extent and zoom levels. I can't seem to combine the two. My example below will nicely set the extent of the map to the results of the query. But I don't quite know how to ...

I deleted my Application.log file

In the ColdFusion administrator, I deleted my application.log file thinking that it would be created again the next time I ran the job. But it's still not there. Q: How do I turn on the application.log file again, and what's the correct way to clear the records in it? ...

ColdFusion: Reset JRun server

Is there a way to reset the JRun server from within a ColdFusion page? ...

What is the best way to create an Excel file with coldfusion?

Hi, i want to create an excel file with coldfustion. since today, i was saving a file AS an html AND changing the extension. i need to create now a real excel file. some advise? thanks ...

MySQL Calculate Time Online

Would it be possible to calculate time online from a table of something like logtype time ---------------- login 2:30 logout 2:45 login 3:20 logout 4:50 login 5:00 login 5:10 logout 6:00 It would have extra logins because sometimes the server crashes and doesn't add logout. Can you do somethi...

Coldfusion REST API returning 'connection failure. status code unavailable.' when called remotely

Now I want to prefix this with I am unsure whether this should be here or on server fault so I'll post it here to begin with. We are developing a REST API in Coldfusion 9 which is being hosted on IIS 7 for a client which on certain calls must call another internal webservice. When making these calls from the server that the API is host...

Coldfusion Web Service - Connection refused

Hello, I am receiving following error while connecting to coldfusion web service from client machine org.apache.commons.httpclient.HttpException : Connection refused: connect ( actual link to cfc component ) any idea? ...

SQL Selection of products in a single category

So here is what I am trying to do. My boss wants to put all vehicles that we have on our homepage and randomly pull 8 of them at a time. The way our database schema is setup has the products, and categories in separate tables using a cross reference to locate the category the product falls under. The table with the categories has a paren...

Passing wrong values from Child page to Parent page.

I have Parent page and a Child popup window page (empW.cfm). The Child page has search field, that searches and displays results. I have to select one search result from thre Child page and populate it on the Parent page. I am unable to pass the correct selected value from the Child to Parent page. Parent page:- <script type="te...