Copy link to clipboard
Copied
Is it possible to have everything setup so, as the computer user can dbl-click on a .cfm file from windows eg. index.cfm and have it display correctly in the browser ?
At present, clicking on a .cfm file causes Dreamweaver to load and display it.
Dreamweaver can then go on to display the file in the configured browser.
Copy link to clipboard
Copied
I doubt it, because when you're browsing the file system, you're not making an HTTP request, which is what's required to execute a CFM file (the web server asks CF to process the request). Think about it: how can the file system possibly know what your domain name is, what your web root is, and stuff like that?
--
Adam
Copy link to clipboard
Copied
OK
So should I be able to use an internet browser to open any .cfm on my computer
eg. right click on file and say "open with internet explorer" ?
Currently when I do, it doesn't work ?
Copy link to clipboard
Copied
OK, you're not listening. Or I'm not articulating myself.
Opening a file FROM THE FILE SYSTEM does not go via the web server, so the web server doesn't pass the request to CF, so it doesn't get processed, returend to the web server, and returned to the browser.
All you're doing is opening the physical file.
You can't do what you want to do.
--
Adam
Copy link to clipboard
Copied
I'm getting closer to the solution I require.
Let me elaborate. I'm using a 3rd party tool which successfully opens this file on my system:
http://127.0.0.1:3000/site/77521/gbh/sg_admin.html
I now want it to open the equivalent .cfm file on my system:
http://127.0.0.1:3000/site/77521/gbh/sg_admin.cfm
...but it's not currently working. If my Coldfusion Server and IIS are configured correctly, should this file open properly in a browser ?
Copy link to clipboard
Copied
No you cannot do that as Adam has already said.
To open a cfm page that colntains CFML code it must be processed by the ColdFusion application server.
Opening a HTML file requires no server-side processing that is why it opens.
Ken Ford
Copy link to clipboard
Copied
Ken, I'm not making myself clear - I want to open those links in my Internet Browser
So if this works in my browser:
http://127.0.0.1/gbh/htdocs/gbh/products.cfm
Can you explain why this doesn't ?
Copy link to clipboard
Copied
Well the first one is sending the request to port 80, whereas the second one is sending it to port 3000. Is CF listening on port 3000?
--
Adam
Copy link to clipboard
Copied
"Is CF listening on port 3000?"
Would this be in IIS or the CF Administrator ?
Copy link to clipboard
Copied
What address do you use to access the ColdFusion Administartor?
Ken Ford
Copy link to clipboard
Copied
Copy link to clipboard
Copied
http://127.0.0.1/CFIDE/administrator/index.cfm
That means you are not running ColdFusion on port 3000 so the link should be:
http://127.0.0.1/site/77458/gbh/sg_admin.cfm
Not
http://127.0.0.1:3000/site/77458/gbh/sg_admin.cfm
Ken Ford
Copy link to clipboard
Copied
The application I'm using forces me to use port 3000
Is there documentation you can point me to so CF listens to that port ?
Copy link to clipboard
Copied
Are you sure? The first URL you cited didn't have port 3000 mentioned.
And I can't see how an app would •force• you to use a specific port, because it's up to the server what port it uses, not he client software. So it makes no sense that the software forces this as is would simply never work.
Which software app is this?
--
Adam
Copy link to clipboard
Copied
Neither. It's in web.xml or something like that. I don't have a PC in front of me to check exactly which file.
But if you haven't specifically set CF up to use that port... where'd the reference to port 3000 in your URL come from? You must've had some reason to specify it? Either that or it just shouldn't be there. What if you browse to that URL on port 80?
--
Adam
Copy link to clipboard
Copied
It might be JRun.xml, now that I think about it. But either way, doesn't sound like it's relevant here.
--
Adam
Copy link to clipboard
Copied
I think that only works if you install CF using the stand=alone server and not on top of IIS.
I don't think there is an easy way to do it, other than reinstalling CF using the stand-alone server option.
Ken Ford
Copy link to clipboard
Copied
the software I'm using is a plugin for Photoshop called SiteGrinder by medialab
It's a really clever piece of software which converts a .psd into a website. Saves me a ton of time.
Anyway, it uses Photoshop's FILE > AUTOMATE facility, and transfer's control to it's own app. The app then converts my .psd and open's it's own content manager in my browser at the location localhost:3000/etc....
It's fine when I used html, but obviously when I tell it to process a cfm file, things don't work. All it's trying to do is open the same file, at the same URL, but with a .cfm suffix. So I thought there must be a way for Coldfusion Server to adapt to that ?
This is the exact URL the app is trying to open in my browser (and fails)
Copy link to clipboard
Copied
Don't want to waste your time any further. I've spoken to the Medialab guys and they've indicated they'll change things around in the next update, so it keeps this 'content manager' part of the process as html, which will allow the problematic URL to work fine.
Many thanks.