Re: CFHTTP, self-signed certificates - authentication issues.
current SSL certs are now using 2048 bit or greater encryption, which requires an update to the CA cert in browsers. Perhaps the same is tue for Java/ColdFusion ? On Wed, Sep 14, 2011 at 5:23 AM, Leigh cfsearch...@yahoo.com wrote: Also, is there a way to verbosely log the cf / java behind cfhttp to see a more detailed error message? If you do not mind tons of logging, try using the jvm argument -Djavax.net.debug=all http://kb2.adobe.com/cps/998/9987e902.html ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:347456 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: Caching ajax / dhtml
I switched to cffeed. I'm afraid we'll hit Twitter's limit too easily. I've already seen it in on the staging site. Thanks, I knew that about the client side javascript, I was just thinking that somehow the CF could pre-render that. Working too late, too many hours -Matt On Tue, Sep 13, 2011 at 8:24 PM, Michael Grant mgr...@modus.bz wrote: Not on the client side. Either way you have to hit a server. Better Twitter's than yours I'd say. On Tue, Sep 13, 2011 at 7:12 PM, Matt Williams mgw...@gmail.com wrote: I have some divs that are populated with tweet.js (jquery plugin for twitter). So on document.ready(), the divs are populated by the plugin. I don't want to hit twitter on every page load and want to cache the populated divs somehow. Is there a way to take those populated divs and cache them? Simply saving the content to html is still saving the javascript too and not the actual output. I guess I may have to switch to grabbing the feed using cffeed or something, but this code is already done and styled, so I was hoping for something else. Thanks, -Matt ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:347457 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: Caching ajax / dhtml
Well, cf can pre-render it. Two ways you could accomplish this are a) use twitter's api to get the tweets on the server side and cache it. or b) create another js function that takes the tweet results and passes them back to the server for caching, thus avoiding api development. On Wed, Sep 14, 2011 at 7:13 AM, Matt Williams mgw...@gmail.com wrote: I switched to cffeed. I'm afraid we'll hit Twitter's limit too easily. I've already seen it in on the staging site. Thanks, I knew that about the client side javascript, I was just thinking that somehow the CF could pre-render that. Working too late, too many hours -Matt On Tue, Sep 13, 2011 at 8:24 PM, Michael Grant mgr...@modus.bz wrote: Not on the client side. Either way you have to hit a server. Better Twitter's than yours I'd say. On Tue, Sep 13, 2011 at 7:12 PM, Matt Williams mgw...@gmail.com wrote: I have some divs that are populated with tweet.js (jquery plugin for twitter). So on document.ready(), the divs are populated by the plugin. I don't want to hit twitter on every page load and want to cache the populated divs somehow. Is there a way to take those populated divs and cache them? Simply saving the content to html is still saving the javascript too and not the actual output. I guess I may have to switch to grabbing the feed using cffeed or something, but this code is already done and styled, so I was hoping for something else. Thanks, -Matt ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:347458 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Dynamically Added Form Fields Not Submitted
Hi All, I've written some Javascript that will dynamically add file type inputs to a form. Or, so I thought. They show up on the page just fine when the control is clicked. But, when I submit the form to the CF template, those form fields are absent from the form structure. The added fields are displayed in a table that is within the form tags. The JS code adds table rows (TR) then cells to that row then the file inputs to the cells. All this is done using DOM methods like appendChild(), createElement(), createTextNode(), etc. Is there some extra step needed in either JS or CF to make sure the added fields are made part of the form? ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:347459 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
RE: Dynamically Added Form Fields Not Submitted
Try here: http://www.coldfusionjedi.com/index.cfm/2009/1/18/Mixing-client-side-dynamic-forms-with-dynamic-ColdFusion-form-processing -Original Message- From: Robert Nurse [mailto:rnu...@gmail.com] Sent: Wednesday, September 14, 2011 11:18 AM To: cf-talk Subject: Dynamically Added Form Fields Not Submitted Hi All, I've written some Javascript that will dynamically add file type inputs to a form. Or, so I thought. They show up on the page just fine when the control is clicked. But, when I submit the form to the CF template, those form fields are absent from the form structure. The added fields are displayed in a table that is within the form tags. The JS code adds table rows (TR) then cells to that row then the file inputs to the cells. All this is done using DOM methods like appendChild(), createElement(), createTextNode(), etc. Is there some extra step needed in either JS or CF to make sure the added fields are made part of the form? ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:347460 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: SAML and ColdFusion - struggling.
Mark, I'm pretty well versed in Shibboleth. You say you are setting up a Shibboleth server, do you mean the IdP product? If so I don't think that is what you want. You need to set up the Shibboleth SP software on your web server in order to consume assertions. Are you receiving these assertions as part of SSO? --Nathan On Tue, Sep 13, 2011 at 2:52 PM, Mark A. Kruger mkru...@cfwebtools.com wrote: Russ... all right - I'll see if anything else turns up. I have a Java guy helping me at the moment with some samples that Ben sent me... I'll keep poking at it. -Mark Mark Kruger - CFG CF Webtools www.cfwebtools.com www.coldfusionmuse.com O: 402.408.3733 x105 E: mkru...@cfwebtools.com Skype: markakruger -Original Message- From: Russ Michaels [mailto:r...@michaels.me.uk] Sent: Tuesday, September 13, 2011 1:50 PM To: cf-talk Subject: Re: SAML and ColdFusion - struggling. Free time is something I don't have in abundance, If you send me over the details I will happily take a look for you when I get a chance and see if I can make sense of it. But Shibboleth and SAML is new ground for me as well, however I have been looking into the google Single Singon service, which may be similar. On Tue, Sep 13, 2011 at 6:17 PM, Mark A. Kruger mkru...@cfwebtools.com wrote: Russ, Thanks... are you volunteering to help? -Mark Mark Kruger - CFG CF Webtools www.cfwebtools.com www.coldfusionmuse.com O: 402.408.3733 x105 E: mkru...@cfwebtools.com Skype: markakruger -Original Message- From: Russ Michaels [mailto:r...@michaels.me.uk] Sent: Tuesday, September 13, 2011 11:55 AM To: cf-talk Subject: Re: SAML and ColdFusion - struggling. hey Mark, perhaps it would be best to start with the SAML portion first and get that working, it may be that you don't need Shibboleth in order to get the data you need. This seems a good place to start http://webdevwork.blogspot.com/2008/09/single-sign-on-with-saml-and-coldfusi on.html HTH Russ On Tue, Sep 13, 2011 at 5:04 PM, Mark A. Kruger mkru...@cfwebtools.com wrote: I'm in over my head trying to figure out SAML using Shibboleth server. I thought I had a grip on this but apparently not. I've installed Shibboleth and configured the XML files to point to the meta data provided by my customer. My problem is that I don't know what to DO with it? As I understand it: . AMD posts an assertion to me which I pass somehow (not clear how) to the shibboleth server. . Which knows what to do with it and gives back.. What?? There are no readable samples or turorials anywhere. I have a nice check for someone who can do this and/or educate me and help me get going on this. All I want to do is get this packet which is posted to me from the customer, unpack it so I can read the employeeID or whatever, and then create a session for that employee. The SAML requirement is the customers. If you have advice post to the list - if you want to help me directly send me a note off-list. Thanks. Mark Kruger - CFG CF Webtools www.cfwebtools.com www.coldfusionmuse.com O: 402.408.3733 x105 E: mkru...@cfwebtools.com Skype: markakruger ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:347461 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
CreateObject referencing a .NET assembly on Network Storage
The main issue is that the dll is not being found. I am getting the error: Class FMSMQ.MSMQWriter not found in the specified assembly list. The assembly that contains the class must be provided to the assembly attribute. The IIS virtual directory is serving up content from the same root level directory on the Network Storage. The page I'm calling, is trying to create the class object, and then call a single method. cfscript variables.assemblyPath = \\NETWORK_STORAGE_DRV\PRD\DMV\Assemblies\Feeds\FMSMQ.dll; objVar = CreateObject(.NET, FMSMQ.MSMQWriter, variables.assemblyPath); rc = FMSMQ.Write(variables.INPUTXML); //WriteOutput(rc); /cfscript So, both IIS and Coldfusion are installed on the same server, but the actual web content resides elsewhere. Coldfusion is running under a local account that's synced to an account for the Network Storage, so it has access to the pages it needs. As far as I can see, there should be no problem accessing assembly, since it resides under the same share. ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:347462 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
CFBuilder 2 Virtual Hosts
I'm a complete CFBuilder n00b (just installed this morning for first time). I've been developing for years using Dreamweaver, so this is going to be a huge change for me. OK, now to the problem. I develop on a 64-bit Windows 7 PC. I have IIS 7.5 running local versions of the intranet applications I develop. I have a separate IIS web site for each application, and ColdFusion 9.01 is connected to IIS and all the sites work from a browser. My sites run from folders under C:\WebSites. In my hosts file, I have defined site names linked to 127.0.0.1 (local.app1 and local.app2). This all works fine. Now I have installed CFBuilder. I configured my local server per the Adobe help, or at least as far as I understand. My server shows up in the Servers window. I'm confused as to how I configure a project. Do I point the project to the actual website's code folder (ie: C:\WebSites\app1\wwwroot), or to the default folder for the project (ie: C:\Users\myUserName\Adobe ColdFusion Builder workspace/local.app1)? I tried putting a copy of the codebase in the project's default folder, but I can't preview any pages in the Firefox or IE tabs. I get the message: Selected file is not in the document root of the server. If the project is not in the document root, create a linked folder to the document root (selecting Project Properties ColdFusion Project). What am I doing wrong? How do others set up CFBuilder with locally hosted IIS sites? ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:347463 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: CFBuilder 2 Virtual Hosts
If wwwroot is not your project root, CFbuilder needs a mapping. Which the message tries to give you the place to add it, but with these sort of setups, and yours is identical to the way I use them by the sounds of it. I have never ever got this to work, even in CFB1. Virtual Hosts is not the answer, and really is a misleading, because it really is not even needed in the setup. But for some reason someone asked for it during the CFB1 alpha/beta and nobody understood that it was not needed. But I can be proved wrong if someone can clarify its exact purpose that can't be done elsewhere in CFB. Now the problem you describe is something that is difficult to work, and I have done it, but can't seem to get it to work in CFB2 where I had gotten it to work in CFB1. But the message is telling you exactly where you need to add the mapping. -- Regards, Andrew Scott WebSite: http://www.andyscott.id.au/ Google+: http://plus.google.com/108193156965451149543 On Thu, Sep 15, 2011 at 6:08 AM, Carl Von Stetten cmvon...@hotmail.comwrote: I'm a complete CFBuilder n00b (just installed this morning for first time). I've been developing for years using Dreamweaver, so this is going to be a huge change for me. OK, now to the problem. I develop on a 64-bit Windows 7 PC. I have IIS 7.5 running local versions of the intranet applications I develop. I have a separate IIS web site for each application, and ColdFusion 9.01 is connected to IIS and all the sites work from a browser. My sites run from folders under C:\WebSites. In my hosts file, I have defined site names linked to 127.0.0.1 (local.app1 and local.app2). This all works fine. Now I have installed CFBuilder. I configured my local server per the Adobe help, or at least as far as I understand. My server shows up in the Servers window. I'm confused as to how I configure a project. Do I point the project to the actual website's code folder (ie: C:\WebSites\app1\wwwroot), or to the default folder for the project (ie: C:\Users\myUserName\Adobe ColdFusion Builder workspace/local.app1)? I tried putting a copy of the codebase in the project's default folder, but I can't preview any pages in the Firefox or IE tabs. I get the message: Selected file is not in the document root of the server. If the project is not in the document root, create a linked folder to the document root (selecting Project Properties ColdFusion Project). What am I doing wrong? How do others set up CFBuilder with locally hosted IIS sites? ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:347464 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: CFBuilder 2 Virtual Hosts
I guess I'm confused about the difference between wwwroot and project root. Do people in this type of environment do their code editing in the same place as IIS serves the site from? On 9/14/2011 1:36 PM, Andrew Scott wrote: If wwwroot is not your project root, CFbuilder needs a mapping. Which the message tries to give you the place to add it, but with these sort of setups, and yours is identical to the way I use them by the sounds of it. I have never ever got this to work, even in CFB1. Virtual Hosts is not the answer, and really is a misleading, because it really is not even needed in the setup. But for some reason someone asked for it during the CFB1 alpha/beta and nobody understood that it was not needed. But I can be proved wrong if someone can clarify its exact purpose that can't be done elsewhere in CFB. Now the problem you describe is something that is difficult to work, and I have done it, but can't seem to get it to work in CFB2 where I had gotten it to work in CFB1. But the message is telling you exactly where you need to add the mapping. ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:347465 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: CFBuilder 2 Virtual Hosts
I guess I'm confused about the difference between wwwroot and project root. Do people in this type of environment do their code editing in the same place as IIS serves the site from? I use CFB2 and IIS 7.5 locally and have both set to the same location (i.e. the webroot and my project root are the same path). The OP was referring to using the preview feature which I don't use; I just keep a separate browser window open with the local site loaded and browse/refresh from there to test changes. -Justi ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:347466 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: CFBuilder 2 Virtual Hosts
I don't, but Adobe seems to think this is the norm. Personally I setup my project root to mimic my server, so in my example the project root might contain something like this. ProjectRoot -ColdBox (linked mapping) -Logs -Sql Scripts -unitTests -mxunit (linked mapping) -wwwroot -- Regards, Andrew Scott WebSite: http://www.andyscott.id.au/ Google+: http://plus.google.com/108193156965451149543 On Thu, Sep 15, 2011 at 6:55 AM, Carl Von Stetten vonner.li...@vonner.netwrote: I guess I'm confused about the difference between wwwroot and project root. Do people in this type of environment do their code editing in the same place as IIS serves the site from? ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:347467 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: CFBuilder 2 Virtual Hosts
Dude, he was the original poster. -- Regards, Andrew Scott WebSite: http://www.andyscott.id.au/ Google+: http://plus.google.com/108193156965451149543 On Thu, Sep 15, 2011 at 7:01 AM, Justin Scott leviat...@darktech.orgwrote: I guess I'm confused about the difference between wwwroot and project root. Do people in this type of environment do their code editing in the same place as IIS serves the site from? I use CFB2 and IIS 7.5 locally and have both set to the same location (i.e. the webroot and my project root are the same path). The OP was referring to using the preview feature which I don't use; I just keep a separate browser window open with the local site loaded and browse/refresh from there to test changes. -Justi ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:347468 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: CFBuilder 2 Virtual Hosts
Would you mind sharing some screenshots of how you configured your local server, and how you configured the project? Do you have multiple applications set up as distinct projects in your CFB setup? On 9/14/2011 2:01 PM, Justin Scott wrote: I guess I'm confused about the difference between wwwroot and project root. Do people in this type of environment do their code editing in the same place as IIS serves the site from? I use CFB2 and IIS 7.5 locally and have both set to the same location (i.e. the webroot and my project root are the same path). The OP was referring to using the preview feature which I don't use; I just keep a separate browser window open with the local site loaded and browse/refresh from there to test changes. -Justi ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:347469 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: CFBuilder 2 Virtual Hosts
If you are running a local webserver then just set your project root to the wwwroot, this is fine otherwise you would have to maintain 2 copies of your project. not everyone runs a local web server, some people will develop a project locally then upload it to a testing server, as you can do with Dreamweaver. you do need entries in your local hosts file otherwise there will be no way for you to browse your local sites, unless you put each site on its own port and use http://localhost:port/ which will just get confusing, much better to use host headers. Remember you can use REAL domain name, so you can use dev.realdomain.com for each site. -- Russ Michaels www.bluethunderinternet.com : Business hosting services solutions www.cfmldeveloper.com : ColdFusion developer community www.michaels.me.uk : my blog www.cfsearch.com : ColdFusion search engine sky ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:347470 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: CFBuilder 2 Virtual Hosts
Russ, This is the argument that I had when this was still in the beta stages with the engineers. You DON'T need the virtual hosts when developing locally, or running locally at all. The actual reason it is there is actually for remote sites, and even then it still can use information that is in the project. I proved this to the engineers via a connect session. I never fill this information in and I have sites that are running locally, and sites that are running in VirtualBox. And I still never ever used those settings. That was CFB1, I can no longer get anything to work in CFB 2 when it comes to viewing the site. Even if I tell the project to use the index.cfm when browsing the site in CFB2, so I just gave up. I tried using this with Virtual Hosts as well as mappings like the error tells you too, but nothing would work for me. And you don't need to run two copies of your project/site like you claim either... -- Regards, Andrew Scott WebSite: http://www.andyscott.id.au/ Google+: http://plus.google.com/108193156965451149543 On Thu, Sep 15, 2011 at 7:59 AM, Russ Michaels r...@michaels.me.uk wrote: If you are running a local webserver then just set your project root to the wwwroot, this is fine otherwise you would have to maintain 2 copies of your project. not everyone runs a local web server, some people will develop a project locally then upload it to a testing server, as you can do with Dreamweaver. you do need entries in your local hosts file otherwise there will be no way for you to browse your local sites, unless you put each site on its own port and use http://localhost:port/ which will just get confusing, much better to use host headers. Remember you can use REAL domain name, so you can use dev.realdomain.com for each site. -- Russ Michaels ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:347471 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: CFBuilder 2 Virtual Hosts
Andrew, I think your misunderstanding what I mean. If you have multiple websites in IIS or Apache, every site must be unique in order to browse them. There are 3 ways to do this. different IP address on each site different port on each site different host header on each site host headers is clearly the easiest and best way to remember the url for each site, and if you do not use the hosts file to do this then you are going to need a live IP address and to register real domains, which would be pretty pointless not to mention a waste of money. As for the project. If you have the website at c:\inetpub\wwwroot\mydomain.com and you have your project at c:\my documents\projects\mydomain.com This is clearly 2 copies of the files Perhaps we are talking about different things. On Wed, Sep 14, 2011 at 11:08 PM, Andrew Scott andr...@andyscott.id.au wrote: Russ, This is the argument that I had when this was still in the beta stages with the engineers. You DON'T need the virtual hosts when developing locally, or running locally at all. The actual reason it is there is actually for remote sites, and even then it still can use information that is in the project. I proved this to the engineers via a connect session. I never fill this information in and I have sites that are running locally, and sites that are running in VirtualBox. And I still never ever used those settings. That was CFB1, I can no longer get anything to work in CFB 2 when it comes to viewing the site. Even if I tell the project to use the index.cfm when browsing the site in CFB2, so I just gave up. I tried using this with Virtual Hosts as well as mappings like the error tells you too, but nothing would work for me. And you don't need to run two copies of your project/site like you claim either... -- Regards, Andrew Scott WebSite: http://www.andyscott.id.au/ Google+: http://plus.google.com/108193156965451149543 On Thu, Sep 15, 2011 at 7:59 AM, Russ Michaels r...@michaels.me.uk wrote: If you are running a local webserver then just set your project root to the wwwroot, this is fine otherwise you would have to maintain 2 copies of your project. not everyone runs a local web server, some people will develop a project locally then upload it to a testing server, as you can do with Dreamweaver. you do need entries in your local hosts file otherwise there will be no way for you to browse your local sites, unless you put each site on its own port and use http://localhost:port/ which will just get confusing, much better to use host headers. Remember you can use REAL domain name, so you can use dev.realdomain.com for each site. -- Russ Michaels ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:347472 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: CFBuilder 2 Virtual Hosts
Justin, Are you using CF 9 Developer Edition on you local machine? If so, do you have it installed as a standalone (single instance) install, or a multi-server (J2EE) install? If standalone, what does your Document Root point to on the ColdFusion Server Setup screen for Local Server Settings? Is your Server Home set to C:\ColdFusion9 or similar? Carl On 9/14/2011 2:01 PM, Justin Scott wrote: I guess I'm confused about the difference between wwwroot and project root. Do people in this type of environment do their code editing in the same place as IIS serves the site from? I use CFB2 and IIS 7.5 locally and have both set to the same location (i.e. the webroot and my project root are the same path). The OP was referring to using the preview feature which I don't use; I just keep a separate browser window open with the local site loaded and browse/refresh from there to test changes. -Justi ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:347473 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
RE: CFBuilder 2 Virtual Hosts
Yeah I do understand that Russ, maybe its more because I use SES and MVC so I really don't use that side of things. Secondly as far as two copies goes I think that goes to how people setup their projects, personally I always create my project and the point IIS to that wwwroot in that project. That way I don't have two copies at all, at least until I send it to my staging server. -- Regards, Andrew Scott WebSite: http://www.andyscott.id.au/ Google+: http://plus.google.com/108193156965451149543 -Original Message- From: Russ Michaels [mailto:r...@michaels.me.uk] Sent: Thursday, 15 September 2011 9:01 AM To: cf-talk Subject: Re: CFBuilder 2 Virtual Hosts Andrew, I think your misunderstanding what I mean. If you have multiple websites in IIS or Apache, every site must be unique in order to browse them. There are 3 ways to do this. different IP address on each site different port on each site different host header on each site host headers is clearly the easiest and best way to remember the url for each site, and if you do not use the hosts file to do this then you are going to need a live IP address and to register real domains, which would be pretty pointless not to mention a waste of money. As for the project. If you have the website at c:\inetpub\wwwroot\mydomain.com and you have your project at c:\my documents\projects\mydomain.com This is clearly 2 copies of the files Perhaps we are talking about different things. ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:347474 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
RE: CFBuilder 2 Virtual Hosts
Carl, Do you have a wwwroot inside your project? If so then you need to look at your server settings inside CFB2, that means you need to apply the mappings in there, as well as what Russ was saying with the virtual host. But if you are like me and also use any form of MVC or SES, then you will not get it to work in CFB2. -- Regards, Andrew Scott WebSite: http://www.andyscott.id.au/ Google+: http://plus.google.com/108193156965451149543 -Original Message- From: Carl Von Stetten [mailto:vonner.li...@vonner.net] Sent: Thursday, 15 September 2011 9:08 AM To: cf-talk Subject: Re: CFBuilder 2 Virtual Hosts Justin, Are you using CF 9 Developer Edition on you local machine? If so, do you have it installed as a standalone (single instance) install, or a multi-server (J2EE) install? If standalone, what does your Document Root point to on the ColdFusion Server Setup screen for Local Server Settings? Is your Server Home set to C:\ColdFusion9 or similar? Carl ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:347475 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
oAuth and MySQL
Saw the oAuth library at RIAForge, and it appears to support errything BUT MySQL. Has anyone done it before? Should I just port all of the table generation and sql myself? Thanks! ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:347476 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: CFBuilder 2 Virtual Hosts
What I've done is start a new project in CFBuilder, and pointed the project to the folder one step above the IIS site's webroot (which is C:\WebApps\App1\wwwroot), so the project folder would be C:\WebApps\App1. Do I need to set the CFBuilder server's document root to be pointing at C:\WebApps\App1\wwwroot also? Right now, my IIS site runs entirely out of the wwwroot folder (CFCs are in subfolders of the wwwroot folder. Carl On 9/14/2011 4:13 PM, Andrew Scott wrote: Carl, Do you have a wwwroot inside your project? If so then you need to look at your server settings inside CFB2, that means you need to apply the mappings in there, as well as what Russ was saying with the virtual host. But if you are like me and also use any form of MVC or SES, then you will not get it to work in CFB2. -- Regards, Andrew Scott WebSite: http://www.andyscott.id.au/ Google+: http://plus.google.com/108193156965451149543 ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:347477 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: CFBuilder 2 Virtual Hosts
Carl that is exactly how I do it. Now when you create a server inside of CFB, there is a mappings tab. On this tab you will need to add the mapping to the wwwroot. That might seem strange I know, but when you create a project like this, this is needed. If this is locally I am not sure you need anything more, I take it that you have right mouse on the project and gone to coldfusion server and selected the server for the project. Now I am going from memory here, but I am sure that when I did it this way in a normal ColdFusion project, you should also be doing the step I mentioned above. But because I uses SES and an MVC framework, I can never have the option to browse the website like you are wanting too. So if you are in this position, then you will be having the same problem. -- Regards, Andrew Scott WebSite: http://www.andyscott.id.au/ Google+: http://plus.google.com/108193156965451149543 On Thu, Sep 15, 2011 at 9:29 AM, Carl Von Stetten vonner.li...@vonner.netwrote: What I've done is start a new project in CFBuilder, and pointed the project to the folder one step above the IIS site's webroot (which is C:\WebApps\App1\wwwroot), so the project folder would be C:\WebApps\App1. Do I need to set the CFBuilder server's document root to be pointing at C:\WebApps\App1\wwwroot also? Right now, my IIS site runs entirely out of the wwwroot folder (CFCs are in subfolders of the wwwroot folder. Carl ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:347478 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: CFBuilder 2 Virtual Hosts
Justin, Are you using CF 9 Developer Edition on you local machine? If so, do you have it installed as a standalone (single instance) install, or a multi-server (J2EE) install? If standalone, what does your Document Root point to on the ColdFusion Server Setup screen for Local Server Settings? Is your Server Home set to C:\ColdFusion9 or similar? I do run CF locally in developer mode, standalone but under IIS 7.5 (rather than the CF built-in web server). CF's document root is set to the standard default root for IIS [c:\inetpub\wwwroot]. Each site has its own folder, usually based on the domain name, and there are sub-folders under that for components, sub-sites, etc, so the main site might be [c:\inetpub\wwwroot\example.com\www] with a management console at [c:\inetpub\wwwroot\example.com\manage]. I would use host entries that point back to 127.0.0.1 for manage.example.com, dev.example.com (rather than www so I can still browse the live site, but I'd point dev.example.com to the www folder locally), etc. IIS then has each site configured to use the example.com\www folder as the webroot. Within Builder, I generally keep a separate project for each sub-section, so one site might have a project for the main site, a project for the management site, a project for shared components, etc. Each developer will have their own slightly different workflow, but I find this works well for me. Previously I was working on a lot of live servers, so I was using Homesite+ with FTP directly to the live servers without any sort of local development environment to speak of. I'm sure you'll a method that works well for you as well. -Jus ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:347479 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: Dynamically Added Form Fields Not Submitted
Are you actually adding them as elements to the dom or just adding the html text to the table data? I've had this exact issue and gotten around by properly adding the children to the form. On Wed, Sep 14, 2011 at 12:17 PM, Robert Nurse rnu...@gmail.com wrote: Hi All, I've written some Javascript that will dynamically add file type inputs to a form. Or, so I thought. They show up on the page just fine when the control is clicked. But, when I submit the form to the CF template, those form fields are absent from the form structure. The added fields are displayed in a table that is within the form tags. The JS code adds table rows (TR) then cells to that row then the file inputs to the cells. All this is done using DOM methods like appendChild(), createElement(), createTextNode(), etc. Is there some extra step needed in either JS or CF to make sure the added fields are made part of the form? ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:347480 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm