cfc vs php rule of thumb
Hello When developing in PHP, it is common to have something like this in a class document: // start include 'my_config_file.php'; class MyClass { // properties and functions } // end Where my_config_file.php is a file that has constants and other shared variables. I am familiar with CFCs also but am not sure what would be the right way to go on this issue. It is good to have an external file with common variables, and sometimes people have them inside Application.cfm but you don't always want to have them there. Can anyone shed any light on this issue? Thanks - mga _ MSN 8: Get 6 months for $9.95/month http://join.msn.com/?page=dept/dialup ~| Archives: http://www.houseoffusion.com/lists.cfm?link=t:4 Subscription: http://www.houseoffusion.com/lists.cfm?link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4 Signup for the Fusion Authority news alert and keep up with the latest news in ColdFusion and related topics. http://www.fusionauthority.com/signup.cfm
cfc vs php rule of thumb
> > > > > I guess this would be the answer (did not know u could cfinclude right away). But the other posts raised some interesting questions: Didn't quite understand the INI suggestion (Raymond Camden) Is it recommendable to put CFCs in the application scope? (Barney Boisvert) how will things work when using: Thanks Mauricio ~| Archives: http://www.houseoffusion.com/lists.cfm?link=t:4 Subscription: http://www.houseoffusion.com/lists.cfm?link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4 This list and all House of Fusion resources hosted by CFHosting.com. The place for dependable ColdFusion Hosting. http://www.cfhosting.com
Mach II was RE: RE: cfc vs php rule of thumb
>http://www.mach-ii.com/ I've been clicking around the mach-ii site over the past days but haven't understood it completely (yet). Downloading PDFs right now. Are the UML diagrams made with gModeler? I suggest a question for the Mach-II FAQ: What is Mach-II? I've read a lot of blogs telling how great Mach-II is (event-based CFCs or something) but I have no idea yet what it really is. Maybe PDFs will help. Thanks - mga ~| Archives: http://www.houseoffusion.com/lists.cfm?link=t:4 Subscription: http://www.houseoffusion.com/lists.cfm?link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4 Get the mailserver that powers this list at http://www.coolfusion.com
more php vs cf (cfcase and constants)
Hello Again with a PHP-related question (trying to convert some PHP code to CF). This one has to do with CFCASE. In PHP you can define a constant using define("constantname","constantvalue"). From there on the variable is indeed treated as a constant (like true or false). I have a switch/case in PHP I want converted to CF but I cannot find a way of creating a "constant-constant" and end up having the old "This expression must have a constant value." error. I know I can use CFIF but, well, just wanted to know if this can be done with CFSWITCH PHP can do it! : ) Regards - mga _ Get MSN 8 and enjoy automatic e-mail virus protection. http://join.msn.com/?page=features/virus ~| Archives: http://www.houseoffusion.com/lists.cfm?link=t:4 Subscription: http://www.houseoffusion.com/lists.cfm?link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4 This list and all House of Fusion resources hosted by CFHosting.com. The place for dependable ColdFusion Hosting. http://www.cfhosting.com
cfc vs php rule of thumb
Hello When developing in PHP, it is common to have something like this in a class document: // start include 'my_config_file.php'; class MyClass { // properties and functions } // end Where my_config_file.php is a file that has constants and other shared variables. I am familiar with CFCs also but am not sure what would be the right way to go on this issue. It is good to have an external file with common variables, and sometimes people have them inside Application.cfm but you don't always want to have them there. Can anyone shed any light on this issue? Thanks - mga _ MSN 8: Get 6 months for $9.95/month http://join.msn.com/?page=dept/dialup ~| Archives: http://www.houseoffusion.com/lists.cfm?link=t:4 Subscription: http://www.houseoffusion.com/lists.cfm?link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4 Your ad could be here. Monies from ads go to support these lists and provide more resources for the community. http://www.fusionauthority.com/ads.cfm
cfc vs php rule of thumb
> > > > > I guess this would be the answer (did not know u could cfinclude right away). But the other posts raised some interesting questions: Didn't quite understand the INI suggestion (Raymond Camden) Is it recommendable to put CFCs in the application scope? (Barney Boisvert) how will things work when using: Thanks Mauricio ~| Archives: http://www.houseoffusion.com/lists.cfm?link=t:4 Subscription: http://www.houseoffusion.com/lists.cfm?link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4 Get the mailserver that powers this list at http://www.coolfusion.com
cfc vs php rule of thumb
Hello When developing in PHP, it is common to have something like this in a class document: // start include 'my_config_file.php'; class MyClass { // properties and functions } // end Where my_config_file.php is a file that has constants and other shared variables. I am familiar with CFCs also but am not sure what would be the right way to go on this issue. It is good to have an external file with common variables, and sometimes people have them inside Application.cfm but you don't always want to have them there. Can anyone shed any light on this issue? Thanks - mga _ MSN 8: Get 6 months for $9.95/month http://join.msn.com/?page=dept/dialup ~| Archives: http://www.houseoffusion.com/lists.cfm?link=t:4 Subscription: http://www.houseoffusion.com/lists.cfm?link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4 Get the mailserver that powers this list at http://www.coolfusion.com
Mach II was RE: RE: cfc vs php rule of thumb
>http://www.mach-ii.com/ I've been clicking around the mach-ii site over the past days but haven't understood it completely (yet). Downloading PDFs right now. Are the UML diagrams made with gModeler? I suggest a question for the Mach-II FAQ: What is Mach-II? I've read a lot of blogs telling how great Mach-II is (event-based CFCs or something) but I have no idea yet what it really is. Maybe PDFs will help. Thanks - mga ~| Archives: http://www.houseoffusion.com/lists.cfm?link=t:4 Subscription: http://www.houseoffusion.com/lists.cfm?link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4 Signup for the Fusion Authority news alert and keep up with the latest news in ColdFusion and related topics. http://www.fusionauthority.com/signup.cfm
Mach II was RE: RE: cfc vs php rule of thumb
>http://www.mach-ii.com/ I've been clicking around the mach-ii site over the past days but haven't understood it completely (yet). Downloading PDFs right now. Are the UML diagrams made with gModeler? I suggest a question for the Mach-II FAQ: What is Mach-II? I've read a lot of blogs telling how great Mach-II is (event-based CFCs or something) but I have no idea yet what it really is. Maybe PDFs will help. Thanks - mga ~| Archives: http://www.houseoffusion.com/lists.cfm?link=t:4 Subscription: http://www.houseoffusion.com/lists.cfm?link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4 This list and all House of Fusion resources hosted by CFHosting.com. The place for dependable ColdFusion Hosting. http://www.cfhosting.com
cfc vs php rule of thumb
> > > > > I guess this would be the answer (did not know u could cfinclude right away). But the other posts raised some interesting questions: Didn't quite understand the INI suggestion (Raymond Camden) Is it recommendable to put CFCs in the application scope? (Barney Boisvert) how will things work when using: Thanks Mauricio ~| Archives: http://www.houseoffusion.com/lists.cfm?link=t:4 Subscription: http://www.houseoffusion.com/lists.cfm?link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4 Signup for the Fusion Authority news alert and keep up with the latest news in ColdFusion and related topics. http://www.fusionauthority.com/signup.cfm
Mach II was RE: RE: cfc vs php rule of thumb
>Do my Mach II pages help? >http://www.corfield.org/index.php?fuseaction=machii.why >http://www.corfield.org/index.php?fuseaction=machii.concepts They certainly do. Thanks a lot - mga ~| Archives: http://www.houseoffusion.com/lists.cfm?link=t:4 Subscription: http://www.houseoffusion.com/lists.cfm?link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4 Signup for the Fusion Authority news alert and keep up with the latest news in ColdFusion and related topics. http://www.fusionauthority.com/signup.cfm
whitespace is breaking my javascript
hello thanks for all the input on different issues i have presented in this list. this is really THE place for CF stuff. right now i am having a really particular issue with coldfusions whitespace. i will try and explain as much as i can: 1- i have a few CFCs (calling each other, extending each other) 2- one CFC function is a wrapper to another (a shorthand version) and their object is returning texts for dialog boxes and javascripts 3- more or less the cf: // return message return this.lang_data[_block][arguments.message]; theres more CFML (especially in showMessage) but just so you get an idea. i am outputting texts using something like: #obj.m("special_string")# where "special_string" is some string i use in showMessage to detect stuff (it is a multi-language app with a lot of parametrization) the problem: i am getting A LOT of whitespace. whenever i use those (and other) functions it breaks all javascript (that is also dynamically created with CF and those functions). tried using CFSETTING but i simply cannot put that many cfoutputs all over the place (tried also combining m and showMessage in one). one way i "solved" it was using someplace before the javascript and then just outputting #myvar# in the javascript. the problem is i have A LOT of CFC invocations (a single page can have 60+ and i have a few dozen pages) and it just would not make sense. i am looking for a way to minimize/eliminate whitespace generated when invoking functions. i really need this to work (will share the app as soon as i have it finished... its actually finished but the javascript is breaking... whitespace solved EQ app finished) i will appreciate any help on this issue thanks a lot - mga _ Help protect your PC: Get a free online virus scan at McAfee.com. http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963 ~| Archives: http://www.houseoffusion.com/lists.cfm?link=t:4 Subscription: http://www.houseoffusion.com/lists.cfm?link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4 Your ad could be here. Monies from ads go to support these lists and provide more resources for the community. http://www.fusionauthority.com/ads.cfm
whitespace is breaking my javascript
>Make sure you've got output="no" attribute in the tag and >in any functions within that CFC... OMG... you know... it's 5 am here... i haven't slept well in two days trying to get this thing running... i just can't believe i missed that part!... it's working now! i think i'm gonna cry... will upload a version for you guys to check as soon as i get some Z's thanks a lot - mga ~| Archives: http://www.houseoffusion.com/lists.cfm?link=t:4 Subscription: http://www.houseoffusion.com/lists.cfm?link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4 Your ad could be here. Monies from ads go to support these lists and provide more resources for the community. http://www.fusionauthority.com/ads.cfm
whitespace is breaking my javascript
Hello Well the app is now working (was the output="false" issue after all... doh!). I am trying now to make it work under a shared hosting environment and CFINCLUDE mappings get freaked out. The app in question is a web-based html editor based on the PHP SPAW Editor found here: http://www.solmetra.com/spaw/demo/demo.php I have just almost finished a CF version and it is really neat (a few of CFCs and other nice items). But since the account is in a shared environment, CFINCLUDE breaks and I cannot post for you guys to check out. Works locally 100% though. If anyone has any idea regarding this CFINCLUDE issue it will be appreciated. Regards - mga ~| Archives: http://www.houseoffusion.com/lists.cfm?link=t:4 Subscription: http://www.houseoffusion.com/lists.cfm?link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4 This list and all House of Fusion resources hosted by CFHosting.com. The place for dependable ColdFusion Hosting. http://www.cfhosting.com
Multiple sites...
Hello I was just googling around and found this post. I think I have a situation where relative paths will not solve the problem. I have an app that cannot use relative paths for cfincludes and cannot configure a mapping in cfadmin (shared hosting environment). Am I lost? Why can't I have relative paths? Because the cfinclude template attribute is dynamically generated. I have a variable set up in the Application.cfm called request.doc_root = "/mysite/". CFM files in different subfolders cfinclude othe files in other subfolders based on the doc_root variable. Another issue is that in our shared hosting environment I cannot instantiate a CFC that is one level up from the file from where I am instantiating. Is there a workaround for these issues? Thanks - mga ~| Archives: http://www.houseoffusion.com/lists.cfm?link=t:4 Subscription: http://www.houseoffusion.com/lists.cfm?link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4 Get the mailserver that powers this list at http://www.coolfusion.com
Multiple sites...
>All you'd need to do is replace instances of template="#map#/blah.cfm" >with template="#getRelative('blah.cfm')#" and I can help you write a >multi-file regular expression to do that if you like. Let me know if >you'd like to go that route and you want some help, I'd be glad to >lend a hand. :) WOW! This is a really nice UDF. I wonder why MM didn't include on in MX in the first place (given that relative paths are so important for CFINCLUDES). I am going to give it a try. Regards - mga ~| Archives: http://www.houseoffusion.com/lists.cfm?link=t:4 Subscription: http://www.houseoffusion.com/lists.cfm?link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4 Get the mailserver that powers this list at http://www.coolfusion.com
Multiple sites...
I don't seem to understand the getRelative UDF: suppose the physical map path for my account is /home/virtual/sites/mysite/www/html/ the web root map path for my account is /www/html/ here's a sample: http://www.elefectoaxe.com.co/spaw/scripts/test3.cfm what am I doing wrong? ~| Archives: http://www.houseoffusion.com/lists.cfm?link=t:4 Subscription: http://www.houseoffusion.com/lists.cfm?link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4 Signup for the Fusion Authority news alert and keep up with the latest news in ColdFusion and related topics. http://www.fusionauthority.com/signup.cfm
Multiple sites...
>I don't know how versions of cf-unix work that seems to be my problem... my host offers cf-linux and i am right now messing all my cfcs trying to get the thing running... i am pretty near now fortunately... using your getRelative and a few Mid + Find functions got the mapping right for cfinclude... BUT... now i am having the equivalent problem with CreateObject("component","myCFC")... this invocation is happening in a directory struct similar to: / /cfc /config <--- this dir requests a CFC in /cfc i cannot find a way to map to the ../cfc directory. is there a way? - mga ~| Archives: http://www.houseoffusion.com/lists.cfm?link=t:4 Subscription: http://www.houseoffusion.com/lists.cfm?link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4 Your ad could be here. Monies from ads go to support these lists and provide more resources for the community. http://www.fusionauthority.com/ads.cfm
Multiple sites...
done i just put the darn cfc dir inside the config dir (the idea was to have an understandable dir structure but what the heck) i still have to work our the upload issue (for some reason i cannot upload files... it has problems with the .TMP file... sometimes access denied for tmp file sometimes "The form field filename.tmp did not contain a file." the app in question is here: http://www.elefectoaxe.com.co/spaw/test.cfm comments appreciated - mga ~| Archives: http://www.houseoffusion.com/lists.cfm?link=t:4 Subscription: http://www.houseoffusion.com/lists.cfm?link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4 This list and all House of Fusion resources hosted by CFHosting.com. The place for dependable ColdFusion Hosting. http://www.cfhosting.com
whitespace is breaking my javascript
Finally got the thing "working". http://www.elefectoaxe.com.co/spaw/test.cfm If you are interested in this development I will be setting a SourceForge project soon. - mga ~| Archives: http://www.houseoffusion.com/lists.cfm?link=t:4 Subscription: http://www.houseoffusion.com/lists.cfm?link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4 This list and all House of Fusion resources hosted by CFHosting.com. The place for dependable ColdFusion Hosting. http://www.cfhosting.com
Filter file type upload
>Have you tried restricting the MIME type in the CFFILE upload tag >itself? This would be caught via cftry/cfcatch? If so... What are the error types thrown? - mga ~| Archives: http://www.houseoffusion.com/lists.cfm?link=t:4 Subscription: http://www.houseoffusion.com/lists.cfm?link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4 Get the mailserver that powers this list at http://www.coolfusion.com
Filter file type upload
> This should fix you up: Nice... thanks... just what I was looking for. Two questions: - if I have multiple form fields and an input type file, CGI.Content_length will be the sum of all values? - is there a way to set up some CGI.Content_length limit via CFML just as you would do with a php.ini or something like that? Thanks - mga ~| Archives: http://www.houseoffusion.com/lists.cfm?link=t:4 Subscription: http://www.houseoffusion.com/lists.cfm?link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4 Signup for the Fusion Authority news alert and keep up with the latest news in ColdFusion and related topics. http://www.fusionauthority.com/signup.cfm
Filter file type upload
>Hmmm. Good question. No clue as to the answer (althought I suspect >it's the len of all submitted form fields), but you should be able to >test the theory rather easily. Verified. CGI.CONTENT_LENGTH = the sum of all info submitted including text fields, hidden fields and file fields. >You can set a cgi.content_length limit to anything you want. Put a >value in application.cfm or somesuch and call it on the form instead of >a hardcoded value. But if, for example, I have and I select a 100MB file and click SUBMIT, CF will upload to temp memory the 100MB file, THEN parse the script and notice there is a limit < 100MB THEN tell me the file is too big. Is there a way to have CF just stop in a limit? Do file uploads behave the way I describe? - mga ~| Archives: http://www.houseoffusion.com/lists.cfm?link=t:4 Subscription: http://www.houseoffusion.com/lists.cfm?link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4 Get the mailserver that powers this list at http://www.coolfusion.com
Efficient way to handle undefined variables
>That's what >-Original Message- >From: Rich Z [mailto:[EMAIL PROTECTED] >Sent: Friday, August 29, 2003 3:54 PM >To: CF-Talk >Subject: Efficient way to handle undefined variables > > >What is the best/most efficient way to handle a scenario where you're >populating variables from other variables that may or may not exist. If >they don't exist, an empty string should be assigned. I wrote a little >function to do this with a simple if statement inside: > >If (isDefined("inVal") >{ >outVal = inVal; >} >else >{ >outVal = ""; >} > >Is this the best way to go about this? I'm going to end up wrapping >quite a few variables in this function, that's why I'm curious (I'm >puling in an XML that potentially has MANY optional variables). > >Thanks, >Rich > > ~| Archives: http://www.houseoffusion.com/lists.cfm?link=t:4 Subscription: http://www.houseoffusion.com/lists.cfm?link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4 This list and all House of Fusion resources hosted by CFHosting.com. The place for dependable ColdFusion Hosting. http://www.cfhosting.com
Efficient way to handle undefined variables
sorry for the double post... clocked post by error >That's what http://www.houseoffusion.com/lists.cfm?link=t:4 Subscription: http://www.houseoffusion.com/lists.cfm?link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4 This list and all House of Fusion resources hosted by CFHosting.com. The place for dependable ColdFusion Hosting. http://www.cfhosting.com
Efficient way to handle undefined variables
>Yes, you can so... for the example in question (xml optional info) you would go something like this pseudocode? : then you could safely use those variables in ? - mga ~| Archives: http://www.houseoffusion.com/lists.cfm?link=t:4 Subscription: http://www.houseoffusion.com/lists.cfm?link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4 Your ad could be here. Monies from ads go to support these lists and provide more resources for the community. http://www.fusionauthority.com/ads.cfm
Efficient way to handle undefined variables
>I'm a bit confused about how you're building your variable names, as well. I dunno. I'm just trying to understand Rich Z's issue altogether. : ) ~| Archives: http://www.houseoffusion.com/lists.cfm?link=t:4 Subscription: http://www.houseoffusion.com/lists.cfm?link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4 This list and all House of Fusion resources hosted by CFHosting.com. The place for dependable ColdFusion Hosting. http://www.cfhosting.com
request vs application scope
Hi We are developing this web-based HTML editor: http://www.elefectoaxe.com.co/spaw/test.cfm It uses CFCs and has several configuration variables (default language, folder to place images into, etc) that are created in a couple of configuration templates. Right now we handle these configuration variables in the REQUEST scope. Would it be a better idea to handle them in the APPLICATION or some other scope? What is the criteria for scope choosing? This is a SourceForge project and once we upload it you can take a look at the code. Regards Mauricio _ Get 10MB of e-mail storage! Sign up for Hotmail Extra Storage. http://join.msn.com/?PAGE=features/es ~| Archives: http://www.houseoffusion.com/lists.cfm?link=t:4 Subscription: http://www.houseoffusion.com/lists.cfm?link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4 Signup for the Fusion Authority news alert and keep up with the latest news in ColdFusion and related topics. http://www.fusionauthority.com/signup.cfm
request vs application scope
>>In general, when using CFCs I would recommend creating the variables >inside the CFCs as instance variables upon invocation rather than "look >out" of the CFC to external data. The idea is to have users generate their own config file without "touching" the CFCs. How would you recommend this to be done? - mga ~| Archives: http://www.houseoffusion.com/lists.cfm?link=t:4 Subscription: http://www.houseoffusion.com/lists.cfm?link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4 This list and all House of Fusion resources hosted by CFHosting.com. The place for dependable ColdFusion Hosting. http://www.cfhosting.com
removing a mapping programatically
Hi I read Spikefu's blog where he shows how to create a mapping programmatically: http://www.spike.org.uk/index.cfm?objectid=87E72480-22AB-07A9-6F4F907DBBE52317 How would you delete a mapping programmatically? Mauricio _ Get 10MB of e-mail storage! Sign up for Hotmail Extra Storage. http://join.msn.com/?PAGE=features/es ~| Archives: http://www.houseoffusion.com/lists.cfm?link=t:4 Subscription: http://www.houseoffusion.com/lists.cfm?link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4 This list and all House of Fusion resources hosted by CFHosting.com. The place for dependable ColdFusion Hosting. http://www.cfhosting.com
request vs application scope
>(Perhaps if you show us some code, this will be easier?) LOL... I'm trying to set the SourceForge project but that CVS thing is pretty overwhelming (and I thought I was a techie)... I could send a ZIP file... Mmmm gonna post the ZIP here: http://www.elefectoaxe.com.co/spaw/test.cfm Click the Download link. Feel free to use it... ~| Archives: http://www.houseoffusion.com/lists.cfm?link=t:4 Subscription: http://www.houseoffusion.com/lists.cfm?link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4 This list and all House of Fusion resources hosted by CFHosting.com. The place for dependable ColdFusion Hosting. http://www.cfhosting.com
request vs application scope
>Of course I'm new to all this myself so I may (and quite probably am) >completely off-base on the "right" way to do this in OO. Hopefully >somebody with some more experience will chime in as well. > >Jim Davis These are all interesting remarks... This HTML editor is actually a CF port from an original PHP version (yes... we pretty much translated line by line and had to work around the looseness of PHP) but I think the "final" result is pretty good. It will be very useful to us. But given the way CF mappings work, and that many users won't have a dedicated Windows CFMX to play around, we want to make it accesible for mortals like us that have to live with what our hosting provider sends our way (heck I am having real trouble making CFFILE work under shared-server Linux hosting... even though that tag is enabled). You can check it out and download it here: http://www.elefectoaxe.com.co/spaw/test.cfm ~| Archives: http://www.houseoffusion.com/lists.cfm?link=t:4 Subscription: http://www.houseoffusion.com/lists.cfm?link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4 Signup for the Fusion Authority news alert and keep up with the latest news in ColdFusion and related topics. http://www.fusionauthority.com/signup.cfm
How do your ISPs handle CF mappings?
My host denies me mappings for "security reasons". I also have no idea how a mapping could be insecure (not a security expert). My apps do need mappings and I end up with sleepless nights trying to make the darn thing work without them (CFCs, Flash Remoting, CFINCLUDES... they tend to break without them) I suppose it is because they host under Linux. - mga ~| Archives: http://www.houseoffusion.com/lists.cfm?link=t:4 Subscription: http://www.houseoffusion.com/lists.cfm?link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4 Your ad could be here. Monies from ads go to support these lists and provide more resources for the community. http://www.fusionauthority.com/ads.cfm
How do your ISPs handle CF mappings?
>And what does that have to do with CF mappings? I dunno... but I feel like the weird kid in the block whose dad got the Renault when everyone has a Ford or a Chrysler. When I mention they have Linux, the List goes silent :( - mga ~| Archives: http://www.houseoffusion.com/lists.cfm?link=t:4 Subscription: http://www.houseoffusion.com/lists.cfm?link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4 Get the mailserver that powers this list at http://www.coolfusion.com
request vs application scope
>Mauricio, this looks good, well done. Thanks. Feel free to download. It's GNU GPL. - mga ~| Archives: http://www.houseoffusion.com/lists.cfm?link=t:4 Subscription: http://www.houseoffusion.com/lists.cfm?link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4 This list and all House of Fusion resources hosted by CFHosting.com. The place for dependable ColdFusion Hosting. http://www.cfhosting.com
How do your ISPs handle CF mappings?
>I don't think that analogy quite fits considering Linux is the most >deployed OS for web servers currently and is slated to be the most >deployed server OS in general within 5 years. I mean the Linux + CF Combo... That would be a stick-driven Renault 21... ~| Archives: http://www.houseoffusion.com/lists.cfm?link=t:4 Subscription: http://www.houseoffusion.com/lists.cfm?link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4 Signup for the Fusion Authority news alert and keep up with the latest news in ColdFusion and related topics. http://www.fusionauthority.com/signup.cfm
How do your ISPs handle CF mappings?
>We support both Linux and Windows - and CF works the same way on both Well then... I guess I'm out of luck then. - mga ~| Archives: http://www.houseoffusion.com/lists.cfm?link=t:4 Subscription: http://www.houseoffusion.com/lists.cfm?link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4 This list and all House of Fusion resources hosted by CFHosting.com. The place for dependable ColdFusion Hosting. http://www.cfhosting.com
How do your ISPs handle CF mappings?
>I'm not sure what the downside is to creating a mapping, apart from the >small amount of time required to do it. Are there any security issues that >I don't know about? Anyone know of security issues that arise when using CF mappings in a shared server Linux environment? - mga ~| Archives: http://www.houseoffusion.com/lists.cfm?link=t:4 Subscription: http://www.houseoffusion.com/lists.cfm?link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4 This list and all House of Fusion resources hosted by CFHosting.com. The place for dependable ColdFusion Hosting. http://www.cfhosting.com
How do your ISPs handle CF mappings?
>Who is this host? I want to know who to avoid. I'd love to hear them >explain how a mapping is a security risk. (mt) Media Temple ~| Archives: http://www.houseoffusion.com/lists.cfm?link=t:4 Subscription: http://www.houseoffusion.com/lists.cfm?link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4 Signup for the Fusion Authority news alert and keep up with the latest news in ColdFusion and related topics. http://www.fusionauthority.com/signup.cfm
Can this be done?
speculating: cffile the apache/iis logs... parse the last couple of lines... output... dont wanna think what will happen if the logs are a few megabytes big... - mga ~| Archives: http://www.houseoffusion.com/lists.cfm?link=t:4 Subscription: http://www.houseoffusion.com/lists.cfm?link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4 This list and all House of Fusion resources hosted by CFHosting.com. The place for dependable ColdFusion Hosting. http://www.cfhosting.com
Can this be done?
>The logs just contain the same data that would be in CGI.HTTP_REFERER hm... wasn't aware of that ~| Archives: http://www.houseoffusion.com/lists.cfm?link=t:4 Subscription: http://www.houseoffusion.com/lists.cfm?link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4 Get the mailserver that powers this list at http://www.coolfusion.com
OT: CFC-based GPL web HTML editor
Hi Just wanted to let you know we have posted on SourceForge a WYSIWYG web-based HTML Editor. It is in Beta development right now. It is quite stable and I'm sure you will find it useful (we looked all over the web for a good CF web editor and all are quite costly so we decided to port a really good PHP-based editor). It uses CFC so CFMX is required. It will work in shared server environments. Win MSIE 5.5+ required. If you want to contribute/submit bugs/whatever just post your messages in the corresponding SourceForge forums for the project. The project summary is in: http://sourceforge.net/projects/spaw-cf Regards - mga (Non-commercial only for now) _ Try MSN Messenger 6.0 with integrated webcam functionality! http://www.msnmessenger-download.com/tracking/reach_webcam ~| Archives: http://www.houseoffusion.com/lists.cfm?link=t:4 Subscription: http://www.houseoffusion.com/lists.cfm?link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4 Your ad could be here. Monies from ads go to support these lists and provide more resources for the community. http://www.fusionauthority.com/ads.cfm
Re:Alternative QYSIWYG editors
Hi We developed this CF version of SPAW from Solmetra and it is GPL: http://sourceforge.net/projects/spaw-cf It has a nice interface and some nifty features. Works under Win IE only though. - mga ~| Archives: http://www.houseoffusion.com/lists.cfm?link=t:4 Subscription: http://www.houseoffusion.com/lists.cfm?link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4 Signup for the Fusion Authority news alert and keep up with the latest news in ColdFusion and related topics. http://www.fusionauthority.com/signup.cfm
Re:CFC-based GPL web HTML editor
>Win IE5.5 required = unusable. I agree partially 1) the editor works because it makes use of some features only available for ie 5.5+ browsers 2) it is intended for "internal use" projects so you could have just 1 pc with ie 5.5+ installed in it and use it for your cms administration or whatever. SPAW is not supposed to be some sort of Dreamweaver replacement. 3) it is an open-source GPL editor. If anyone wants to contribute and make a crossbrowser version we are completely open to ideas. - mga ~| Archives: http://www.houseoffusion.com/lists.cfm?link=t:4 Subscription: http://www.houseoffusion.com/lists.cfm?link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4 Your ad could be here. Monies from ads go to support these lists and provide more resources for the community. http://www.fusionauthority.com/ads.cfm
Re:CFC-based GPL web HTML editor
>Except of course that your editor depends on functionality only found >in IE. Writing an editor that was completed cross-platform would >require throwing all everything you have done so far and starting again. The editor is built using CFCs and an OO perspective. This way we can replace pieces of code without having to redo everything. Javascript is well separated from CF. I guess a cross-browser version could be done why not? Have you given it a look? - mga ~| Archives: http://www.houseoffusion.com/lists.cfm?link=t:4 Subscription: http://www.houseoffusion.com/lists.cfm?link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4 Your ad could be here. Monies from ads go to support these lists and provide more resources for the community. http://www.fusionauthority.com/ads.cfm
Re:CFC-based GPL web HTML editor
>When developers of Linux, Macs and so on will make equivalent tools >available, I'll be glad to use them. >For the time being it's simply too time consuming. I agree. It is very easy to say "DUH! Your editor only works in 95% of the browsers. How about ME. I got a MAC. You suck!" and not as easy to actually DO a cross-browser, GPL, Coldfusion editor. If anyone has the knowledge to make it work under Mozilla/Netscape/Mac, feel free to drop a line in the SourceForge project forum: http://sourceforge.net/forum/forum.php?forum_id=306365 I am just posting here because I am a CF developer and I needed a GPL, CF-based, customizable, multi-language (21 languages here), WYSIWYG editor, and since I did not find it I decided to port a PHP version and it works pretty nice. I am sure a lot of CFers here have this same need and cannot afford stuff such as ActivEdit or other CF editors. - mga ~| Archives: http://www.houseoffusion.com/lists.cfm?link=t:4 Subscription: http://www.houseoffusion.com/lists.cfm?link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4 Signup for the Fusion Authority news alert and keep up with the latest news in ColdFusion and related topics. http://www.fusionauthority.com/signup.cfm
Re:CFC-based GPL web HTML editor
>I have given it a look and I believe that using a Java front-end >through either an Applet or Java Web Start is the only way to create a >good cross-platform HTML editor. LOL All this discussion around cross-browser compatibility and it ends up being a no-can-do (as far as browser-only technologies/languages). ~| Archives: http://www.houseoffusion.com/lists.cfm?link=t:4 Subscription: http://www.houseoffusion.com/lists.cfm?link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4 Your ad could be here. Monies from ads go to support these lists and provide more resources for the community. http://www.fusionauthority.com/ads.cfm
Re:CFC-based GPL web HTML editor
>Second, why would a Java solution be limited in any >way as compared to a native solution? According to this: http://www.macromedia.com/software/player_census/flashplayer/ Java is installed in around 91% of users' computers. I prefer a 95% IE 5.5+ no-plug-in-needed penetration than a 91% Java penetration. - mga ~| Archives: http://www.houseoffusion.com/lists.cfm?link=t:4 Subscription: http://www.houseoffusion.com/lists.cfm?link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4 Your ad could be here. Monies from ads go to support these lists and provide more resources for the community. http://www.fusionauthority.com/ads.cfm
Re:CFC-based GPL web HTML editor
>I would like to see the "old browsers" handled by replacing the tag with a >standard textarea tag rather than bump them off to an "oldbrowser.htm" file. >Is this easy to do? Absolutely. It is already implemented. Non-IE 5.5+ browsers will get a plain old TEXTAREA tag :) - mga ~| Archives: http://www.houseoffusion.com/lists.cfm?link=t:4 Subscription: http://www.houseoffusion.com/lists.cfm?link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4 Signup for the Fusion Authority news alert and keep up with the latest news in ColdFusion and related topics. http://www.fusionauthority.com/signup.cfm
Re:CFC-based GPL web HTML editor
>I think it's great that you took an open source option and converted it to >CF. It makes me want to take another look through SourceForge to see if >there's other nifty things I haven't been paying attention to that might be >worth converting. Thanks Kevin. SPAW-CF is just the result of our internal need for a good, GPL CF editor. Translating from PHP was tricky because PHP is loosely typed (variables don't need to exist, you can convert between datatypes for the same variable, etc.) and CF is a hassle with mapppings (IMO... when you don't have your very own CF dedicated server). This version of CF-SPAW should work pretty much anywhere CFCs are enabled. Any input on SPAW-CF will be appreciated (I am no PhD on OOP nor CFCs so I bet there are parts that could be better-written) - mga ~| Archives: http://www.houseoffusion.com/lists.cfm?link=t:4 Subscription: http://www.houseoffusion.com/lists.cfm?link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4 Your ad could be here. Monies from ads go to support these lists and provide more resources for the community. http://www.fusionauthority.com/ads.cfm
Re:CFC-based GPL web HTML editor
>I know you meant well, though :-) Yea... you get the point >Realistically, whats out there if you need cross-platform and >international language support? I agree. SPAW-CF has 21 languages and you can write your own language file in no time (if you want to translate all strings) >I think it was already pointed out that Ephox' java variant was a good >solution that seemed to work well for cross-platform. But its ability >to support foreign languages is pathetic, if what their web site touts >as language support (see the feature set) is all there is. I downloaded the Ephox thing and got freaked out when I saw an entry in my Start Menu and no uninstaller to be found anywhere. I really dont appreciate it when programs do such things even though they are "harmless". >As I mentioned earlier I have a translateable ActivEdit, and >I'm sure I'm by no means the only one who's done that, since the >product is available unencrypted. We couldnt afford the ColdFusion Open Source version of ActivEdit for testing purposes. I could not get the demo to work on Opera 7.11. The Java version for Netscape is pretty neat. I don't think ActivEdit sucks in any way... We just needed a GPL option. >If you want cross-platform *and* multilanguage support, looks like >you're screwed unless you write your own. I agree. We just let our clients know that they will need a PC with IE 5.5+ for their "back end" or just live with the plain TEXTAREA tag that will show up in other browsers. Check this link in Netscape: http://www.elefectoaxe.com.co/spaw/test.cfm It is a "graceful degradation" of functionality. - mga ~| Archives: http://www.houseoffusion.com/lists.cfm?link=t:4 Subscription: http://www.houseoffusion.com/lists.cfm?link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4 Get the mailserver that powers this list at http://www.coolfusion.com
Re:CFC-based GPL web HTML editor
>This works in IE and Mozilla based browsers. It might be worth a look >just to port that to a cfc. Did not work on Netscape 7 Windows. This post was started mentioning the port we did of SPAW but for some reason the original post got cut off. I am going to repost the info regarding the open-source CFC-based WYSIWYG editor (IE 5.5+ Windows required for WYSIWYG functionality though... a plain TEXTAREA will show up in Mozilla/Opera/others) we developed: Project Homepage in SourceForge: http://sourceforge.net/projects/spaw-cf A working demo (image upload disabled): http://www.elefectoaxe.com.co/spaw/test.cfm Regards Mauricio~| [http://www.houseoffusion.com/lists.cfm?link=t:4";>Todays Threads] [http://www.houseoffusion.com/lists.cfm?link=t:4";>This Message] [http://www.houseoffusion.com/lists.cfm?link=s:4";>Subscription] [http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=1.1.4";>Fast Unsubscribe] [http://www.houseoffusion.com/signin/";>User Settings http://www.fusionauthority.com/banners/view.cfm?bannerid=33"; TARGET="_blank">http://www.fusionauthority.com/banners/CF_intro_468x60.gif"; WIDTH="468" HEIGHT="60" ALT="" BORDER="0">
Re:CFC-based GPL web HTML editor
>You need Mozilla 1.3.1+ oh ~| Message: http://www.houseoffusion.com/lists.cfm?link=i:4:137316 Archives: http://www.houseoffusion.com/lists.cfm?link=t:4 Subscription: http://www.houseoffusion.com/lists.cfm?link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4 Your ad could be here. Monies from ads go to support these lists and provide more resources for the community. http://www.fusionauthority.com/ads.cfm
Re:MySQL and performance [Was: Re: Urgent: Performance Help]
Optimize MySQL: http://www.databasejournal.com/features/mysql/article.php/1382791 Hope that helps - mga ~| Message: http://www.houseoffusion.com/lists.cfm?link=i:4:137606 Archives: http://www.houseoffusion.com/lists.cfm?link=t:4 Subscription: http://www.houseoffusion.com/lists.cfm?link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4 This list and all House of Fusion resources hosted by CFHosting.com. The place for dependable ColdFusion Hosting. http://www.cfhosting.com
Re:Password Logic
Good comments. I tend not to like the question/answer combo because more often than not I wont remember what I put as question in the first place and a lot of times wont remember how exactly I wrote the answer (was it "mom"... or "Mom"... or "mother"?), but it IS safer. Maybe we could come up with a new, even better way? Mauricio [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
Re:flash remoting help
>Has anyone used flash remoting on a shared hosting environment, as I¹m >convinced its a problem with the path to the cfc... What hosting provider? Does it work in your local development scenario? (you do have a development server right?) Heres a snippet that should work for you: /* AS code */ obj = function () { this. (r) { trace("received:" + r); } this. (e) { trace("error:" + e.details); } } function init () { NetServices.setDefaultGatewayUrl("http://www.lightwillrise.com:27000/flashservices/gateway"); var conn = NetServices.createGatewayConnection(); var service = conn.getService("cfc.sendmail",new obj()); service.sayHello(); } init(); /* in cfc/sendmail.cfc */ name="sayHello" access="remote" output="false" returntype="string"> [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
Re:flash remoting help
> Yes I am using Flash Remoting in a shared hosting environemnt Tell me about it. Some sysadmins just dont know how to configure flash remoting. Is it Windows or Linux hosting? Please provide the most information. [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
Re:flash remoting help
>In my experience its not configuring Flash Remoting, its configuring how >the webroots are setup. Yes... although I have had quite a few issues with CFC mappings and Remoting since behavior in CFM is different (or has been different in the scenarios I have had) to Flashservices behavior. But that is another story. The issue is directory mapping as Clint pointed out. If the current thread problem is under Windows, maybe pointing your sysadmin to this page will help: http://www.macromedia.com/support/flash_remoting/ts/documents/iis_gateway_connection.htm [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
OT: invoking NuSOAP PHP webservice with CF
Hi I have developed a webservice using NuSOAP for PHP. Service is working ok and producing a WSDL. Flash Pro 2004 even catches schema correctly. However, I have been unable to invoke it in CF (all sorts of different errors... now having to delete the stub folder and restart CF whenever I modify a single line in the PHP... oh well...). Anyone with experience in this area? Thanks Mauricio [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
Re:flash remoting help: UPDATED
maybe you could edit your reply so we dont get the infinite-scroll page :) well I copy/pasted your code and it works just fine... it came to me to give it a test via CFM with web services (any CFC with access = remote is a webservice)... so I typed: http://lightwillrise.com:27000/cfcremoting/sendMe.cfc?wsdl and I get: Invalid CFML construct found on line 23 at column 17. The error occurred in D:\WWWRoot\DefaultSite\www\CFIDE\administrator\cfcremoting\sendMe.cfc: line 23 21 : 22 : 23 : 24 : 25 : I believe that line 23 should read Missing a ">" ? Mauricio [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
Re:CMS Solutions (Friendly URL's)
> All in all, dynamic URLS should be mapped to static ones, and this mapping > should be be done by your marketing department while I agree dynamic urls should be mapped to static ones and that search engine positioning is a whole other chapter, why would marketing be the ones to decide if it is mymag.com/issues/2003/november/19 instead of mymag.com/2004/11/19 or something else? do marketers do url usability? by the way, anyone knows of a good dynamic-to-static url mapping in cf (windows and linux) resource? mauricio [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
Re:CMS Solutions (Friendly URL's)
>Whether shallow directory trees containing lots of files and more >descriptive, structured filenames are better than deep heirarchical >structures with fewer files per folder and shorter names is an ancient >and endless debate, so I ain't going there :-). i wasnt talking about the shallow vs deep situation but more the "how would users expect to find my content" situation... but maybe marketers could be more user-centric than developers. but i think it should be in hands of someone else instead of marketers or developers... well... thats just really off-topic :) - mga [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
Re:CMS Solutions (Friendly URL's)
>While we're on the subject - does anyone know of any good >resources/mailings lists - I've been out of the SEO loop for a while I second that... Any references to mapping dynamic urls to static ones? [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
Re:OT: invoking NuSOAP PHP webservice with CF (solved)
ok so the issue had to do with a custom type that was being returned by the PHP web service. making slight modifications enabled me to receive complex data from the php (a struct of strings and structs in this case) thanks mauricio [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
OT: C# equivalent of CFDUMP
is there an equivalent to cfdump in c#? thanks mauricio [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
Re:OT: C# equivalent of CFDUMP
>printf :-) isn't printf kind of more like cfoutput? [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
Re: Still looking for help using web service with php
Hi Consuming the method CallMe from www.ws.com/webservice.cfc?wsdl which receives a numeric parameter using PHP via nuSOAP: require_once('nusoap.php'); $parameters = 2004; $soapclient = new soapclient('http://www.ws.com/webservice.cfc?wsdl','wsdl'); $soapclient->call('CallMe',$parameters); ?> More info: http://dietrich.ganx4.com/nusoap/ and http://www.zend.com/zend/tut/tutorial-campbell.php There is also a PEAR::SOAP library here: http://pear.php.net/package/SOAP HTH mga [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
Re: Still looking for help using web service with php
I correct: require_once('nusoap.php'); $parameters = array('year'=>2004); $soapclient = new soapclient('http://www.ws.com/webservice.cfc?wsdl', 'wsdl'); $soapclient->call('CallMe',$parameters); ?> [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
flash remoting and dotted directories
Hi I am developing a flash-based site that uses CFCs to communicate with a MySQL database under Windows (yea... I know it's a weird config). Right now we have the site under a name-based hosting provider (I know there are other CFMX ISPs out there... I didn't choose...). http://siteIP/flashservices/gateway is returning a blank page (good news... Remoting is up). However, our site is under something like H:/username/site.dot.com/ (note the dots in my directory name). The problem is: Do you have any tips for mapping my CFCs in Flash? I am trying something like: NetServices.setDefaultGatewayUrl("http://siteIP/flashservices/gateway"); this.conn = NetServices.createGatewayConnection(); this.service = this.conn.getService("cfc.cfcname",this); Suppose there is a directory named "cfc" in which all CFCs are stored ("cfc" is inside "site.dot.com"). Any help will be appreciated Mauricio [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
Re:CF Problem with Langauges (??)
> The Greek characters are all represented by question marks (?? > >?? ??? ... etc) which I believe means that character Don't know if its related (you don't mention any database) but as far as MySQL + CFMX is concerned, you need to add this in the connection string of your Data Source (if using a MySQL database) useUnicode=true&characterEncoding=iso-8859-1 HTH - mga [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
Re:flash remoting and dotted directories
>Why is using a Flash site to talk to MySQl via CFCs a wierd config ? I meant MySQL in Windows with CFM using ODBC. [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
Re:Newbie Flash/CF Question
If its Flash MX 2004 try out: http://www.ultrashock.com/ff.htm?http://www.ultrashock.com/tutorials/flashmx2004.php Theres a data binding tut and a MVC app tut. - mga [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
OT: CF WYSIWYG Editor updated
Hi A few weeks ago I made a post announcing a GPL CF-based WYSIWYG web html editor SPAW-CF. We have now released an updated version that includes fixes and performance benefits. The project is hosted in SourceForge at: http://sourceforge.net/projects/spaw-cf/ If you have downloaded previous versions of SPAW-CF or you just need a really good, free, multilanguage, customizable, web-based HTML editor you can download it from: http://sourceforge.net/project/showfiles.php?group_id=89018&release_id=192998 Regards Mauricio Giraldo [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
Re:OT: CF WYSIWYG Editor updated
>Do you have links to sample pages and is this solution, in your Sure. There is a demo page linked from SourceForge. The link is: http://www.elefectoaxe.com.co/spaw/test.cfm >opinion, better than the siteObject solution, soEditor Pro 2.5? Hm... I am not a soEditor user so I cannot make an objective judgement. But judging by the feature list I can go one by one (list taken from http://www.siteobjects.com/pages/soeditorcomparisons.cfm): Customizable: yes 100%... images, button positions, all Multiple instances: yes Context menus: didn't understand this one Cut, copy & paste: yes Find: no... but well you can always Ctrl+F Undo & redo: yes Text formatting: yes Paragraph formatting: yes Image support: yes... upload included Hyperlinks: yes Anchors: no. but you can go to HTML view and place them manually anytime : ) Table controls: yes Edit html source: yes Toggle details: no Unordered lists: yes Ordered lists: yes Clear document: didn't understand this one Foreground & background colors: yes Horizontal rule: yes Show table borders: yes (when a table has no border there is a dotted line by default) File editing: didn't understand either Spellchecking: no Dynamic help menu: no Special characters: no Content templates: no Image manager: yes Image folder manager: yes (though you cannot create/delete folders but you can have more than one image library) Style sheet support: yes Custom styles: yes Form controls: no Integrated email form: no Custom hyperlinks: no idea what this means Code sweeper: yes (well SPAW-CF has a code cleaner.. I suppose it's the same thing) I noticed soEditor also runs only in IE. In other browsers you get a standard TEXTAREA. You can extend SPAW-CF with additional functionality if you already know CFCs or CFML, you can place buttons anywhere (if you want to mess around with original files :) ). You need CFMX and a few tags enabled for SPAW-CF to run (CFFILE, CFCs, CFDIRECTORY). No need for custom mapping. Will run in shared servers. you can give it a try anytime. HTH Mauricio [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
Re:OT: CF WYSIWYG Editor updated
>Plus a wysiwyg editor that works in browsers other than IE (like Mozilla >Firebird - honest guv I'm not throughly enamored with this browser) >would be good too! Firebird is my primary browser now. :) Unfortunately IE scripting has a lot of features other browsers don't have and a cross-browser version is kind of a PITA unless you go with something like Java. >> Just a thought: If I were you I'd place html anchors at the top of your >> priority list. This something that, in my apps at least, is needed >> pretty much constantly. Sure thing. SPAW-CF Is quite extensible. Anyone is welcome to participate in this project (GPL project after all). I will take note of anchors and if you or anyone wants to get involved in this project just let me know. >> Another thing that's real important but you don't see a lot of in >> wysiwyg editors is a file uploader/browser. Something that uses cffile >> and a mime type check for security's sake. It already does. It has an image uploader (disabled in the demo) and it has MIME checking for common image formats. Other file types (DOC, PDF, etc) are not coverd for SPAW-CF is not meant to be your complete CMS :) but you could add them in the config list. [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
Re:OT: CF WYSIWYG Editor updated
>Its easy for people to yak about features but nobody wants to help out. >I'm sure you get a lot of that. Sorry, but all I was offering were >constructive suggestions to help the editor along. Haha... I'm not pissed off or anything. Any suggestion is welcome. And any help is also welcome. If anyone wants to help out and make SPAW-CF better I will be glad. Just send me an email and we can see from there. >No, you're missing the point. I get requests *constantly* from end >users to be able to upload pdf's, word docs etc *into* their pages. >They want to be able to click a dialog on the editor's toolbar and place >an inline link on the page. It is only a very minor variation on an >image upload editor, it is the identical concept, and it drives me nuts >that so few editors implement this. Hmm... Well that can be done. i have submitted a RFE in SourceForge for this. If anyone has additional ideas feel free to post them there: http://sourceforge.net/tracker/?group_id=89018&atid=588748 Thanks for your comments. - mga [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
Re:Wierd CFC Path Problem - Question on CFC types
Will it happen (truncation) in CFCs in other folders? i.e. test/me.cfc when using CreateObject("component","test.me") - mga [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
Re:Wierd CFC Path Problem - Question on CFC types
is the calling file in a folder above the CFC? i mean, which is the most similar dir struct for your files: 1) /root/caller.cfm /root/cfc/component.cfc 2) /root/html/caller.cfm /root/cfc/component.cfc - mga [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
Re:Wierd CFC Path Problem - Question on CFC types
>"com" works fine on dedicated servers, but just doesn't >cut it for shared servers I know well not THIS particular issue but CF + directory mapping + CFCs + shared vs dedicated + Linux vs Windows scenarios. Making the same stuff work in different places is complicated (or it was for me when developing a CFC based WYSIWYG editor). Sometimes it works for me when I use something like CreateObject("component","com/Depressedpress/HelloWorld")... Good to know you found a workaround. - mga [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
CFMX + Linux-shared = not stable?
Hi My current hosting provider (no names) is abandoning CFMX shared hosting under Linux for "stability reasons". They will provide support for us current CFMX customers. I consider this provider a respectable and responsible company (that is why I will not mention it) but I am concerned with this issue. I have a few questions: 1- is it true that CFMX is not as stable under Linux (RedHat here) as in other platforms? 2- did the hosting provider make the right choice, or were they just not proficient enough on CF? (as far as I knew they even had Macromedia collaboration for server fine-tuning for months) 3- I have looked at other providers (CFDynamics, CFXHosting, CrystalTech) but they seem rather limited (unless you go for the "extra-special" US$ 100/mo plan... CrystalTech does seem to have an interesting shared plan)... I don't want this post to become a "buy-my-hosting-plan" propaganda post... I just need to know whats wrong with CFMX + Linux (if there is anything wrong) and where can I put my trust as far as CFMX is concerned Any input? Mauricio P.S. Good thing we can also develop using PHP but we are now left with no Remoting, CFCs and all the other goodies... :( (I know there's AMFPHP but we've had some issues with non-english characters) [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
Re:CFMX + Linux-shared = not stable?
>It's been rock solid here. Longer uptime than our Apache :-) > >I guess the latter. You know it's really weird. I really can't explain myself why CF was too much for them to handle. Oh well I'm quoting right now in CrystalTech... Thanks for your input. - mga [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
Re:Password Logic
>For best practices-sake, if the user forgets their password, you should >only be able to generate a new one and email it out I prefer not to send any password via mail (auto or user-generated. If a user forgets his/her password we do a couple of things: 1- user must type the registered email in his account (assuming you ask for an email when registering and it is unique) 2- an email with a link (which holds a random UUID) is sent to the user's email 3- the UUID and the user id is stored in the database along with date/time 4- user has 24 hours to click on the link in the email... after this the link will be invalid (the link will also work only once...) 5- when the user clicks the link, he/she gets two textfields to provide a new password (new password and confirmation) 6- after that the password is reset to the new value a little complex but we mention this to the user in the emails sent that it is for his/her best interest not to send any kind of passwords via mail. hth mauricio [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
Re: CFCHART - No Chart :-(
>1)remove all of the IIS connectors to all web sites (i.e. kill the >server's ability to serve CF pages). Not something to do lightly. are you referring to IIS_Unconfigure_one_Site.bat or Remove_ALL_connectors.bat >2) globally re-apply the IIS connectors to all web sites. is this IIS_connector.bat or Upgrade_all_connectors.bat or ConnectorList.bat thanks - mga ~| Find out how CFTicket can increase your company's customer support efficiency by 100% http://www.houseoffusion.com/banners/view.cfm?bannerid=49 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:210813 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4 Donations & Support: http://www.houseoffusion.com/tiny.cfm/54
Re: CFCHART - No Chart :-(
>Once this was completed, everything worked swimmingly. However the >.bat files aren't perfect. They start the services at the end of the >process but they don't stop them at the beginning, so while I was >savvy enough to stop IIS and CF before running the disconnector, I >didn't notice that at the end of the process it restarted the >services, which caused a failure when I ran the reconnector. That >gave me a few anxious (i.e. terrifying) moments until I spotted the >running services, stopped them and tried the reconnector again. So this means?: 1. manually stop CF 2. run Remove_ALL_connectors.bat 3. manually STOP CF again 4. run IIS_connector.bat 5. restart IIS something like that? i have ran the bats a few times to no avail. if CF is stopped they throw an error. thanks mauricio ~| Logware (www.logware.us): a new and convenient web-based time tracking application. Start tracking and documenting hours spent on a project or with a client with Logware today. Try it for free with a 15 day trial account. http://www.houseoffusion.com/banners/view.cfm?bannerid=67 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:211829 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4 Donations & Support: http://www.houseoffusion.com/tiny.cfm/54
Re: CFCHART - No Chart :-(
>9. Sacrifice a young chicken (a cooked one is OK) > and drip the leavings into the casing interior. Spit some tequila > in to follow it while giving thanks to Jo Bu I almost had to got through step 9. This particular installation is a PITA because it is an IIS-based installation, website has its own port / web application configured in IIS. A total hassle because it has this complicated permission setting that only this very-important-only-i-know-the-password-and-wont-give-it-to-anyone guy can have access (our user restarted IIS but didnt restart the intranet site and BATs were throwing permission errors) to the procuedure. And steps 1-8 didnt cut it. I had to go to Internet Management console and add the ISAPI filters manually (wsconfig for some reason didnt work). But after all the hassle (and having my client looking at me and thinking "does he know what hes doing or is he just messing around with everything until something works?") charts started to show up in the site! *sigh* What does it have to do with anything anyway? Disconnecting and reconnecting IIS and now you can see your charts! WTF? - mga ~| Logware (www.logware.us): a new and convenient web-based time tracking application. Start tracking and documenting hours spent on a project or with a client with Logware today. Try it for free with a 15 day trial account. http://www.houseoffusion.com/banners/view.cfm?bannerid=67 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:212841 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4 Donations & Support: http://www.houseoffusion.com/tiny.cfm/54