After about two weeks of almost constant blog postings - I found myself with a delimma today. I couldn't think of one thing to write about. So - here's an idea. If you have any questions(*), post them here, and I'll write up the answers as blog postings.
- Now - let's be grown ups here. A "good" question is not you asking me to debug your code. I'm talking about generic style questions like:
- Why do you use CFCs in your blog code?
- I want to use CF's caching feature for queries, but how do I clear the cache?
- What is the best way to learn ColdFusion?
- How do estimate the airspeed velocity of an unladen (African) swollow?
Archived Comments
Whhaaaaaaaaaat is your favorite color?
Well then mr smarty pants.......How do estimate the airspeed velocity of an unladen (African) swollow?
hehehehe
Is there a way to bind an image to a column in a Flash CFGrid?
>>>.......How do estimate the airspeed velocity of an unladen (African) swollow?
http://www.style.org/unlade...
Can I have some salt with my foot please? :oP
You've got Mail! Interesting question on WDDX and cfml2js feature.
So ummmm... when does the CF8 planning begin, and can I get on the customer cab/beta program? :) Or any high level ideas on what CF8's 'theme' will be.
Hi Ray...
Ok, here is one which drives me mad at the moment...
How do I get CFMX7 on Jrun to work with a webroot on a UNC path (\\server\share)?
Nothing found by now, and with a look at the macromedia forums I can say that I'm not alone :)
greetz
Joerg
Have you ever had doubts which almost made you switch to the Dark Side?
What type of food does Yoda eat? Is he a carnivor and is he taking regular showers?
Joerg,
are you running your CFMX instance as a Windows Domain user which has access to theUNC? I have 2 instances on Jrun using a unc share in IIS - can you expand more?
john.
Hi Ray, what's the best way to learn Model Glue? I do have the manuals and stuff like that, but can you start to write some stuff about that? Cuz the documentation is very poor until now.
Rgds, Marcos
Ray
I have 2 (hopefully good) questions. As a coldfusion author, when every new edition of cf comes out, what process do you go through to become familiar with the new features? Do you systematically attempt to try everything?
Has anyone gotten mysql to work the the CFM 7 developer's edition in linux? I keep getting can't connect to server, but when I try it on the standard version, it connects fine.
ericd: Dark green.
zach: Question answered. Everyone else - I'll do a post daily or so.
Hi johnb...
Instance is running as local system...
should it be that easy?!
I'll give it a try :)
thx
Joerg
What's the best way to learn ColdFusion. With each new release, there are zillions of features to zap through. It looks intimidating to a beginner with little/no programming background even though CF is touted as quick and easy.
One place I started was here: http://www.easycfm.com/tuto...
What version of the JRE is bundled with ColdFusion MX 7?
Let me be a little more precise. I'm running the Standard Edition, which doesn't include drivers for Oracle. No biggie, I can download the JDBC drivers from Oracle's site (http://www.oracle.com/techn... and use "Other" when I register my datasources in the CF Admin. When you go to the download site, Oracle prives different drivers/classes depending upon which version of the JDK you have installed. Hence, it's good to know the version of the JRE is bundled with ColdFusion MX 7.
About the JRE bundled with CFMX 7, I actually have found the answer. On Linux, it was just a matter of going to CFROOT/runtime/jre/ and taking a look at the README file. It has 1.4.2 at the very top.
Joerg, here's a blog post that shows everything you need to know about using a UNC path for ColdFusion content:
http://www.talkingtree.com/...
Jedi Master-
I am working on enhancing a flash form.
What I would like to do is have 3 inputs.
1 - a datefield (date1)
2- aNumber a number/select enter a numeric value, or pick one from a dropdown list
3. A datefield(date2) whos selected date (or value) is date1 plus aNumbers days.
I cant seem to do a simple dateadd inside of the date1 onchange, so thiis problem gets complex quickly it seems.
Perhaps your knowledge and powers with the force can come up with an eloquent solution?
If Yoda was present at the birth of Luke and Leia, how come it seems like he did not know of Leia when Luke left Dagobah to go to Bespin?
Ok, here's one for you. I have no issues at all sending data from a flash form into a Javascript function and processing that data. I simply call a function created with CFSAVECONTENT which gets the form data and then does a getURL call to the JavaScript function with the data being passed as params.
The issues arise in trying to send data from a JavaScript function back into the Flash Form. For instance, say I wanted to enter a zip code in a flash form that would then call a JS function that pulls the City and State from a JavaScript array. I then want that data sent back to the form and displayed in another text box.
Just so you know, I've been working with CFAJAX and it is working well for returing CF stuctures from a CFC so my ultimate goal is to be able to repopulate a DataGrid with data pulled from a CFC dynamically without a page refresh. I may be going the complete wrong direction here so if you know how else to do this (without CF & FLEX integration, thats another LONG topic) please let me know.
Thanks,
Keith
Here's one. I've been looking at using cfimport, but it won't allow variables in the tagLib attribute. Why won't CF allow this? You can't garauntee your application will be deployed off the root...so this seems like a major drawback vs cfmodule. Thx!
Her's another one for you regarding Flash Forms in CFMX 7. Say I have a function created with CFSAVECONTENT that is called from an onClick of a button. I want to be able to pass data into the function, however I have yet to be able to find a way to do this. Example:
<cfsavecontent variable="getData">
alert('SHOW DATA','Demo',mx.controls.Alert.OK);
</cfsavecontent>
<cfinput type="Button" name="test" value="Test" onClick="#getData#">
How would I get the #getData# call to pass a value of '123' for instance to the getData function where the alert would then show '123'?
Thanks for any insight,
Keith
Now that CFForms use Flash and actionscript how would I create a button that when clicked will take me to some location. Also...has anyone been able to use styles within the <cfformitem type="html"> tag? Cause I like how the layout of the form is but I want to use some text formatting in that tag.
Any ideas?
Button to take us to a URL:
<cfinput type="button" name="select" value="value1" onclick="getURL('#request.sec_app_Path#index.cfm?fuseaction=c.f');">
Clickable data row in cfgrid (as a grid onchange)
onchange="getURL('#request.sec_app_path#index.cfm?fuseaction=circ.fuse&custid=' + selectGrid.selectedItem.custID)">
Thanks Justin! That totally helps. Another I'm having a challenge with is select elements within a flash form. I'm using this syntax:
<cfselect name="EventCode" label="Event Code:" width="100" required="yes" message="Please Choose Event Code">
<cfloop query="Events">
<cfoutput>
<option value="#Events.EventID#" <cfif Events.EventID EQ EventDates.EventID>selected</cfif>>#Events.EventID# #Events.EventCode#</option>
</cfoutput>
</cfloop>
</cfselect>
But when I go to grab the value of the form it grabs what is shown. Which I assume it's grabbing the text part of the element because they use ActionScript now. So how do I use them like a traditional select form where you have what is seen by the user but the ID in the value field. I guess you could sum it up by saying "How do you grab the value and not the text"?
Thanks,
Tony
My sys admin asked me to ask this question:
Are there any known issues with running coldfusion on the AMD64 / EM64T
architecture (using linux)?
We've got coldfusion up and running with EM64 kernel/libraries/apache with a
recompiled jrun module and everything seems OK, but since this is going to be a
production system, I'm interested in other peoples experiences.
Also, if we're going to do this, has anyone tried running jrun in the 64 bit
JVM?
hallo Ray,
what are the license implications when developing a ColdFusion application on CF7 Enterprise Edition (2CPU) and thereafter packaging and deploying it on for instance a BEA WebLogic (2CPU) server using EAR or WAR files? The ColdFusion MX7 EE server is not installed on the same server as BEA. I have tested this feature of CF7, and it's magic!, but I'm not sure about the license implications.
thank you Master,
stefan.
Just an FYI guys, I _am_ seeing all the posts here. I'm going to try to do one per day, which means it may take a little while to get through them all.
Also - some questions here got answered in thread (thanks Steven, I'd have no idea how to handle the UNC stuff), so for those I will simply skip them. If I miss your question though (you being anyone here ;) please email me directly to remind me.
I was investigating a new fuctionallity at ASFusion, check it out!
http://www.asfusion.com/blo...
Could you explain this as simply as you can??
Carlos - it may be best actually to ask them. I mean, if they flat out refuse, I can try to help, but since it is their blog, it may be best if you go them directly. :)
Chris with the mysql on linux question: Sorry, but no. I do not have a linux environment right now.
Ray,
Thanks, I’ll do that.
Chris,
I’ve got CFMX7 running on Linux.
My Setup:
Suse9.1 Enterprise Server Edition
Coldfusion MX7 DevEd
TomCat
Apache 2 *you must manualy run the wsconfig configured to your setup for this to work!!
MySQL Server v4.0.18 Client v5.0.1
You can get all of this running out of the box before applying updates!
The only setback I’ve experienced with MySQL and CFMX7 on the same linux box was the clients connection driver. MySQLs’ Latest Server versions authentication process is not fully compatible with the driver Coldfusion7 ships with. The MySQL Server will not accept the password.
I’ll try to help you out as much as I can. How can I reach you? If anything Ray has my email address but I don't know if he'll play MatchMaker...HaHa JustKidding!!!
Ray,
Any examples on how to get cfmx7 flash cfform checkbox's to emulate html checkboxes? According to the docs, the checkbox controls have to have unique names.
In html,
<input type="checkbox" name="test" value="foo">
<input type="checkbox" name="test" value="bar">
end's up with a result of form.test = "foo,bar" if both are checked on submission, and not defined if both unchecked.
I figure I'm going to have to write a onChange script that populates a hidden field with the currently selected checkboxes, which will be interesting when the dynamically generated form will have an indeterminate number of checkboxes.
Justin, your flash forms question. I did some research into this. As far as I know, you can't do it. You can certainly do it in "real" Flash forms - but to do it you need to make a new date object (afaik), and you can't do that in Flash Forms as they are in CF. I'm DEFINITELY open to be told I'm wrong. You can do a new Date ob in the code bound to a cfcalendar tag, but you need an onChange bound to a text input.
C Wigginton: Sorry, afaik, it is not possible.
Tariq - no dynamic cfimport: I believe this comes from a low level. If I grok it right, cfimport tags are executed during compilation, so it can't be dynamic.
Ray, What is a good way to cache results from CFDIRECTORY LIST? The issue is I'm populating a cftree with results from a cfdirectory and want to cache the results. [Lots of files and dirs] I've been messing around with Ben Forta's example for populating the cftree and wanted to add some caching. What would you suggest?
Are we ever going to get session-based CFC replication across cluster members in CFMX 7? It was promised in Blackstone, trumped by BlueDragon, downplayed as a "non-priority", and still we wait... What gives?
Steve - I can't comment on future stuff. You know as much as I do.
If I missed anyones question in here, let me know.
OK Here's another one...
What is the max memory you can use for a JVM (argument -Xmx####m)? Some places say 1024 but other places I have read up to 1.8GB. Any ideas?
Thanks in advance!
I'm hoping this is a simple question: I have fields on a CFMX7 flash form like this StartDate, EndDate, StartTime, EndTime. I need to do simple math on these fields like how many hours (to the nearest .25) between StartTime and EndTime, and How many Days between StartDate and EndDate. maybe a simple onChange event pointing to a <cfsavecontent> routine. Of course I can do this in Access, SQL or standard CF but the syntax is so different in flash forms!
Ray:
Question about application.cfc. In my constructor section, I have the standard:
<cfset This.name = "TEST_APP_NAME">
<cfset This.clientmanagement = true>
<cfset This.clientstorage = "TEST_ClientStorage">
My question: How do you reference those variables outside the CFC? Say for example I wanted to refer to the "name" variable set above for some reason. Dumping the Application scope doesnt show those variables. Dumping the "This" scope doesnt work (the This scope doesnt work outside the CFC). Show me the light--
Tim
Tim,
You can use the REQUEST scope inside of the CFC. I wouldn't recommend it though only becuase if you truely want you CFC to be a stand alone function, you should pass the data your requiring in as an attribute. So in you case, when invoking the CFC set up an attribute calle name and give it the value of This.name. Then, in the CFC you can refer to it as ATTRIBUTES.name.
JMTCW,
Keith
I was, and still will, going to respond to Tim's post, but since Keith beat me to it - let me (respectfully) disagree. When you do this.name in app.cfc, it is available as application.applicationname.
The rest of the things aren't variables - but rather settings. If you want to create application variables to be used outside, use the app scope instead.
I'll still make an official blog entry out of this.
Ray:
Thanks for the reply--maybe the reason why I am asking will help.
I have my main Application.cfc (with constructor code previously mentioned). This Application.cfc (specific to my application, of course) extends another CFC that contains my onError code (so all applications can use the same code). In this extended CFC I have constructor code (things like:
This.EmailForErrors = "my@email.com";
that is used in my onError function. I could ideally like to refer to this email address in the normal pages of my application as well -- rather than duplicating these addresses in the application scope of every application.cfc.
Tim
That's the problem though - you are using the This scope for app data. Thats not what you should do. Use the This scope to set application settings (name, clientmanagement), but use the Application scope for the 'real' data.
Tim, I posted your question as a new entry.
How can I encrypt text via PGP using CFMX (on Windows)?
What's the real story on using CFLDAP and pulling Binary values in Server 6.1 (even after the updater that was SUPPOSED to fix pulling values like objectSID from an MS Exchange server?)
I've been thumping my head (and googling mightily) to find the most appropriate way to a) get an accurate objectSID value and b) to convert it into some reasonable value to use as a primary index.
Is it a combination of JVM and Server? Or is it something that is fixed by upgrading to CF MX7?
Brian: Sorry, CFLDAP is one area of CF I haven't played with in a LONG time. The last time I went in there was when I was working in Spectra and needed to rewrite advanced security.
In terms of Verity, how can you specify multiple categories for an item to be indexed?
Scott, answered.
I am trying to make a menu bar with cfform, using type="tabnavigator" twice to build 2 levels.
Now when getting to the tag <cfformgroup type="vbox" label="onchange 1" onchange="getUrl('index.cfm?user_id=1','parent.frameInfo');"> now gettings to the 2nd level i want to load the pages below in a another frame, how do i go about it. this wiull be dynamic and change for each user so i cant create one, i need to create many on the fly via a db.
Hello,
I have 6 cf reports(cfr) that are called through a cfswitch statement. The page with the statement is SSL(https), but when the pdf report goes to the screen that asks if you would like to open non-secure and secure data. Is there a way to force the report pdf to open in ssl? Thank you.
Nathan Snyder
Ok, here's another question for the Flash/Flex 101 crowd: I'm used to using buttons to submit a cfform with the action="calculate.cfm?pid=#ProjectID#" syntax. But if I'm using a flash form in CFMX7 and I want a button to open another page (without submitting) in a new window and pass the ProjectID from a selected grid item, what is the syntax for the "onChange" event of the button ? Some kind of getURL() or send()?
getURl exactly. You would pass the selected value to a JS function that would pop open a new window. If you have the DRKs, my Lighthouse Pro product does this.
Brian - re: CFLDAP and binary attribute values - you may need to use something other than cfldap to get the right value back. I'd take a look at JLDAP... we've had great success using it to do what CFLDAP cannot (plus it's much faster).
Lemme know if you need help (dave.ross_at_gmail.com)
Nathan, the same issue with SSL (https) happens with cftree and cfgrid. If someone has a solution, other that saving the generated content and replacing http for https, let me know.
Nathan, here you go
http://www.macromedia.com/c...
I found a specific solution on Adobe's website, but since their website was down, i viewed it through the Google Cache... I tested it and it works. Here it is:
http://www.adobe.com/go/96d...
And the actual text if you also can't reach Adobe's website.
To avoid the issue, edit thecf_root/lib/neo-runtime.xml file and change the following:
<var name='CFFormCodeBaseUrl'><string>http://java.sun.com/products/
plugin/1.3/jinstall-13-win32.cab#Version=1,3,0,0</string></var>
to:
<var name='CFFormCodeBaseUrl'><string>https://java.sun.com/</stri...
This will have no effect on non-SSL requests as https://java.sun.com/ is a valid Sun URL to load the Java Plug-in.
Hi,
I am "playing" with flash forms in coldfusion at the moment and I want ot make the text size bigger - no problem and easily acheived BUT I also have a cfinput type="datefield" and while the text of the resulting pop-up calendar changes the size does not and therefore renders it useless - any advice on how I might be able to resize the pop-up calendar?
I have a flash form that has a CFSELECT statement in it, the flash form is set for height="50" but the cfselect drop "down" has become a drop "up", unless I change the height of the form to accomodate the size of the list it will not drop "down", is there a way around this?
Any help would be appreciated.
Thanks in Advance.
Hi,
I have cfform of flash type.In that i have a tree and a cfselect having multiselct feature.
I have made the cftree and cfselct multiselct by using action script code but when I am submitting this data of form. I am not getting multiple selected values of cftree.COuld you help me how to get that?
secondly I am updating the cfselect when we drag and drop an treeitem on it.It is updating quite easily.But still I am facing the same problem.The options I have added using drag and drop in this cfselect are not available in form post.
Could you help me in that?
And I am basically a web developer having exp of cf and php and some .net.I like to learn AIR .Could you tell me where do i get the sdk and starting learning kit to do learn adobe AIR.
Thanks
Manjeet
flash forms: Don't use em. Sorry - that's the advice I have. I used to do quite a bit with em - but I no longer recommend you use it.
air: Start with http://www.adobe.com/go/air. Also see my AIR category on this blog.