Re: Anyone using Twitter Bootstrap with CF?
Is the edit form a part of your html from the beginning, populating fields from data on open (preferred)? Or do you open the modal and bring in the form? In either event, you probably need to add code to your modal hidden event that will clear the form. Steve 'Cutter' Blades Adobe Community Professional Adobe Certified Expert Advanced Macromedia ColdFusion MX 7 Developer http://cutterscrossing.com Co-Author Learning Ext JS 3.2 Packt Publishing 2010 https://www.packtpub.com/learning-ext-js-3-2-for-building-dynamic-desktop-style-user-interfaces/book The best way to predict the future is to help create it On 11/20/2012 3:00 PM, Pete Ruckelshaus wrote: OK, new (but related) problem. I'm using a modal window to edit records. When I click to edit the first record, it loads the edit window with that records data. Cool. Close the window, click on the second record, and the data for the first record is still in the form and remains there until I refresh the page. I am using this method to call the edit window: a href=#CGI.script_name#?a=editassetid=#getassets.assetid# data-toggle=modal data-target=##editmodal role=button class=btn btn-small pull-rightEdit/a I tried some of the no-cache tricks, thinking it might be a caching issue, but that caused no content to be loaded in the body of the modal window. Is there a solution to this? Thanks Pete On Wed, Nov 14, 2012 at 1:33 PM, Cameron Childress camer...@gmail.comwrote: On Wed, Nov 14, 2012 at 1:13 PM, Pete Ruckelshaus pruckelsh...@gmail.com wrote: Yeah, that's what I get for just glancing at the docs. This a data-toggle=modal href=remote.html data-target=#modalclick me/a worked like a charm. Great! Next up, is there a way to submit a form within the same modal window? Sorry for the questions, I've been doing almost entirely server-side stuff for the past few years. You can actually have someone submit the form in the modal just like any other page. Then it will make a round trip tot he server and refresh the underlying page (the one that opened the modal). Alternately, you can have a button in the modal make a javascript call and do a jQuery AJAX call to submit the data, without causing the underlying page to refresh. You can then close the modal using some of the code you should be able to find in the documentation. There are a bunch of ways you can solve the problem, but I'd read up on the whole she-bang a bit before trying to cut/paste anything from Stack Overflow (or this list) to solve your problem. I'd put down the IDE for a bit, get a coffee and take a long read in the jQuery docs around the AJAX methods. http://api.jquery.com/category/ajax/ You should be able to chain those calls along with the Bootstrap modal stuff to get where you want to be. -Cameron -- Cameron Childress -- p: 678.637.5072 im: cameroncf facebook http://www.facebook.com/cameroncf | twitterhttp://twitter.com/cameronc | google+ https://profiles.google.com/u/0/117829379451708140985 ~| 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:353277 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: Anyone using Twitter Bootstrap with CF?
On Tue, Nov 20, 2012 at 3:00 PM, Pete Ruckelshaus pruckelsh...@gmail.comwrote: I'm using a modal window to edit records. When I click to edit the first record, it loads the edit window with that records data. Cool. Close the window, click on the second record, and the data for the first record is still in the form and remains there until I refresh the page. I tried some of the no-cache tricks, thinking it might be a caching issue, but that caused no content to be loaded in the body of the modal window. Keep in mind that the modal window in jQuery isn't really a separate window, it's just a layer that jQuery shows/hides from visibility. When you load content into a modal form a remote source you're basically just changing the content of that hidden layer, after showing the layer. When you close it you are simply hiding the layer (and whatever it last contained). So, the order of execution workflow the first time is: 1) Show layer 2) Load content into it In your scenario you are doing this twice: 1) Show layer 2) Load content into it 3) Hide layer 4) Show layer again (still has old content) 5) Load content into it So... you can fix this a few ways. you can either programmatically clear the modal content after hiding it (between #3 and #4), or you can programmatically clear the modal before showing it (before #1 and #4). Both of these will require you to call an opener method of your own instead of relying on the simplified jQuery syntax for opening modals. I don't have any code handy to show you a solution, but hopefully that's enough about what's going on to find one on your own (or maybe someone else will jump in with sample code). -Cameron -- Cameron Childress -- p: 678.637.5072 im: cameroncf facebook http://www.facebook.com/cameroncf | twitterhttp://twitter.com/cameronc | google+ https://profiles.google.com/u/0/117829379451708140985 ~| 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:353278 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Opening a template in CF Studio from an HTML link
Hi, When I dbl-click on a CF template in Windows Explorer, it automatically opens the template in CF Studio. Now, suppose I have a list of local files in an HTML page, is it possible to create the same action in an HTML link like: A href=open the file in CF Studio#fullPath#/A ~| 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:353279 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: Opening a template in CF Studio from an HTML link
Hi, When I dbl-click on a CF template in Windows Explorer, it automatically opens the template in CF Studio. Now, suppose I have a list of local files in an HTML page, is it possible to create the same action in an HTML link like: A href=open the file in CF Studio#fullPath#/A you usually want to associate .html extensions with opening up in the browser, not the editor. if you want to open those in cfstudio, you can right click Open With... and choose cfstudio. ~| 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:353280 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: Opening a template in CF Studio from an HTML link
if you want to open those in cfstudio, you can right click Open With... and choose cfstudio. No, this is when you are in Windows Explorer. What I need is open the file in CF Studio from Internet Explorer in a page generated with CF. I'm trying to use CFEXECUTE, but nothing happens. Ex: A HREF=CFStudio.cfm?f=#attributes.fullPath##attributes.fullPath#/A And in CFStudio.cfm: cfexecute name = C:\Program Files (x86)\Allaire\ColdFusion Studio 4.5\cfstudio45.exe arguments = #f# /cfexecute But all I get is a blank page and CFStudio does not open. ~| 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:353281 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: Opening a template in CF Studio from an HTML link
if you want to open those in cfstudio, you can right click Open With... and choose cfstudio. No, this is when you are in Windows Explorer. What I need is open the file in CF Studio from Internet Explorer in a page generated with CF. I'm trying to use CFEXECUTE, but nothing happens. Ex: A HREF=CFStudio.cfm?f=#attributes.fullPath##attributes.fullPath#/A And in CFStudio.cfm: cfexecute name = C:\Program Files (x86)\Allaire\ColdFusion Studio 4.5\cfstudio45.exe arguments = #f# /cfexecute But all I get is a blank page and CFStudio does not open. That's not going to work unless (a) all components (CF, CFStudio, browser, web server) are on the same machine, and (b) the service logs on as SYSTEM and is allowed to interact with the desktop. Dave Watts, CTO, Fig Leaf Software http://www.figleaf.com/ http://training.figleaf.com/ Fig Leaf Software is a Veteran-Owned Small Business (VOSB) on GSA Schedule, and provides the highest caliber vendor-authorized instruction at our training centers, online, or onsite. ~| 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:353282 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: Opening a template in CF Studio from an HTML link
ColdFusion code runs on the server. Nothing you write in CF is ever processed by a client or web browser. Your cfexecute is attempting to run cfstudio45.exe on the server. To accomplish what you want you will have to send the html files to the user in such a way that they are not rendered by the browser, but instead prompt the user to download them. You should be able to do this with cfcontent and cfheader tags. The user can then open them in CF Studio. And if the user has their system configured so that CFStudio is the default application for html files they can click open when they are presented with the download. This is probably as close as you are going to get to what you are after. Steve On Mon, Nov 26, 2012 at 1:23 PM, wrote: if you want to open those in cfstudio, you can right click Open With... and choose cfstudio. No, this is when you are in Windows Explorer. What I need is open the file in CF Studio from Internet Explorer in a page generated with CF. I'm trying to use CFEXECUTE, but nothing happens. Ex: A HREF=CFStudio.cfm?f=#attributes.fullPath##attributes.fullPath#/A And in CFStudio.cfm: cfexecute name = C:\Program Files (x86)\Allaire\ColdFusion Studio 4.5\cfstudio45.exe arguments = #f# /cfexecute But all I get is a blank page and CFStudio does not open. ~| 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:353283 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: Opening a template in CF Studio from an HTML link
ColdFusion code runs on the server. Nothing you write in CF is ever processed by a client or web browser. Your cfexecute is attempting to run cfstudio45.exe on the server. I'm on my development server, of course. ~| 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:353284 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: Opening a template in CF Studio from an HTML link
That's not going to work unless (a) all components (CF, CFStudio, browser, web server) are on the same machine, and (b) the service logs on as SYSTEM and is allowed to interact with the desktop. All these conditions are met. And I already use CFEXECUTE with other applications to run applications like PKZIP ~| 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:353285 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Where is information used by the Scheduler?
Hi, When I open the Scheduler in the CF administrator (CF 9), I get the error: 11/26/2012 1:58:00 PM is an invalid date format. Fist I don't see why it is ivalid. But I'd like to see if I can modify it. I suppose all the information about scheduled tasks is stocked in some XML file, but where? ~| 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:353286 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: Where is information used by the Scheduler?
I suppose all the information about scheduled tasks is stocked in some XML file, but where? Take a look in the neo-cron.xml file in the lib folder for your ColdFusion instance. -Justin ~| 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:353287 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: Where is information used by the Scheduler?
Claude, Try neo-cron.xml (should be in the \lib folder under your ColdFusion installation). -Carl V. On 11/26/2012 11:03 AM, =?ISO-8859-1?Q?Claude_Schn=E9egans wrote: Hi, When I open the Scheduler in the CF administrator (CF 9), I get the error: 11/26/2012 1:58:00 PM is an invalid date format. Fist I don't see why it is ivalid. But I'd like to see if I can modify it. I suppose all the information about scheduled tasks is stocked in some XML file, but where? ~| 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:353288 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: Where is information used by the Scheduler?
Try neo-cron.xml (should be in the \lib folder under your ColdFusion installation). Thanks, I found it. But my assumption was wrong. The date is not contained in this file, it is simple the date-time at the moment I open the scheduler. How could this date be wrong? ~| 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:353289 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: Where is information used by the Scheduler?
I would suggest you just delete the task from neo-cron.xml and start again and see if the issue persists Regards Russ Michaels www.michaels.me.uk www.cfmldeveloper.com - Free CFML hosting for developers www.cfsearch.com - CF search engine On Nov 26, 2012 7:32 PM, wrote: Try neo-cron.xml (should be in the \lib folder under your ColdFusion installation). Thanks, I found it. But my assumption was wrong. The date is not contained in this file, it is simple the date-time at the moment I open the scheduler. How could this date be wrong? ~| 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:353290 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: Where is information used by the Scheduler?
I would suggest you just delete the task from neo-cron.xml and start again and see if the issue persists Finaly, the trouble seems not to be with the sceduled tasked. The date-time which is declared invalid is actualy rhe time I open the administrator Scheduler page. This time must be used to display some default time option somewhere, but how could it be unvalid? I notice that this invalid date is in american format (mm/dd/), though My system local is set for French, thus the date format should be dd/mm/ ~| 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:353291 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: Where is information used by the Scheduler?
I notice that this invalid date is in american format (mm/dd/), though My system local is set for French, thus the date format should be dd/mm/ I think I will have to wait until dec 1st, the the date will be valid in both formats, and hopefuly I'll see where it is used. ~| 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:353292 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: Where is information used by the Scheduler?
By any chance is your JVM running in a different locale than your system local? I ask because I had a similar issue. My system runs in Australia, but I happened to be in Canada (with my system temporarily set to american standards) when I installed a new version of Java. The install picked up the north american settings and as a result I kept getting weird invalid date issues when I got back to Aus. Took a while to figure out that's what was happening. I eventually fixed the problem by forcing a locale fro the JVM in the ColdFusion Administrator by adding the following JVM arguments: -Duser.language=en -Duser.country=AU. Hope that helps. Cheers, Bill. On 27 November 2012 07:46, wrote: I notice that this invalid date is in american format (mm/dd/), though My system local is set for French, thus the date format should be dd/mm/ I think I will have to wait until dec 1st, the the date will be valid in both formats, and hopefuly I'll see where it is used. ~| 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:353293 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
ORM Relationship Issue
I am having an issue with one of my ORM relationships and I am hoping somebody can point out what I am missing here. I have the concept of a Client. Each client has an Owner (account manager) which references a User record. Now, a given user may be the owner of more than one client. The database design here is set, so I can't change column names etc. In the Client table, there is a column 'idOwner' which references the 'idUsers' column in the User table. In my Client object, I have the following property definition: property name=Owner fieldtype=many-to-one cfc=com.user.User fkcolumn=idUsers missingRowIgnored=true; When I try to retrieve a Client record instance, the error is invalid column name 'idUsers'. How should this relationship be defined to map idOwner on the Client table to idUsers on the User table? TIA! ~| 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:353294 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: Where is information used by the Scheduler?
I eventually fixed the problem by forcing a locale fro the JVM in the ColdFusion Administrator by adding the following JVM arguments: -Duser.language=en -Duser.country=AU. Hey! How about that! It solved my problem. I added -Duser.language=fr -Duser.country=CA and now it works. Thanks a lot! ~| 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:353295 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: Opening a template in CF Studio from an HTML link
That's not going to work unless (a) all components (CF, CFStudio, browser, web server) are on the same machine, and (b) the service logs on as SYSTEM and is allowed to interact with the desktop. All these conditions are met. And I already use CFEXECUTE with other applications to run applications like PKZIP Are you sure you've checked the interact with the desktop option? It's not checked by default. When you run PKZIP, is it running as a console application or as a GUI? What happens if you try to run Notepad this way? I've done that successfully. Maybe there's some Windows profile issue with CF Studio. Dave Watts, CTO, Fig Leaf Software http://www.figleaf.com/ http://training.figleaf.com/ Fig Leaf Software is a Veteran-Owned Small Business (VOSB) on GSA Schedule, and provides the highest caliber vendor-authorized instruction at our training centers, online, or onsite. ~| 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:353296 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: Opening a template in CF Studio from an HTML link
Are you sure you've checked the interact with the desktop option? It's not checked by default. I'm sure I haven't check it. Where is that option? When you run PKZIP, is it running as a console application or as a GUI? Yes a console application, that' why it works. ~| 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:353297 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: Where is information used by the Scheduler?
You're very welcome. Glad to help. :) On 27 November 2012 09:24, wrote: I eventually fixed the problem by forcing a locale fro the JVM in the ColdFusion Administrator by adding the following JVM arguments: -Duser.language=en -Duser.country=AU. Hey! How about that! It solved my problem. I added -Duser.language=fr -Duser.country=CA and now it works. Thanks a lot! ~| 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:353298 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: Opening a template in CF Studio from an HTML link
I'm sure I haven't check it. Where is that option? Ok, got it! in the CF service. I checked it, and now it does call CF Studio, although it looks like it creates another desktop instance especialy for the application, opens plenty of windows and asks many questions before I can access the program. It does the same thing if I use notepad. ~| 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:353299 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm