Calling a function on a regex backreference
Hopefully this should be an easy and quick answer. I want to call a function on a regex backreference, ie: REreplace(string,regex,function('\1'),'ALL'); is this possible? I've tried every imaginable combination to make it work, and its just not happening!!! Thanks, Ryan ~| Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting, up-to-date ColdFusion information by your peers, delivered to your door four times a year. http://www.fusionauthority.com/quarterly Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:258811 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Re: Calling a function on a regex backreference
hmm, see that wouldn't work. im looping through a string, replacing emails with an obfuscated/hidden version of the email address... so i need to call the function directly... ~| Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting, up-to-date ColdFusion information by your peers, delivered to your door four times a year. http://www.fusionauthority.com/quarterly Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:258817 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: Calling a function on a regex backreference
ok, so i have a long string with emails within it, what i want to do is identify the emails in teh string, and replace them with the result of the function obfuscate(email)... so what im doing is this: function hideEmails(s) { return rereplace(s,(mailto:)([EMAIL PROTECTED]),obfuscate(\1\2),'ALL'); } however, all this does is return an encrypted version of the string \1\2, instead of the backreferences. ~| Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting, up-to-date ColdFusion information by your peers, delivered to your door four times a year. http://www.fusionauthority.com/quarterly Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:258822 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Re: Calling a function on a regex backreference - SOLVED
wonderful... the java solution worked a treat! thanks! ~| Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting, up-to-date ColdFusion information by your peers, delivered to your door four times a year. http://www.fusionauthority.com/quarterly Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:258825 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Re: Calling a function on a regex backreference - SOLVED
no problem: jrereplace(s,(mailto:)([EMAIL PROTECTED]),helper,'ALL'); the helper is a reference to a function, which takes 2 params, 1 is the full matched string, 2 is an array of the portions to the matched string: function helper(s,g) { return obfuscate(s); } the jrereplace is defined as: cffunction name=JREReplace access=public returntype=string output=false hint=This performs Java REReplaces on a string. !--- Define arguments. --- cfargument name=Text type=string required=true / cfargument name=Pattern type=string required=true / cfargument name=Target type=any required=true / cfargument name=Scope type=string required=false default=ONE / cfscript // Define the local scope. var LOCAL = StructNew(); // Check to see if we are using a string replace or a method // helper replace. if (IsSimpleValue( ARGUMENTS.Target )){ // We are doing a standard string replace, so just // use Java's string replacement. Check the scope. if (NOT Compare( ARGUMENTS.Scope, ALL )){ // Replace all. return( CreateObject( java, java.lang.String ).Init( ARGUMENTS.Text ).ReplaceAll( ARGUMENTS.Pattern, ARGUMENTS.Target ) ); } else { // Replace one. return( CreateObject( java, java.lang.String ).Init( ARGUMENTS.Text ).ReplaceFirst( ARGUMENTS.Pattern, ARGUMENTS.Target ) ); } } else { // We are using a function here to replace out the // groups. That means that matches have to be // evaluated and replaced on an individual basis. // Create the java pattern complied to the given regular // expression. LOCAL.Pattern = CreateObject( java, java.util.regex.Pattern ).Compile( ARGUMENTS.Pattern ); // Create the java matcher based on the given text using the // compiled regular expression. LOCAL.Matcher = LOCAL.Pattern.Matcher( ARGUMENTS.Text ); // Create a string buffer to hold the results. LOCAL.Results = CreateObject( java, java.lang.StringBuffer ).Init(); // Loop over the matcher while we still have matches. while ( LOCAL.Matcher.Find() ){ // We are going to build an array of matches. LOCAL.Groups = ArrayNew( 1 ); for ( LOCAL.GroupIndex = 1 ; LOCAL.GroupIndex LTE LOCAL.Matcher.GroupCount() ; LOCAL.GroupIndex = (LOCAL.GroupIndex + 1) ){ // Add the current group to the array of groups. ArrayAppend( LOCAL.Groups, LOCAL.Matcher.Group( JavaCast( int, LOCAL.GroupIndex ) ) ); } // Replace the current match. Be sure to get the value by // using the helper function. LOCAL.Matcher.AppendReplacement( LOCAL.Results, // Call the target function pointer using function notation. ARGUMENTS.Target( LOCAL.Matcher.Group(), LOCAL.Groups ) ); // Check to see if we need to break out of this. if (NOT Compare( ARGUMENTS.Scope, ONE )){ break; } } // Add what ever is left of the text. LOCAL.Matcher.AppendTail( LOCAL.Results ); // Return the string buffer. return( LOCAL.Results.ToString() ); } /cfscript /cffunction ~| Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting, up-to-date ColdFusion information by your peers, delivered to your door four times a year. http://www.fusionauthority.com/quarterly Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:258835 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: PHP webservice returns a Null pointer error
thanks, but i still just get a null pointer error. that returns false for me which is just graceful error catching... did you get an array (or struct) returned? Got it. cftry cfset f = CreateObject(webservice,http://www.ryanmitchell.co.uk/rtCMS.php?wsdl;) cfdump var=#f# cfset code = f.listDirectory(d:\\wwwroot\\ryanmitchell.co.uk\\www\\) cfdump var=#code# cfcatch type=any cfoutputp#cfcatch.message#/p pCaught an exception, type = #CFCATCH.TYPE# /p br / StackTrace: br/ cfloop index = i from = 1 to = #ArrayLen(CFCATCH.TAGCONTEXT)# cfset sCurrent = #CFCATCH.TAGCONTEXT[i]# p#sCurrent[ID]# #cfcatch.Message#br Error Detail: #cfcatch.Detail#br Line: #sCurrent[LINE]#br Column: #sCurrent[COLUMN]#br Template: #sCurrent[TEMPLATE]#/p /cfloop /cfoutput /cfcatch /cftry Notice the directory being passed needs double slashes to escape them. !k -Original Message- From: Kevin Aebig [mailto:[EMAIL PROTECTED] Sent: Tuesday, September 12, 2006 4:01 PM To: CF-Talk Subject: RE: PHP webservice returns a Null pointer error I'm getting the object dump easily with this: cfset f = CreateObject(webservice,http://www.ryanmitchell.co.uk/rtCMS.php?wsdl;) cfdump var=#f# I'm taking a look at the service itself now... !k -Original Message- From: Ryan Mitchell [mailto:[EMAIL PROTECTED] Sent: Tuesday, September 12, 2006 3:42 PM To: CF-Talk Subject: Re: PHP webservice returns a Null pointer error i couldnt get to the stage where i could use it thanks for the help, if its not asking too much, you can have a go yourself. webservice is at: http://www.ryanmitchell.co.uk/rtCMS.php?wsdl method: listDirectory parameters: dir - d:\wwwroot\ryanmitchell.co.uk\www\ i made a basic php test SOAP client, which gives: http://www.ryanmitchell.co.uk/phptest.php very frustrating!! Ryan ~| Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting, up-to-date ColdFusion information by your peers, delivered to your door four times a year. http://www.fusionauthority.com/quarterly Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:252940 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: PHP webservice returns a Null pointer error
thanks, but i still just get a null pointer error. that returns false for me which is just graceful error catching... did you get an array (or struct) returned? Got it. cftry cfset f = CreateObject(webservice,http://www.ryanmitchell.co.uk/rtCMS.php?wsdl;) cfdump var=#f# cfset code = f.listDirectory(d:\\wwwroot\\ryanmitchell.co.uk\\www\\) cfdump var=#code# cfcatch type=any cfoutputp#cfcatch.message#/p pCaught an exception, type = #CFCATCH.TYPE# /p br / StackTrace: br/ cfloop index = i from = 1 to = #ArrayLen(CFCATCH.TAGCONTEXT)# cfset sCurrent = #CFCATCH.TAGCONTEXT[i]# p#sCurrent[ID]# #cfcatch.Message#br Error Detail: #cfcatch.Detail#br Line: #sCurrent[LINE]#br Column: #sCurrent[COLUMN]#br Template: #sCurrent[TEMPLATE]#/p /cfloop /cfoutput /cfcatch /cftry Notice the directory being passed needs double slashes to escape them. !k -Original Message- From: Kevin Aebig [mailto:[EMAIL PROTECTED] Sent: Tuesday, September 12, 2006 4:01 PM To: CF-Talk Subject: RE: PHP webservice returns a Null pointer error I'm getting the object dump easily with this: cfset f = CreateObject(webservice,http://www.ryanmitchell.co.uk/rtCMS.php?wsdl;) cfdump var=#f# I'm taking a look at the service itself now... !k -Original Message- From: Ryan Mitchell [mailto:[EMAIL PROTECTED] Sent: Tuesday, September 12, 2006 3:42 PM To: CF-Talk Subject: Re: PHP webservice returns a Null pointer error i couldnt get to the stage where i could use it thanks for the help, if its not asking too much, you can have a go yourself. webservice is at: http://www.ryanmitchell.co.uk/rtCMS.php?wsdl method: listDirectory parameters: dir - d:\wwwroot\ryanmitchell.co.uk\www\ i made a basic php test SOAP client, which gives: http://www.ryanmitchell.co.uk/phptest.php very frustrating!! Ryan ~| Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting, up-to-date ColdFusion information by your peers, delivered to your door four times a year. http://www.fusionauthority.com/quarterly Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:252941 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: PHP webservice returns a Null pointer error (SOLVED)
yeah, i opted for another php SOAP library (nuSOAP), and with a bit of tweaking i've got it working. thanks for all the help I just run this example this morning and I received and array [empty] result. cfset testObj = createObject(webservice,http://www.ryanmitchell.co. uk/rtCMS.php?wsdl) cfdump var=#testObj# cfset testDir = testObj.listDirectory(d:\\wwwroot\\ryanmitchell.co. uk\\www\\) cfdump var=#testDir# -- Ian Skinner Web Programmer BloodSource www.BloodSource.org Sacramento, CA - | 1 | | - Binary Soduko | | | - C code. C code run. Run code run. Please! - Cynthia Dunning Confidentiality Notice: This message including any attachments is for the sole use of the intended recipient(s) and may contain confidential and privileged information. Any unauthorized review, use, disclosure or distribution is prohibited. If you are not the intended recipient, please contact the sender and delete any copies of this message. ~| Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting, up-to-date ColdFusion information by your peers, delivered to your door four times a year. http://www.fusionauthority.com/quarterly Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:253003 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
PHP webservice returns a Null pointer error
Hello I am trying to connect to a basic php webservice through coldfusion. All the basics work, however whenever I try to return a php array i get a null pointer exception. Could not perform web service invocation methodName. Here is the fault returned when invoking the web service operation: java.lang.NullPointerException Has anyone come across this before? Solutions? Returning strings etc works fine, its just arrays that don't seem to. Ryan ~| Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting, up-to-date ColdFusion information by your peers, delivered to your door four times a year. http://www.fusionauthority.com/quarterly Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:252823 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: PHP webservice returns a Null pointer error
nope, im using PEAR's SOAP libraries Are you using AMFPHP? !k -Original Message- From: Ryan Mitchell [mailto:[EMAIL PROTECTED] Sent: Tuesday, September 12, 2006 3:49 AM To: CF-Talk Subject: PHP webservice returns a Null pointer error Hello I am trying to connect to a basic php webservice through coldfusion. All the basics work, however whenever I try to return a php array i get a null pointer exception. Could not perform web service invocation methodName. Here is the fault returned when invoking the web service operation: java.lang.NullPointerException Has anyone come across this before? Solutions? Returning strings etc works fine, its just arrays that don't seem to. Ryan ~| Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting, up-to-date ColdFusion information by your peers, delivered to your door four times a year. http://www.fusionauthority.com/quarterly Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:252852 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Re: PHP webservice returns a Null pointer error
im not too sure how, im calling it as follows: // connect to web service f = CreateObject(webservice,http://path/file.php?wsdl;); code = f.methodName('string'); it doesnt give me the option of checking the xml Take a look at the returned xml structure. It might not be right, or CF might be choking on something that it's doing. !k -Original Message- From: Ryan Mitchell [mailto:[EMAIL PROTECTED] Sent: Tuesday, September 12, 2006 8:53 AM To: CF-Talk Subject: Re: PHP webservice returns a Null pointer error nope, im using PEAR's SOAP libraries the ~| Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting, up-to-date ColdFusion information by your peers, delivered to your door four times a year. http://www.fusionauthority.com/quarterly Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:252863 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: PHP webservice returns a Null pointer error
looks pretty much the same as an equivalent coldfusion one as i said, the webservice works for everything but php arrays... Use a browser and access the wsdl directly. I.E. go to http://path/file.php?wsdl and it should display the xml for you Ryan Mitchell wrote: ~| Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting, up-to-date ColdFusion information by your peers, delivered to your door four times a year. http://www.fusionauthority.com/quarterly Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:252878 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: PHP webservice returns a Null pointer error
yeah, the problem is i dont even get a variable - just an immediate null pointer error as soon as i make the call to the remote method. I recall having some difficulties with CF reading a .NET recordset and had to use a custom UDF to parse out the result proper because CF couldn't do it on it's own. I'm almost positive that this is again the case. Have you tried using CFDump to see if CF is turning the result into a different datatype? !k -Original Message- From: Ryan Mitchell [mailto:[EMAIL PROTECTED] Sent: Tuesday, September 12, 2006 1:13 PM To: CF-Talk Subject: Re: PHP webservice returns a Null pointer error looks pretty much the same as an equivalent coldfusion one as i said, the webservice works for everything but php arrays... ~| Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting, up-to-date ColdFusion information by your peers, delivered to your door four times a year. http://www.fusionauthority.com/quarterly Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:252883 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: PHP webservice returns a Null pointer error
not sure what you mean. i literally am just invoking a method on the webservice Do you have exception handling in place? !k -Original Message- From: Ryan Mitchell [mailto:[EMAIL PROTECTED] Sent: Tuesday, September 12, 2006 1:50 PM To: CF-Talk Subject: Re: PHP webservice returns a Null pointer error yeah, the problem is i dont even get a variable - just an immediate null pointer error as soon as i make the call to the remote method. I recall having some difficulties with CF reading a .NET recordset and had to use a custom UDF to parse out the result proper because CF couldn't do it on it's own. I'm almost positive that this is again the case. Have you tried using CFDump ~| Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting, up-to-date ColdFusion information by your peers, delivered to your door four times a year. http://www.fusionauthority.com/quarterly Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:252890 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Re: PHP webservice returns a Null pointer error
yeah, the webservice works completely fine and well. basically in php im returning back an array (i've set the wsdl datatype to xsd:anyType) if i change it to return an element of the array, then no problem, it all works if i change it to return the array, then i get a null pointer error Are you positive that the PHP web service is working properly? Do you have access to the PHP code? Are you passing in all required arguments to the method you are calling? What if you go to http://webserviceurl?wsdl in a browser-- do you get SOAP XML back or an error? ~Brad -Original Message- From: Ryan Mitchell [mailto:[EMAIL PROTECTED] Sent: Tuesday, September 12, 2006 3:19 PM To: CF-Talk Subject: Re: PHP webservice returns a Null pointer error not sure what you mean. i literally am just invoking a method on the webservice null had do it on it's own. I'm almost positive that this is again the case. Have you tried using CFDump ~| Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting, up-to-date ColdFusion information by your peers, delivered to your door four times a year. http://www.fusionauthority.com/quarterly Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:252893 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Re: PHP webservice returns a Null pointer error
i couldnt get to the stage where i could use it thanks for the help, if its not asking too much, you can have a go yourself. webservice is at: http://www.ryanmitchell.co.uk/rtCMS.php?wsdl method: listDirectory parameters: dir - d:\wwwroot\ryanmitchell.co.uk\www\ i made a basic php test SOAP client, which gives: http://www.ryanmitchell.co.uk/phptest.php very frustrating!! Ryan Have you looked into the get_any() method for the webservice object? This could possibly help you dump anything returned... !k -Original Message- From: Ryan Mitchell [mailto:[EMAIL PROTECTED] Sent: Tuesday, September 12, 2006 3:07 PM To: CF-Talk Subject: Re: PHP webservice returns a Null pointer error yeah, the webservice works completely fine and well. basically in php im returning back an array (i've set the wsdl datatype to xsd:anyType) if i change it to return an element of the array, then no problem, it all works if i change it to return the array, then i get a null pointer error ~| Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting, up-to-date ColdFusion information by your peers, delivered to your door four times a year. http://www.fusionauthority.com/quarterly Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:252903 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
CrossPost: problems with flash remoting
Hello Apologies for the Cross Post, i posted to CF-Flash and then noticed when the last thread on it was... not recently. I'm currently migrating all my sites from win2k cfmx 6.1 to win2003 cfmx7, and everything was going all too perfectly until we got to flash remoting sites... basically, code that did work on cfmx 6.1 doesnt work on cfmx 7. its basically a data driven flash site, getting all the info through flash remoting calling a cfc... it works fine for the first flash method called, but when you call anotehr method after that, it returns NOTHING... absolutely NOTHING!! its so frustrating... anythoughts? any one else experienced anythign similar? Ryan ~| 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:220445 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
Scripting Window User Additions/Permissions on directories
Hello I'm running windows 2003 server and CFMX 7. Has anybody come across a way of adding users (Active Directory - CFLDAP?), and setting directory permissions under this configuration. Basically, i'm wanting to script addition of FTP users, and set up permissions on the necessary directories for the user i have just created.. Somebody must have done it.. :) Please share! Ryan ~| 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:219577 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
Directory permissions (ADSI ??) and CFMX7
Hello Has anybody been able to set up directory permissions on windows2003 server using CFMX7. Preferably using active directory, but i'm open to other possibilities. Basically i need to be able to allow/disallow users by script on specific directories... TIA, Ryan ~| 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:217691 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
Editing the IIS metabase using cfmx7
Hello Im running win2k03 server and cfmx7 Ive written a cfc to do the editing of the metabase.xml file i require, in order to add domains/mappings/ftp sites etc etc... however i'm running into a problem that corrupts the xml file. The problem comes with things like webserver bindings. Somebody in their wisdom decided to make them into a list delimited by some sort of white space, rather than seperate xml entities, and so when i use XMLParse() to parse the text into coldfusion readable xml, the whitespace seems to get changed or removed or something and so when you re-save the xml file, IIS throws up errors for the bindings and shuts down the sites affected... it also affects web server extensions in the same way. Has anybody run into this problem or somethign similar? Are there any solutions? I'm really doing very little more than XmlParse() into a variable, adding/editing/removing some xml entities, then saving the xml back using cffile... TIA, Ryan ~| 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:217342 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: Editing the IIS metabase using cfmx7
ok i've looked a bit further, and it seems that the problem is with line feeds being used as a delimiter and being removed... i understand that XMLParse() is according to the specs, but surely there must be some sort of work-around for this? Ryan: I started fiddling with the XML metabase at one point, learned how messy and compromised the XML is, and decided to just CFEXECUTE . vbs scripts instead. But I'll definitely be watching to if anyone has suggestions for you. -- Roger Benningfield JournURL http://admin.support.journurl.com/ http://admin.mxblogspace.journurl. com/ ~| 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:217346 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: Editing the IIS metabase using cfmx7
an alternative method i guess is this: regex to replace any carriage returns within xml attribute values with a given string, and then replace them again for carriage returns before save back? would anyone be able to write a regex to do this? ok i've looked a bit further, and it seems that the problem is with line feeds being used as a delimiter and being removed... i understand that XMLParse() is according to the specs, but surely there must be some sort of work-around for this? Ryan: I started fiddling with the XML metabase at one point, learned how messy and compromised the XML is, and decided to just CFEXECUTE . vbs scripts instead. But I'll definitely be watching to if anyone has suggestions for you. -- Roger Benningfield JournURL http://admin.support.journurl.com/ http://admin.mxblogspace.journurl. com/ ~| 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:217349 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: Editing the IIS metabase using cfmx7
Roger: i got it working, i was looking for your email address so i could send what i have got through to you. IF you email me: [EMAIL PROTECTED], i'll pass what i have done on... Ryan: I started fiddling with the XML metabase at one point, learned how messy and compromised the XML is, and decided to just CFEXECUTE . vbs scripts instead. But I'll definitely be watching to if anyone has suggestions for you. -- Roger Benningfield JournURL http://admin.support.journurl.com/ http://admin.mxblogspace.journurl. com/ ~| 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:217368 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
looking for a regex
Hello I'm looking for a regex that will identify items in a template file along the lines of {item} {item.subitem} {item.subitem1.subitem2} etc... But that will not pull up _javascript_ functions!! Any guru's out there who can help? Thanks, Ryan [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings] [Donations and Support]
joining two queries
hello again i have two queries, with the same column list in each.. and i want to append one query to the end of the other... i know i can do it in sql, but i want to do it in coldfusion preferably in cfscript... how!? Ryan [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings] [Donations and Support]
Re: sot: Powerbooks and Coldfusion
I switched about a year ago now, and havetn looked back. If you're using dreamweaver there is very little difference in set up... you install coldfusion mx 6.1 on top of jrun, and away you go. your powerbook will fit right into your network, you will be able to connect to your pc with no probs Stuart Kidd wrote: Hi guys, I'm heading to Oz to see my family for a month and am stopping off in LA (USA - home of cheap electronics for European citizens). I am seriously thinking about snapping up a Powerbook while there as the UK Stirling - US Dollar exchange rate is pretty good. Has anyone got a Powerbook who can tell me whether it's a tough transition from a PC to a Powerbook for coding CF. Currently i use Dreamweaver and have a remotely hosted CF website. When I return to London i'll still have my PC desktop which i have the free CF limited server.I also have a wireless adsl modem/router (Netgear) - will it be easy for my Powerbook to fit into that? Is there anything else I should know about, some even better tools for the Apple with CF?? Any help would be appreciated. Cheers, Stuart [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
Re: sot: Powerbooks and Coldfusion
i use mysql as my database, and found a freeware program called YourSQL to connect to it (also use phpmyadmin)... i've used navicat (mysql studio), but it costs for not much more in the features department in my book... stas wrote: What about database administration tools,what do you use? - Original Message - From: Ryan Mitchell [EMAIL PROTECTED] To: CF-Talk [EMAIL PROTECTED] Sent: Monday, March 15, 2004 6:25 AM Subject: Re: sot: Powerbooks and Coldfusion I switched about a year ago now, and havetn looked back. If you're using dreamweaver there is very little difference in set up... you install coldfusion mx 6.1 on top of jrun, and away you go. your powerbook will fit right into your network, you will be able to connect to your pc with no probs [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
Re: sot: Powerbooks and Coldfusion
yep, i second that. David Fafard wrote: If you admin a MS SQL server, and you have a VPN, Microsoft makes a great FREE terminal services client for Mac. watch the wrap: http://www.microsoft.com/mac/otherproducts/otherproducts.aspx?pid=remotedesktopclient Works great for me when I am using a powerbook. Dave - Original Message - From: stas To: CF-Talk Sent: Monday, March 15, 2004 8:39 AM Subject: Re: sot: Powerbooks and Coldfusion What about database administration tools,what do you use? - Original Message - From: Ryan Mitchell [EMAIL PROTECTED] To: CF-Talk [EMAIL PROTECTED] Sent: Monday, March 15, 2004 6:25 AM Subject: Re: sot: Powerbooks and Coldfusion I switched about a year ago now, and havetn looked back. If you're using dreamweaver there is very little difference in set up... you install coldfusion mx 6.1 on top of jrun, and away you go. your powerbook will fit right into your network, you will be able to connect to your pc with no probs [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
Re: template reader/parser sort of thing :)
ok, i would prefer not to do it this way.. basically among other ideas i would love to convert phpbb over to coldfusion.. i've been working on it for a while, and now i've come to the reading and parsing of the template files... i want to be able to read in phpbb template files and so xlst/xml won't work. my main problem comes with nested replacements... how do you do it? TIA, Ryan [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
further problems with flash remoting...
Hello So I have my flash remoting script all working, when I run it with the flash debugger everythign works the way it should... So I upload the swf, and run it through a browser... And it doesn¹t work!! None of the data loads, none of the data inserts.. Why! :) Any thoughts? Ryan [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
Re: further problems with flash remoting...
Tis ok, I sorted it :) It didn¹t like me being at www.lightwillrise.com and accessing the gateway at lightwillrise.com (no www), just a bad setup methinks... All working now On 15/1/04 1:29 pm, Adrian Lynch [EMAIL PROTECTED] wrote: Got any code to see? Ade -Original Message- From: Ryan Mitchell [mailto:[EMAIL PROTECTED] Sent: 15 January 2004 11:12 To: CF-Talk Subject: further problems with flash remoting... Hello So I have my flash remoting script all working, when I run it with the flash debugger everythign works the way it should... So I upload the swf, and run it through a browser... And it doesn¹t work!! None of the data loads, none of the data inserts.. Why! :) Any thoughts? Ryan _ [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
Re: active desktop ticker
Thanks ;) Got it working this morning, didn¹t realise windows active desktop needed the file to be online...doh!! On 14/1/04 3:04 pm, cfhelp [EMAIL PROTECTED] wrote: This some old code I was using a long time ago. It still works for my Music Site. ?XML Version=1.0 Encoding=iso-8859-1 ? CHANNEL HREF=""> BASE=http://www.1sourceentertainment.com/templates/mods/PHPBB.cfm TITLE1sourceentertainment/TITLE ABSTRACT1sourceentertainment/ABSTRACT Schedule IntervalTime DAY=90 / /Schedule ITEM HREF=""> TITLE1sourceentertainment//TITLE ABSTRACT1sourceentertainment/ABSTRACT Usage Value=DesktopComponent Height Value=90 / Width Value=400 / /Usage /Item /Channel Save it has a .cdf file. Rick -Original Message- From: Ryan Mitchell [mailto:[EMAIL PROTECTED] Sent: Tuesday, January 13, 2004 5:11 PM To: CF-Talk Subject: sot: active desktop ticker Hello I was wondering if anyone had experience making a news style ticker that a user can put on their desktop... I was thinking active desktop was the best way to do it (I'm happy enough to limit to windows), and I looked into channel definition files, but I can't get them working... Anyone done this and would care to lend a hand! ryan _ [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
Re: sot: active desktop ticker
How did I know you would suggest that?!! Just wanted something quick and easy... Will do a central one down the line... On 14/1/04 2:17 pm, Christian Cantrell [EMAIL PROTECTED] wrote: On Tuesday, January 13, 2004, at 06:10PM, Ryan Mitchell wrote: I was wondering if anyone had experience making a news style ticker that a user can put on their desktop... I was thinking active desktop was the best way to do it (I'm happy enough to limit to windows), and I looked into channel definition files, but I can't get them working... Have you investigated Central?It runs on the desktop and is cross platform (at least Windows and OS X, at this point). http://www.macromedia.com/devnet/central/ Introduction to Central white paper: http://www.macromedia.com/software/central/whitepaper/central_wp.pdf Christian [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
Re: sot: active desktop ticker
I like the look of it and the idea behind it. Played about with it a bit, but haven¹t got too in depth yet, but I plan on it. Problem with using it for something such as this post required is that you have to download the central app before you get to downloading the ticker... Which will put a good few users off im sure! On 14/1/04 8:05 pm, Christian Cantrell [EMAIL PROTECTED] wrote: On Wednesday, January 14, 2004, at 10:12AM, Ryan Mitchell wrote: How did I know you would suggest that?!! How could I not?:)I'm actually a very big fan of Central.I'd be interesting in knowing what you think of it once you get around to playing with it. Christian [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
Re: Safari Navigation Bug and general speed issues
It will from the next release... It was a known bug that has been fixed for what should be an immenent release Up to version 1.1.1 it didn¹t honor them as well as it should :) On 13/1/04 8:44 am, Hugo Ahlenius [EMAIL PROTECTED] wrote: Does Safari honor caching headers? - Hugo AhleniusE-Mail: [EMAIL PROTECTED] Project Officer Phone:+46 8 230460 UNEP GRID-ArendalFax:+46 8 230441 Stockholm OfficeMobile:+46 733 467111 WWW: http://www.grida.no - | -Original Message- | From: Jim Davis [mailto:[EMAIL PROTECTED] | Sent: Tuesday, January 13, 2004 05:34 | To: CF-Talk | Subject: RE: Safari Navigation Bug and general speed issues | | We just had a major problem with some versions of Safari (not | all).The issue, it seems was that Safari was a little | aggressive with caching.Our log in page submits to itself: | showing error or success information.Safari only showed the | original page from its cache even tho' the page had been updated. | | We fixed this by adding a URL variable to the page - all I did was | ?tick=#getTickCount()#It's kludgy as hell, but it changes the URL | enough to force Safari to display the actual page. ### This message has been scanned by F-Secure Anti-Virus for Microsoft Exchange. For more information, connect to http://www.F-Secure.com/ [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
sot: active desktop ticker
Hello I was wondering if anyone had experience making a news style ticker that a user can put on their desktop... I was thinking active desktop was the best way to do it (I'm happy enough to limit to windows), and I looked into channel definition files, but I can't get them working... Anyone done this and would care to lend a hand! ryan [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
Re: single IP issue
Now, I could be wrong, but if you have installed the enterprise version as the on top of jrun4 option (as 2 licence files makes me think u have) then I don¹t imagine u can revert to the CFMX standard stand alone version, I would imagine you have to do a fresh install? On 9/1/04 5:21 pm, Bryan Stevenson [EMAIL PROTECTED] wrote: it's definately the single IP issue...confirmed it in the logsbut no allowedIP settng in the license.properties files.now the fun beginswhere oh where is the dang setting ;-) Bryan Stevenson B.Comm. VP Director of E-Commerce Development Electric Edge Systems Group Inc. t. 250.920.8830 e. [EMAIL PROTECTED] - Macromedia Associate Partner www.macromedia.com - Vancouver Island ColdFusion Users Group Founder Director www.cfug-vancouverisland.com [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
Re: flash remoting help: UPDATED
did that and it worked fine :( On 7 Jan 2004, at 10:57, Adrian Lynch wrote: Application.cfm will be run too, make sure there's no code in there that might be causing problems. You might also want to call the function from a cfm page to make sure it's working. cfscript obj = CreateObject(component, sendme); cfscript cfdump var=#obj.sayHello()# / Put it in the same directory as the cfc and then browse it. Ade -Original Message- From: Ryan Mitchell [mailto:[EMAIL PROTECTED] Sent: 06 January 2004 22:38 To: CF-Talk Subject: Re: flash remoting help: UPDATED Changed the appropriate bit to: function init () { NetServices.setDefaultGatewayUrl(http://lightwillrise.com:27000/ flashservic es/gateway); conn = NetServices.createGatewayConnection(); service = conn.getService(cfcremoting.sendMe,this); service.sayHello(); trace('connected'); } function sayHello_Result(result) { trace(result); trace('blah'); } init(); stop(); And it made no difference!! On 6/1/04 10:40 pm, Mark A. Kruger - CFG [EMAIL PROTECTED] wrote: Ryan, Yeah - your function is using a var to set your service. The responder is out of scope. get rid of the var. -mark -Original Message- From: Ryan Mitchell [mailto:[EMAIL PROTECTED] Sent: Tuesday, January 06, 2004 4:28 PM To: CF-Talk Subject: Re: flash remoting help: UPDATED Ok, lets start over :o) The flash movie now connects, well let me explain: The flash movie itself is a 1-frame wonder: // Include the Required NetService class files #include NetDebug.as #include NetServices.as #include DataGlue.as // connect to the Flash Remoting service provider function init () { NetServices.setDefaultGatewayUrl(http://lightwillrise.com:27000/ flashservic es/gateway); var conn = NetServices.createGatewayConnection(); var service = conn.getService(cfcremoting.sendMe,this); service.sayHello(); trace('connected'); } function sayHello_Result(result) { trace(result); trace('some text'); } init(); stop(); And the cfc is as follows: cfcomponent cffunction name=sayHello access=remote output=true returntype=string cfset message = hello cfreturn message /cffunction /cfcomponent Now, in the output in flash debug I get ³connected², but nothing from the responder function... Any thoughts? Thanks for ALL the help! Ryan _ [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
Re: flash remoting help: UPDATED
i get the result i should from coldfusion yep there's no application.cfm, and the code is exactly as i posted :) On 7 Jan 2004, at 11:50, Adrian Lynch wrote: You mean you got a result from the cfc via CF? I just tried the code and I got the same error in flash. How about starting afresh with different code. Are yuo sure that no Application.cfm file is running? The cfc code you posted, are you using variables in place of anything or is the code exactly as you showed us? Ade -Original Message- From: Ryan Mitchell [mailto:[EMAIL PROTECTED] Sent: 07 January 2004 11:00 To: CF-Talk Subject: Re: flash remoting help: UPDATED did that and it worked fine :( On 7 Jan 2004, at 10:57, Adrian Lynch wrote: Application.cfm will be run too, make sure there's no code in there that might be causing problems. You might also want to call the function from a cfm page to make sure it's working. cfscript obj = CreateObject(component, sendme); cfscript cfdump var=#obj.sayHello()# / Put it in the same directory as the cfc and then browse it. Ade -Original Message- From: Ryan Mitchell [mailto:[EMAIL PROTECTED] Sent: 06 January 2004 22:38 To: CF-Talk Subject: Re: flash remoting help: UPDATED Changed the appropriate bit to: function init () { NetServices.setDefaultGatewayUrl(http://lightwillrise.com:27000/ flashservic es/gateway); conn = NetServices.createGatewayConnection(); service = conn.getService(cfcremoting.sendMe,this); service.sayHello(); trace('connected'); } function sayHello_Result(result) { trace(result); trace('blah'); } init(); stop(); And it made no difference!! On 6/1/04 10:40 pm, Mark A. Kruger - CFG [EMAIL PROTECTED] wrote: Ryan, Yeah - your function is using a var to set your service. The responder is out of scope. get rid of the var. -mark -Original Message- From: Ryan Mitchell [mailto:[EMAIL PROTECTED] Sent: Tuesday, January 06, 2004 4:28 PM To: CF-Talk Subject: Re: flash remoting help: UPDATED Ok, lets start over :o) The flash movie now connects, well let me explain: The flash movie itself is a 1-frame wonder: // Include the Required NetService class files #include NetDebug.as #include NetServices.as #include DataGlue.as // connect to the Flash Remoting service provider function init () { NetServices.setDefaultGatewayUrl(http://lightwillrise.com:27000/ flashservic es/gateway); var conn = NetServices.createGatewayConnection(); var service = conn.getService(cfcremoting.sendMe,this); service.sayHello(); trace('connected'); } function sayHello_Result(result) { trace(result); trace('some text'); } init(); stop(); And the cfc is as follows: cfcomponent cffunction name=sayHello access=remote output=true returntype=string cfset message = hello cfreturn message /cffunction /cfcomponent Now, in the output in flash debug I get ³connected², but nothing from the responder function... Any thoughts? Thanks for ALL the help! Ryan _ _ [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
Re: flash remoting help: UPDATED
nope :) On 7 Jan 2004, at 12:08, Adrian Lynch wrote: OnRequestEnd.cfm prehaps? :O) -Original Message- From: Ryan Mitchell [mailto:[EMAIL PROTECTED] Sent: 07 January 2004 12:00 To: CF-Talk Subject: Re: flash remoting help: UPDATED i get the result i should from coldfusion yep there's no application.cfm, and the code is exactly as i posted :) On 7 Jan 2004, at 11:50, Adrian Lynch wrote: You mean you got a result from the cfc via CF? I just tried the code and I got the same error in flash. How about starting afresh with different code. Are yuo sure that no Application.cfm file is running? The cfc code you posted, are you using variables in place of anything or is the code exactly as you showed us? Ade -Original Message- From: Ryan Mitchell [mailto:[EMAIL PROTECTED] Sent: 07 January 2004 11:00 To: CF-Talk Subject: Re: flash remoting help: UPDATED did that and it worked fine :( On 7 Jan 2004, at 10:57, Adrian Lynch wrote: Application.cfm will be run too, make sure there's no code in there that might be causing problems. You might also want to call the function from a cfm page to make sure it's working. cfscript obj = CreateObject(component, sendme); cfscript cfdump var=#obj.sayHello()# / Put it in the same directory as the cfc and then browse it. Ade -Original Message- From: Ryan Mitchell [mailto:[EMAIL PROTECTED] Sent: 06 January 2004 22:38 To: CF-Talk Subject: Re: flash remoting help: UPDATED Changed the appropriate bit to: function init () { NetServices.setDefaultGatewayUrl(http://lightwillrise.com:27000/ flashservic es/gateway); conn = NetServices.createGatewayConnection(); service = conn.getService(cfcremoting.sendMe,this); service.sayHello(); trace('connected'); } function sayHello_Result(result) { trace(result); trace('blah'); } init(); stop(); And it made no difference!! On 6/1/04 10:40 pm, Mark A. Kruger - CFG [EMAIL PROTECTED] wrote: Ryan, Yeah - your function is using a var to set your service. The responder is out of scope. get rid of the var. -mark -Original Message- From: Ryan Mitchell [mailto:[EMAIL PROTECTED] Sent: Tuesday, January 06, 2004 4:28 PM To: CF-Talk Subject: Re: flash remoting help: UPDATED Ok, lets start over :o) The flash movie now connects, well let me explain: The flash movie itself is a 1-frame wonder: // Include the Required NetService class files #include NetDebug.as #include NetServices.as #include DataGlue.as // connect to the Flash Remoting service provider function init () { NetServices.setDefaultGatewayUrl(http://lightwillrise.com:27000/ flashservic es/gateway); var conn = NetServices.createGatewayConnection(); var service = conn.getService(cfcremoting.sendMe,this); service.sayHello(); trace('connected'); } function sayHello_Result(result) { trace(result); trace('some text'); } init(); stop(); And the cfc is as follows: cfcomponent cffunction name=sayHello access=remote output=true returntype=string cfset message = hello cfreturn message /cffunction /cfcomponent Now, in the output in flash debug I get ³connected², but nothing from the responder function... Any thoughts? Thanks for ALL the help! Ryan _ _ _ [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
Re: flash remoting help: UPDATED
if you got an error from flash too, then could you give me a bit of code that does work for you then? and i will test it? just something simple! On 7 Jan 2004, at 11:50, Adrian Lynch wrote: You mean you got a result from the cfc via CF? I just tried the code and I got the same error in flash. How about starting afresh with different code. Are yuo sure that no Application.cfm file is running? The cfc code you posted, are you using variables in place of anything or is the code exactly as you showed us? Ade -Original Message- From: Ryan Mitchell [mailto:[EMAIL PROTECTED] Sent: 07 January 2004 11:00 To: CF-Talk Subject: Re: flash remoting help: UPDATED did that and it worked fine :( On 7 Jan 2004, at 10:57, Adrian Lynch wrote: Application.cfm will be run too, make sure there's no code in there that might be causing problems. You might also want to call the function from a cfm page to make sure it's working. cfscript obj = CreateObject(component, sendme); cfscript cfdump var=#obj.sayHello()# / Put it in the same directory as the cfc and then browse it. Ade -Original Message- From: Ryan Mitchell [mailto:[EMAIL PROTECTED] Sent: 06 January 2004 22:38 To: CF-Talk Subject: Re: flash remoting help: UPDATED Changed the appropriate bit to: function init () { NetServices.setDefaultGatewayUrl(http://lightwillrise.com:27000/ flashservic es/gateway); conn = NetServices.createGatewayConnection(); service = conn.getService(cfcremoting.sendMe,this); service.sayHello(); trace('connected'); } function sayHello_Result(result) { trace(result); trace('blah'); } init(); stop(); And it made no difference!! On 6/1/04 10:40 pm, Mark A. Kruger - CFG [EMAIL PROTECTED] wrote: Ryan, Yeah - your function is using a var to set your service. The responder is out of scope. get rid of the var. -mark -Original Message- From: Ryan Mitchell [mailto:[EMAIL PROTECTED] Sent: Tuesday, January 06, 2004 4:28 PM To: CF-Talk Subject: Re: flash remoting help: UPDATED Ok, lets start over :o) The flash movie now connects, well let me explain: The flash movie itself is a 1-frame wonder: // Include the Required NetService class files #include NetDebug.as #include NetServices.as #include DataGlue.as // connect to the Flash Remoting service provider function init () { NetServices.setDefaultGatewayUrl(http://lightwillrise.com:27000/ flashservic es/gateway); var conn = NetServices.createGatewayConnection(); var service = conn.getService(cfcremoting.sendMe,this); service.sayHello(); trace('connected'); } function sayHello_Result(result) { trace(result); trace('some text'); } init(); stop(); And the cfc is as follows: cfcomponent cffunction name=sayHello access=remote output=true returntype=string cfset message = hello cfreturn message /cffunction /cfcomponent Now, in the output in flash debug I get ³connected², but nothing from the responder function... Any thoughts? Thanks for ALL the help! Ryan _ _ [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
Re: flash remoting help: UPDATED
yeah i get teh same stack trace... could you give me a simple bit of cfc code that works for you...? On 7 Jan 2004, at 12:50, Adrian Lynch wrote: Here's the code I had in the fla: #include NetServices.as NetServices.setDefaultGatewayUrl( http://lightwillrise.com:27000/flashservices/gateway http://lightwillrise.com:27000/flashservices/gateway ); conn = NetServices.createGatewayConnection(); conn.getService(cfcremoting.sendMe,this).sayHello(); function sayHello_Result(result) { trace(result); } function sayHello_Status(status) { trace(status.description); trace(status.details); } This was the line that interested me: at coldfusion.compiler.cfml40.endOrEmptyTag(cfml40.java:411) not sure if it has any significance though. -Original Message- From: Ryan Mitchell [mailto:[EMAIL PROTECTED] Sent: 07 January 2004 12:36 To: CF-Talk Subject: Re: flash remoting help: UPDATED if you got an error from flash too, then could you give me a bit of code that does work for you then? and i will test it? just something simple! On 7 Jan 2004, at 11:50, Adrian Lynch wrote: You mean you got a result from the cfc via CF? I just tried the code and I got the same error in flash. How about starting afresh with different code. Are yuo sure that no Application.cfm file is running? The cfc code you posted, are you using variables in place of anything or is the code exactly as you showed us? Ade -Original Message- From: Ryan Mitchell [mailto:[EMAIL PROTECTED] Sent: 07 January 2004 11:00 To: CF-Talk Subject: Re: flash remoting help: UPDATED did that and it worked fine :( On 7 Jan 2004, at 10:57, Adrian Lynch wrote: Application.cfm will be run too, make sure there's no code in there that might be causing problems. You might also want to call the function from a cfm page to make sure it's working. cfscript obj = CreateObject(component, sendme); cfscript cfdump var=#obj.sayHello()# / Put it in the same directory as the cfc and then browse it. Ade -Original Message- From: Ryan Mitchell [mailto:[EMAIL PROTECTED] Sent: 06 January 2004 22:38 To: CF-Talk Subject: Re: flash remoting help: UPDATED Changed the appropriate bit to: function init () { NetServices.setDefaultGatewayUrl(http://lightwillrise.com:27000/ flashservic es/gateway); conn = NetServices.createGatewayConnection(); service = conn.getService(cfcremoting.sendMe,this); service.sayHello(); trace('connected'); } function sayHello_Result(result) { trace(result); trace('blah'); } init(); stop(); And it made no difference!! On 6/1/04 10:40 pm, Mark A. Kruger - CFG [EMAIL PROTECTED] wrote: Ryan, Yeah - your function is using a var to set your service. The responder is out of scope. get rid of the var. -mark -Original Message- From: Ryan Mitchell [mailto:[EMAIL PROTECTED] Sent: Tuesday, January 06, 2004 4:28 PM To: CF-Talk Subject: Re: flash remoting help: UPDATED Ok, lets start over :o) The flash movie now connects, well let me explain: The flash movie itself is a 1-frame wonder: // Include the Required NetService class files #include NetDebug.as #include NetServices.as #include DataGlue.as // connect to the Flash Remoting service provider function init () { NetServices.setDefaultGatewayUrl(http://lightwillrise.com:27000/ flashservic es/gateway); var conn = NetServices.createGatewayConnection(); var service = conn.getService(cfcremoting.sendMe,this); service.sayHello(); trace('connected'); } function sayHello_Result(result) { trace(result); trace('some text'); } init(); stop(); And the cfc is as follows: cfcomponent cffunction name=sayHello access=remote output=true returntype=string cfset message = hello cfreturn message /cffunction /cfcomponent Now, in the output in flash debug I get ³connected², but nothing from the responder function... Any thoughts? Thanks for ALL the help! Ryan _ _ _ [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
Re: flash remoting help: UPDATED
you are a star! the problem wasnt with the script as such, i had fixed that error earlier, but i had set teh default mapping / to a directory other than that, and as such thought that i should put the script in the place the mapping specified... i guess not after all! On 7 Jan 2004, at 13:52, Mauricio Giraldo wrote: rant maybe you could edit your reply so we dont get the infinite-scroll page :) /rant 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 : cfset s = blah 23 : cfreturn s 24 : 25 : /cffunction I believe that line 23 should read cfset s = blah Missing a ? Mauricio [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
Re: flash remoting help
How do you reference that directory then? Could you give me more details, sounds like we have a winner for the problem! On 6/1/04 11:46 am, Craig Earls [EMAIL PROTECTED] wrote: Yes I am using Flash Remoting in a shared hosting environemnt and have exactly the problem you describe.The unsatisfactory solution has been to put all my cfCFCsin the same directory and only call them from that directory.Otherwise the path gets screwed up since the braindead macromedia service can't establish different roots for CFC in different Applications. I spent quite a bit of time with my hosting provider to find a workaround, but short of all applucations on the server stuffing their CFC under the same root directory we couldn't figure it out.I would love to hear if others have had different luck. Craig Earls On Mon, 05 Jan 2004 20:14:35 -0400, you wrote: 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/flashser vices/gateway); var conn = NetServices.createGatewayConnection(); var service = conn.getService(cfc.sendmail,new obj()); service.sayHello(); } init(); /* in cfc/sendmail.cfc */ cfcomponent cffunction name=sayHello access=remote output=false returntype=string cfset var message = hello cfreturn message /cffunction /cfcomponent [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
Re: flash remoting help
Ok, update: I¹ve found my webroot, created a directory called cfcremoting, and am working off that... It does seem to connect. When I try the code below, I get the following error with the flash debugger: error:coldfusion.compiler.ParseException: Invalid CFML construct found on line 23 at column 17. Theres not even 23 lines in the file!!! On 6/1/04 12:14 am, Mauricio Giraldo [EMAIL PROTECTED] wrote: 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/flashserv ices/gateway); var conn = NetServices.createGatewayConnection(); var service = conn.getService(cfc.sendmail,new obj()); service.sayHello(); } init(); /* in cfc/sendmail.cfc */ cfcomponent cffunction name=sayHello access=remote output=false returntype=string cfset var message = hello cfreturn message /cffunction /cfcomponent [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
Re: flash remoting help: UPDATED
Ok, lets start over :o) The flash movie now connects, well let me explain: The flash movie itself is a 1-frame wonder: // Include the Required NetService class files #include NetDebug.as #include NetServices.as #include DataGlue.as // connect to the Flash Remoting service provider function init () { NetServices.setDefaultGatewayUrl(http://lightwillrise.com:27000/flashservic es/gateway); var conn = NetServices.createGatewayConnection(); var service = conn.getService(cfcremoting.sendMe,this); service.sayHello(); trace('connected'); } function sayHello_Result(result) { trace(result); trace('some text'); } init(); stop(); And the cfc is as follows: cfcomponent cffunction name=sayHello access=remote output=true returntype=string cfset message = hello cfreturn message /cffunction /cfcomponent Now, in the output in flash debug I get ³connected², but nothing from the responder function... Any thoughts? Thanks for ALL the help! Ryan [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
Re: flash remoting help: UPDATED
Changed the appropriate bit to: function init () { NetServices.setDefaultGatewayUrl(http://lightwillrise.com:27000/flashservic es/gateway); conn = NetServices.createGatewayConnection(); service = conn.getService(cfcremoting.sendMe,this); service.sayHello(); trace('connected'); } function sayHello_Result(result) { trace(result); trace('blah'); } init(); stop(); And it made no difference!! On 6/1/04 10:40 pm, Mark A. Kruger - CFG [EMAIL PROTECTED] wrote: Ryan, Yeah - your function is using a var to set your service.The responder is out of scope. get rid of the var. -mark -Original Message- From: Ryan Mitchell [mailto:[EMAIL PROTECTED] Sent: Tuesday, January 06, 2004 4:28 PM To: CF-Talk Subject: Re: flash remoting help: UPDATED Ok, lets start over :o) The flash movie now connects, well let me explain: The flash movie itself is a 1-frame wonder: // Include the Required NetService class files #include NetDebug.as #include NetServices.as #include DataGlue.as // connect to the Flash Remoting service provider function init () { NetServices.setDefaultGatewayUrl(http://lightwillrise.com:27000/flashservic es/gateway); var conn = NetServices.createGatewayConnection(); var service = conn.getService(cfcremoting.sendMe,this); service.sayHello(); trace('connected'); } function sayHello_Result(result) { trace(result); trace('some text'); } init(); stop(); And the cfc is as follows: cfcomponent cffunction name=sayHello access=remote output=true returntype=string cfset message = hello cfreturn message /cffunction /cfcomponent Now, in the output in flash debug I get ³connected², but nothing from the responder function... Any thoughts? Thanks for ALL the help! Ryan [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
Re: flash remoting help
Where would I find information about these? On 5/1/04 10:44 am, Adrian Lynch [EMAIL PROTECTED] wrote: You don't seem to have created a responder function in flash. Do you get an error message in Flash? Something along the lines, .no default responder..? If so, have a look at responders for flash remoting. There's a few different ways to do it but you'll no doubt choose your favourite. Ade -Original Message- From: Ryan Mitchell [mailto:[EMAIL PROTECTED] Sent: 31 December 2003 10:34 To: CF-Talk Subject: Re: flash remoting help I¹m calling the function on a button click... Still havent got it working! On 31/12/03 12:58 am, chris kief [EMAIL PROTECTED] wrote: Did you get this working? From the looks of your code, you're never calling the function, just declaring it. You need to invoke the function to get it to work: stop(); // Include the Required NetService class files #include NetServices.as // Connect to the Flash Remoting service // Make the Gateway connection NetServices.setDefaultGatewayUrl(http://www.lightwillrise.com:27000/flashse rvices/gateway); gatewayConnnection = NetServices.createGatewayConnection(); // path relative to webroot svc = gatewayConnnection.getService(cfc.sendmail, this); function insertIt() { svc.sendMail(); } // invoke the function insertIt(); chris _ [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
Re: flash remoting help
Still not working... I¹ve stripped it down to total simplicity, a 2 frame flash movie, frame one calls the remoting, and then theres a responder function to play the movie should data arrive.. But alas no joy!! Has anyone used flash remoting on a shared hosting environment, as I¹m convinced its a problem with the path to the cfc... I¹ve tried every variation I can think of, but with no luck... The flash movie seems to connect to the server, but just not find any data to read... Its either that or the flash remoting install on the server is screwy... On 5/1/04 6:25 pm, Adrian Lynch [EMAIL PROTECTED] wrote: Give google a bash for a load of info. http://www.google.com/search?hl=en http://www.google.com/search?hl=enie=UTF-8oe=UTF-8q=flash+remoting+respo nderbtnG=Google+Search ie=UTF-8oe=UTF-8q=flash+remoting+responderbtnG=Google+Search To get your code below to work try adding this method. function sendMail_Result(result) { trace(result); // When the data is returned from the method call, this is where it is returned to } Let us know if this works. Ade -Original Message- From: Ryan Mitchell [mailto:[EMAIL PROTECTED] Sent: 05 January 2004 15:59 To: CF-Talk Subject: Re: flash remoting help Where would I find information about these? On 5/1/04 10:44 am, Adrian Lynch [EMAIL PROTECTED] wrote: You don't seem to have created a responder function in flash. Do you get an error message in Flash? Something along the lines, .no default responder..? If so, have a look at responders for flash remoting. There's a few different ways to do it but you'll no doubt choose your favourite. Ade -Original Message- From: Ryan Mitchell [mailto:[EMAIL PROTECTED] Sent: 31 December 2003 10:34 To: CF-Talk Subject: Re: flash remoting help I¹m calling the function on a button click... Still havent got it working! On 31/12/03 12:58 am, chris kief [EMAIL PROTECTED] wrote: Did you get this working? From the looks of your code, you're never calling the function, just declaring it. You need to invoke the function to get it to work: stop(); // Include the Required NetService class files #include NetServices.as // Connect to the Flash Remoting service // Make the Gateway connection NetServices.setDefaultGatewayUrl(http://www.lightwillrise.com:27000/flashse rvices/gateway); gatewayConnnection = NetServices.createGatewayConnection(); // path relative to webroot svc = gatewayConnnection.getService(cfc.sendmail, this); function insertIt() { svc.sendMail(); } // invoke the function insertIt(); chris _ _ [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
Re: CFMX install on OS X
I think you can proceed without being a non-root user. Although it displays the warning, you can still click on the next button. On 4/1/04 12:39 am, Philipp Cielen [EMAIL PROTECTED] wrote: Installing ColdFusion MX for J2EE on OS X I get the warning message that I am installing as a non-root user. While I know how to run the installer as root I still wonder why I should do so? Installing (i.e. creating EAR/WAR files) works perfectly fine being a normal user with administrative privileges. Any ideas? thanks, Philipp -- cielen.com Fressgass / Alte Oper Grosse Bockenheimer Str. 54 60313 Frankfurt am Main Germany tel +49-69-29724620 fax +49-69-29724637 [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
Re: flash remoting help
I¹m calling the function on a button click... Still havent got it working! On 31/12/03 12:58 am, chris kief [EMAIL PROTECTED] wrote: Did you get this working? From the looks of your code, you're never calling the function, just declaring it. You need to invoke the function to get it to work: stop(); // Include the Required NetService class files #include NetServices.as // Connect to the Flash Remoting service // Make the Gateway connection NetServices.setDefaultGatewayUrl(http://www.lightwillrise.com:27000/flashse rvices/gateway); gatewayConnnection = NetServices.createGatewayConnection(); // path relative to webroot svc = gatewayConnnection.getService(cfc.sendmail, this); function insertIt() { svc.sendMail(); } // invoke the function insertIt(); chris [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
OT: flash remoting help
Hello I'm playing with flash remoting to a cfc for the first time, and having a few difficulties trying to get it all working... Its on a shared hosting server, so within the flash I'm accessing the server as follows (the coldfusion server runs on port 27000 so I'm assuming that¹s the port for flash remoting!) stop(); // Include the Required NetService class files #include NetServices.as // Connect to the Flash Remoting service // Make the Gateway connection NetServices.setDefaultGatewayUrl(http://www.lightwillrise.com:27000/flashse rvices/gateway); gatewayConnnection = NetServices.createGatewayConnection(); // path relative to webroot svc = gatewayConnnection.getService(cfc.sendmail, this); function insertIt() { svc.sendMail(); } The file sendmail.cfc im trying to access is found in a folder cfc within the webroot... So is cfc.sendmail the right path to put in? The sendmail.cfc file itself is very simple... cfcomponent cffunction name=sendMail access=remote returntype=boolean !--- validate and insert --- cfmail to=[EMAIL PROTECTED] subject=blah from=[EMAIL PROTECTED] test email /cfmail cfreturn true /cffunction Flash *seems* to connect to the server, but it just doesn¹t seem to send the email!! Any help gratefully received... Ryan [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
Re: OT: flash remoting help
Yeah I do get a blank page... I want the stop there to stop my movie :O) On 30/12/03 2:13 pm, Clint Tredway [EMAIL PROTECTED] wrote: What happens if you go to the gateway url in a browser? You should get a blank page. That means the gateway is working. You also, don't need the stop()that will kill your movie's timeline. HTH, Clint [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
Re: OT: flash remoting help
Nope, no joy im afraid. Seems to me like theres a problem once it hits the gateway... Like the path is wrong or something, cos the cfc is never being run, or not that I can see anyway! Thanks for your help! On 30/12/03 2:29 pm, Clint Tredway [EMAIL PROTECTED] wrote: The stop is what is stopping your remoting call... How are you calling your function? Also, sometimes they way you are setting your gateway, Flash doesn't create the connection properly.. try this: if(inited == null) { inited = true; var conn = NetServices.createGatewayConnection(http://www.lightwillrise.com:27000/flashs ervices/gateway); var svc = conn.getService(cfc.sendMail, this); } HTH Ryan Mitchell wrote: [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
Re: CF PHP Same Server
Likewise... No probs here On 16/12/03 10:26 pm, cf-talk [EMAIL PROTECTED] wrote: No problems that I ever experienced.I'm running CFMX6.1, PHP, and Perl on IIS. -Novak -Original Message- From: Jim Gurfein [mailto:[EMAIL PROTECTED] Sent: Tuesday, December 16, 2003 2:18 PM To: CF-Talk Subject: CF PHP Same Server Does anyone have experience with CF PHP on the same server? Any notes on tricks and issues would be appreciated. Sincerely yours, Jim Gurfein President, CEO RestaurantRow.com, Inc. http://www.restaurantrow.com 914.921.3200 ext 101 914.921.9190 fax _ [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
Re: OT: Payment Merchants Merchant Accounts (UK)
Www.secpay.co.uk They have a list of banks they work with On 10/12/03 3:29 pm, Oliver Cookson [EMAIL PROTECTED] wrote: Hi, I will shortly be needed a UK based payment processor or a merchant account to start receiving CC payments via the web. Can anyone recommend good\cheap UK based 3rd party payment processors and well priced merchant accounts as well? Thanks in advance. Cheers Oliver [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
OT: copy record in mysql
Hello I google'd this but couldn¹t get an answer. I have a table with lots of columns of different types. I need to copy a row to a new row... How would you do this? Preferable in mysql without coldfusion... But if that¹s not possible, a coldfusion solution will do fine. Thanks, Ryan [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
Re: copy record in mysql
Mysql syntax says you cant insert into the table you select from, unless I read it wrong. On 8/12/03 2:00 pm, Deanna Schneider [EMAIL PROTECTED] wrote: Um, you mean: Insert into mytable select * from mytable where someclause that gets your old column? - Original Message - From: Ryan Mitchell [EMAIL PROTECTED] To: CF-Talk [EMAIL PROTECTED] Sent: Monday, December 08, 2003 7:53 AM Subject: OT: copy record in mysql Hello I google'd this but couldn¹t get an answer. I have a table with lots of columns of different types. I need to copy a row to a new row... How would you do this? Preferable in mysql without coldfusion... But if that¹s not possible, a coldfusion solution will do fine. Thanks, Ryan [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
Re: copy record in mysql
No probs, thanks anyways... Any other takers? On 8/12/03 2:57 pm, Deanna Schneider [EMAIL PROTECTED] wrote: Oh. Never mind. (I don't use MySql and figured maybe you just were a sql newbie. :) ) -Deanna [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
Re: Another CFML app server...
I think its been removed :) On 4/12/03 3:04 pm, Gabriel Robichaud [EMAIL PROTECTED] wrote: wow... the site must be down, i was able to view it all this am. Gabriel -Original Message- From: Clint Tredway [mailto:[EMAIL PROTECTED] Sent: Thursday, December 04, 2003 10:03 AM To: CF-Talk Subject: Re: Another CFML app server... I would like to try it, but none of the links work on the site ;) Tim Blair wrote: Morning, Has anyone seen this before: http://www.pcaonline.com/coral/ It's a new one on me... Tim. --- RAWNET LTD - Internet, New Media and ebusiness Gurus. Visit our new website at http://www.rawnet.com for more information about our company, or call us free anytime on 0800 294 24 24. --- Tim Blair Web Application Engineer, Rawnet Limited Direct Phone : +44 (0) 1344 393 441 Switchboard : +44 (0) 1344 393 040 --- This message may contain information which is legally privileged and/or confidential.If you are not the intended recipient, you are hereby notified that any unauthorised disclosure, copying, distribution or use of this information is strictly prohibited. Such notification notwithstanding, any comments, opinions, information or conclusions expressed in this message are those of the originator, not of rawnet limited, unless otherwise explicitly and independently indicated by an authorised representative of rawnet limited. --- _ [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
Iteration variables
hello I'm writing a recursive function, and I need to hold variables relative to each iteration of the function... Which may have been changed further on down/up the line by another calling of the function So I need to hold values for each iteration How do you do this?! TIA, Ryan [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
Re: ot: mac cf programming software
Dreamweaver and BBEditLite On 1/12/03 3:34 pm, Tony Weeg [EMAIL PROTECTED] wrote: to all mac people, what editor do you use for cfmx work? thanks ...tony tony weeg senior web applications architect navtrak, inc. www.navtrak.net [EMAIL PROTECTED] 410.548.2337 [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
Query to structure
Hello I have a query which returns one row with a lot of columns... I want to take the query and convert it to a structure, with the key being the column name and the value being the value of the column... How do you do this? Ryan [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
Re: Query to structure
Thanks :) On 19/11/03 12:51 pm, Tim Blair [EMAIL PROTECTED] wrote: Ryan, I want to take the query and convert it to a structure, with the key being the column name and the value being the value of the column... Simply loop over the column list: cfset mystruct = structnew() cfloop list=#myquery.columnList# index=col cfset mystruct[col] = myquery[col] /cfloop Tim. --- RAWNET LTD - Internet, New Media and ebusiness Gurus. Visit our new website at http://www.rawnet.com for more information about our company, or call us free anytime on 0800 294 24 24. --- Tim Blair Web Application Engineer, Rawnet Limited Direct Phone : +44 (0) 1344 393 441 Switchboard : +44 (0) 1344 393 040 --- This message may contain information which is legally privileged and/or confidential.If you are not the intended recipient, you are hereby notified that any unauthorised disclosure, copying, distribution or use of this information is strictly prohibited. Such notification notwithstanding, any comments, opinions, information or conclusions expressed in this message are those of the originator, not of rawnet limited, unless otherwise explicitly and independently indicated by an authorised representative of rawnet limited. --- [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
Php to coldfusion
Hello I have the following php code which I need to convert into coldfusion... preg_match_all('#\{(([a-z0-9\-_]+?\.)+?)([a-z0-9\-_]+?)\}#is', $code, $varrefs); $varcount = sizeof($varrefs[1]); for ($i = 0; $i $varcount; $i++) { $namespace = $varrefs[1][$i]; $varname = $varrefs[3][$i]; $new = $this-generate_block_varref($namespace, $varname); $code = str_replace($varrefs[0][$i], $new, $code); } I've used the reGet udf off cflib and ive got it to: cfset varrefs = reGet(code,'\{(([a-z0-9\-_]+?\.)+?)([a-z0-9\-_]+?)\}') cfloop to=#ArrayLen(varrefs)# index=i from=1 cfset namespace = ReReplace(varrefs[i],'\{(([a-z0-9\-_]+?\.)+?)([a-z0-9\-_]+?)\}','\1') cfset varname = ReReplace(varrefs[i],'\{(([a-z0-9\-_]+?\.)+?)([a-z0-9\-_]+?)\}','\3') cfset new = generate_block_varref(namespace,varname) cfset code = Replace(code,varrefs[i],new,ALL) /cfloop It supposed to take variables within a template such as {T_FONT_COLOR} and replace them with a value, but it doesn¹t seem to be picking them up right. Im thinking its a problem with the regex, but I'm not too hot on them... Can somebody point me in the right direction?? Ryan [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
Site wide error template
Hello again I remember a good while ago (6 months maybe) somebody made a site-wide error template for shared hosting pages, which could be used to display a page styled to each site... I searched the archives and couldn¹t find it, does anybody have it handy? Care to share? Ryan [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
Re: Mailpart and 6.1
But that¹s not the right order? You are supposed to do the most simple version first?? On 17/11/03 11:51 pm, Stacy Young [EMAIL PROTECTED] wrote: Try setting the HTML first then text Stace _ From: Ryan Mitchell [mailto:[EMAIL PROTECTED] Sent: November 17, 2003 6:34 PM To: CF-Talk Subject: Mailpart and 6.1 Hello Having a few issues with some code in 6.1 I have the following cfmail cfmail to=#arguments.to# from=#arguments.from# subject=#removeHTML(arguments.subject)# charset=iso-8859-1 cfmailpart type=text charset=iso-8859-1 #plaintext# /cfmailpart cfif arguments.html cfmailpart type=html charset=iso-8859-1 #arguments.header# #body# #arguments.footer# /cfmailpart /cfif /cfmail Which is all fine and wonderful The problem is it creates 2 types of text/plain, one at the top which it should, and one after the html one... And hotmail being hotmail decides to take the 2nd one and so I get a blank email... How do I stop this? Ryan _ [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
Re: Very vague error message
Yeah the whole page is basically a cfscript tag :) Ill have another look at it later, I do have some switch + case statements, ill ensure the syntax is correct and get back to you all. Thanks for all the replies :) On 17/11/03 3:17 am, Michael S. Hodgdon [EMAIL PROTECTED] wrote: I have never come across this in a ColdFusion.One way you can try to pinpoint the error is to place cfabort statement at say, line 50. Run your code and if you don't get an error, place the cfabort on line 100 and run the code.Keep doing this until you get closer to the error. Do you have any idea where it could be?It sounds as though ColdFusion is saying do not place a dynamic variable in this evaluating statement.I can't think of a place where this would be so.Are you using cfscript in this page anywhere?If so, if you are using a case statement that reads case constant, this may be the culprit. Hope that helps. -Original Message- From: Ryan Mitchell [mailto:[EMAIL PROTECTED] Sent: Sunday, November 16, 2003 10:41 AM To: CF-Talk Subject: Very vague error message Hello I have a rather large page of code which ive been working on, and I get the following error: This _expression_ must have a constant value. It doesn¹t give me a line number, or a code snippet, just that text. As I said I have a lot of code (1000+ lines) and I cant quite tie down the problem... Has anyone come across this before? Thanks, Ryan [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
Re: Very vague error message
Ok, tracked it down to the switch statement: switch(type) { case request.AUTH_ACL: result = u_access[j][key]; case request.AUTH_MOD: result = result OR u_access[j]['auth_mod']; case request.AUTH_ADMIN: result = result OR is_admin; break; } On reading the cf reference I see that in a switch statement: ³Each constant value must be a constant (that is, not a variable, a function, or other _expression_).² As you can see each of my case¹s is a variable which is the problem... Is there any way of using the variable but not getting the error? On 17/11/03 3:17 am, Michael S. Hodgdon [EMAIL PROTECTED] wrote: I have never come across this in a ColdFusion.One way you can try to pinpoint the error is to place cfabort statement at say, line 50. Run your code and if you don't get an error, place the cfabort on line 100 and run the code.Keep doing this until you get closer to the error. Do you have any idea where it could be?It sounds as though ColdFusion is saying do not place a dynamic variable in this evaluating statement.I can't think of a place where this would be so.Are you using cfscript in this page anywhere?If so, if you are using a case statement that reads case constant, this may be the culprit. Hope that helps. -Original Message- From: Ryan Mitchell [mailto:[EMAIL PROTECTED] Sent: Sunday, November 16, 2003 10:41 AM To: CF-Talk Subject: Very vague error message Hello I have a rather large page of code which ive been working on, and I get the following error: This _expression_ must have a constant value. It doesn¹t give me a line number, or a code snippet, just that text. As I said I have a lot of code (1000+ lines) and I cant quite tie down the problem... Has anyone come across this before? Thanks, Ryan [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
Re: Very vague error message
Lol, should have thought of that, I was just thinking there was a clever solution :) On 17/11/03 12:20 pm, Pascal Peters [EMAIL PROTECTED] wrote: if(type IS request.AUTH_ACL){ result = u_access[j][key] OR u_access[j]['auth_mod'] OR is_admin; } else if(type IS request.AUTH_MOD){ result = result OR u_access[j]['auth_mod'] OR is_admin; } else if(type IS request.AUTH_ADMIN){ result = result OR is_admin; } -Original Message- From: Ryan Mitchell [mailto:[EMAIL PROTECTED] Sent: maandag 17 november 2003 13:07 To: CF-Talk Subject: Re: Very vague error message Ok, tracked it down to the switch statement: switch(type) { case request.AUTH_ACL: result = u_access[j][key]; case request.AUTH_MOD: result = result OR u_access[j]['auth_mod']; case request.AUTH_ADMIN: result = result OR is_admin; break; } On reading the cf reference I see that in a switch statement: ³Each constant value must be a constant (that is, not a variable, a function, or other _expression_).² As you can see each of my case¹s is a variable which is the problem... Is there any way of using the variable but not getting the error? [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
Re: OT: OS X host file
/etc/hostconfig On 17/11/03 6:47 pm, Tim Do [EMAIL PROTECTED] wrote: Anybody know where its located? Thanks, Tim [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
Mailpart and 6.1
Hello Having a few issues with some code in 6.1 I have the following cfmail cfmail to=#arguments.to# from=#arguments.from# subject=#removeHTML(arguments.subject)# charset=iso-8859-1 cfmailpart type=text charset=iso-8859-1 #plaintext# /cfmailpart cfif arguments.html cfmailpart type=html charset=iso-8859-1 #arguments.header# #body# #arguments.footer# /cfmailpart /cfif /cfmail Which is all fine and wonderful The problem is it creates 2 types of text/plain, one at the top which it should, and one after the html one... And hotmail being hotmail decides to take the 2nd one and so I get a blank email... How do I stop this? Ryan [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
Very vague error message
Hello I have a rather large page of code which ive been working on, and I get the following error: This _expression_ must have a constant value. It doesn¹t give me a line number, or a code snippet, just that text. As I said I have a lot of code (1000+ lines) and I cant quite tie down the problem... Has anyone come across this before? Thanks, Ryan [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
Looping through a query in cfscript
Hello I need to loop over a query in cfscript. I notice when I cfdump the query there is a record number in the left hand column, how would I loop using this as the identifier? I usually use cfloop but this is in the middle of a cfscript block :) Thanks, Ryan [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
Re: Looping through a query in cfscript
Thanks :) Spot on On 15/11/03 6:55 pm, Ben Doom [EMAIL PROTECTED] wrote: What I've always done is loop through the query like a structure of arrays: for (i = 1; i = query.recordcount; i = i + 1) { do_something_with(query.column[i]); } HTH. --Ben Doom Ryan Mitchell wrote: Hello I need to loop over a query in cfscript. I notice when I cfdump the query there is a record number in the left hand column, how would I loop using this as the identifier? I usually use cfloop but this is in the middle of a cfscript block :) Thanks, Ryan [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
Com/asp/ldap maybe?
Hello I have the following line in an asp script: GetObject(IIS:// Application(Server) /W3SVC) To connect to iis to get some details from it. Is there any way of doing the same in coldfusion? Would prefer to do it natively as opposed to cfhttping an asp script. Ryan [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
Re: Com/asp/ldap maybe?
Aaah java, should have thought of that! Thanks for pointing me in the right direction :) On 14/11/03 1:45 pm, Dave Watts [EMAIL PROTECTED] wrote: I have the following line in an asp script: GetObject(IIS:// Application(Server) /W3SVC) To connect to iis to get some details from it. Is there any way of doing the same in coldfusion? Would prefer to do it natively as opposed to cfhttping an asp script. You can't easily use ADSI (which is what this is) directly from CF - even with CF 5. What I've done before is to write COM wrappers for ADSI functionality in Windows Script Components, and called those. If you're using CFMX, you might find better solutions by searching for ADSI and Java. Dave Watts, CTO, Fig Leaf Software http://www.figleaf.com/ voice: (202) 797-5496 fax: (202) 797-5444 [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
Help with this regex
Hello I have the following regex: s = rereplace(s, a[^]*href="" ])*[^]*[^]*/a,\1,all); Which should (in theory) replace a href="" here/a With page.htm But instead it just returns click here. Can anyone see where I'm going wrong? Ryan [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
Re: Help with this regex
Wonderful thanks :) On 5/11/03 4:06 pm, Pascal Peters [EMAIL PROTECTED] wrote: After Ben's post I noticed a space I didn't see before. It should be s = rereplace(s, a[^]+href=""> with no spaces at all in the regexp. Pascal -Oorspronkelijk bericht- Van: Pascal Peters Verzonden: wo 5/11/2003 14:34 Aan: CF-Talk CC: Onderwerp: RE: Help with this regex s = rereplace(s, a[^]+href="" ]*)[^]*[^]*/a,\1,all); [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
A href replace sort of thing :)
Hello I'm trying to provide html + plain text versions of the same email using 6.1's mailpart.. Its all good so far. I want to be able to do the following with links... Say I have a href="" here/a In the plain text format I want to replace the click here text with the page.cfm link... Is there a regex to do this? Thanks, Ryan [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
Cfhttp problems!!
Hello I'm having a serious issue with cfhttp on mx 6.1 running on windows 2k. All was fine, until yesterday, when all of a sudden for no reason, cfhttp started saying there was a connection failure constantly. No matter what url or what method I use, it says there is a connection failure... Has anyone seen this? Is there a fix? Ryan [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
Re: downloading to a mac
Yep, do this cntrl click, and there should be a save target as, or a download link target or something. Depends on the browser you are using obviously!! On 17/10/03 17:38, Barney Boisvert [EMAIL PROTECTED] wrote: There is a right click in the mac world, you just need a non-mac mouse to have a right button.However, holding CTRL (not CMD) and clicking is the equivalent of a right click. barneyb -Original Message- From: Mark A. Kruger - CFG [mailto:[EMAIL PROTECTED] Sent: Friday, October 17, 2003 9:29 AM To: CF-Talk Subject: OT: downloading to a mac Mac gurus, What's the best way to set up a file download on a windows based server to a MAC?We have a .mov file.If you click on the link to the file it plays (naturally) - but I don't know an equivalent to right-click -- save target as.Is there such a thing in the mac world? -Mark Mark A. Kruger, MCSE, CFG www.cfwebtools.com www.necfug.com http://mxc.blogspot.com ...what the web can be! [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
A clever regex...
Hello I need help with a regex... Basically I need to find out if there are any non-html characters in a string, ie characters that aren't within and aren't a space either ... Is this possible? TIA Ryan ~| Message: http://www.houseoffusion.com/lists.cfm?link=i:4:138257 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
replacing all urls... with a class attribute
hello i'm needing a bit of quick regex help... i've got the following bit of code: output = ReReplace(cfhttp.FileContent,'([[:alnum:]/ ]+[[:alnum:]]+\.php+[[:alnum:]:;%-_\.\?/ =]?)','#CGI.SCRIPT_NAME#?section=#url.section#subsection= #url.subsection#page=#url.page#fp=\1','ALL') which replaces all the urls in the document... but i actually need it to replace all urls within anchor tags that DONT have class=postlink... any help?? Ryan ~| Message: http://www.houseoffusion.com/lists.cfm?link=i:4:137870 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 ?
Ive started using navicat (formerly mysql studio) http://www.mysqlstudio.com But then I use a mac :) On 11/9/03 14:30, Bob Lehman [EMAIL PROTECTED] wrote: MsSQL Front can be downloaded directly from the MYSQL website. At least you could a month ago Bob Lehman New Horizon Software Solutions - Original Message - From: Andy Edmonds [EMAIL PROTECTED] To: CF-Talk [EMAIL PROTECTED] Sent: Thursday, September 11, 2003 9:20 AM Subject: Re: mysql ? I prefer DBManager. It has the most polished UI, if not interaction of the tools I've tried: http://www.dbtools.com.br/EN/dbmanager.php It has some nice import features, including ODBC connections to grab data from Access, etc and it's free. | wny good recommendations for a front end to mysql? | i remember using something called MySQL-Front but it looks discontinued | ~| 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: MAC Linux laptops (was about blue dragon.)
The powerbooks get you don't they :) I'm using a 15inch powerbook 1ghz with a gig of ram, and I couldn¹t go back to a pc. My workflow has shot up since I switched. I can do everything I could before (with the exception of access - which I have since buried in the dirt) so much faster and easier. On 10/9/03 2:24, Dan O'Keefe [EMAIL PROTECTED] wrote: Not to sound like a MAC virgin, but x11 apps? What is that? One of my Sony laptops is off to be repaired once again and I was thinking about getting either a MAC or a laptop with Linux on it. Maybe one of those MAC laptops with the huge wide screen. Dan === Previous Message Below === -Original Message- From: Barney Boisvert [mailto:[EMAIL PROTECTED] Sent: Tuesday, September 09, 2003 7:38 PM To: CF-Talk Subject: RE: about blue dragon. They don't crash. Excepting to install some updates last night, I've had it on with DW and various other programs open for weeks. My win2k office workstation, on the other hand, requires me to restart dreamweaver at least once a day, and reboot once a week. Also, my production servers are all *nix, so I don't have to deal with any of the potential problems moving code from windows dev machines to *nix production. Finally, you can run all the X11 apps you know and love right on the desktop intermixed with your other OSX apps. And if you're still hooked to windows, you can run emulation software or a terminal services client and easily get your MS fix. barneyb --- Barney Boisvert, Senior Development Engineer AudienceCentral [EMAIL PROTECTED] voice : 360.756.8080 x12 fax : 360.647.5351 www.audiencecentral.com -Original Message- From: Dan O'Keefe [mailto:[EMAIL PROTECTED] Sent: Tuesday, September 09, 2003 4:22 PM To: CF-Talk Subject: RE: about blue dragon. PowerBooks are awesome development machines! Sean A Corfield -- http://www.corfield.org/blog/ What advantages do you think they have over WIN based. What about homesite and the other MX product line? Dan ~| 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
Regex find
Hello Regex help again :o) I'm doing a cfhttp to a page, and want to take out the following string from the cfhttp.filecontent variable. input type=hidden name=robotfile value=n_nn Where n is a number... Basically I need to return what is enclosed in the value= attribute. TIA, Ryan ~| 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: Regex find
I cant find a link to download the tag! On 9/9/03 14:14, Claude Schneegans [EMAIL PROTECTED] wrote: You could have a look at CF_REextract at http://www.contentbox.com/claude/customtags/REextract/testREextract.cfm?p=hf It has been designed especially for this kind of job and can even get the page by HTTP for you. In your particular case, you could just use: CF_REextract INPUTMODE = http INPUT = Your http address RE1 = 'robotfile[[:space:]]+' RE2 = '' OUTPUTMODE = list OUTPUT = your variable name and get the content in your variable. You could also get all occurences if you want in a query, and have it more general depending on the reg expressions you give. ~| 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
Size of a directory
Hello I'm trying to get the size of a directory including all subdirectories included... Im on CFMX Cfdirectory only returns the size of whats in the directory excluding folders... Is there a UDF or tag to do this? TIA Ryan ~| 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: Size of a directory
Cool thanks - thanks a nice solution. If possible I'd like to do it without com, not being picky, I just run my code on more than one server (and more than one OS) :o) On 9/9/03 22:47, Jeff Garza [EMAIL PROTECTED] wrote: If this is on a Windows box, you could always use the FileSystemObject to access the Drives and Folders collections... CFSCRIPT fs = CreateObject(COM, Scripting.FileSystemObject); Windows = fs.GetFolder(c:\windows); WindowsSize = Windows.size; /CFSCRIPT CFOUTPUT#WindowsSize# bytes/CFOUTPUT Works like a dandy for me... I'm sure there are ways to get this using Java, but FSO is so damn fast on Windows that it's a great option to use. HTH, Jeff Garza Manager, Phoenix CFUG Certified ColdFusion MX Developer [EMAIL PROTECTED] -Original Message- From: Ryan Mitchell [mailto:[EMAIL PROTECTED] Sent: Tuesday, September 09, 2003 2:28 PM To: CF-Talk Subject: Size of a directory Hello I'm trying to get the size of a directory including all subdirectories included... Im on CFMX Cfdirectory only returns the size of whats in the directory excluding folders... Is there a UDF or tag to do this? TIA Ryan ~| 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
Hello I've just developed a site where I have a lot of request variables defined in application.cfm, which are constant values... Would there be benefit in defining these as application variables? Ryan ~| 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: Request vs application
Cool, that¹s what I was thinking, its nice to double check. I'm mx, so I guess I'll have to change them all to application scope :) I've not stored constants there before, do I still have to set them in the application.cfm file? That will mean they get overwritten every request? On 7/9/03 14:33, Gyrus [EMAIL PROTECTED] wrote: At 13:24 07/09/2003 +0100, you wrote: I've just developed a site where I have a lot of request variables defined in application.cfm, which are constant values... Would there be benefit in defining these as application variables? If you're using CFMX, probably best to store constants in the Application scope. Unless there are race condition risks (i.e. risk of two processes updating a value at once), which is very unlikely with constants, you don't need to lock the scope when you access the vars. Then you've got them all stored once for the whole application, whereas putting them in the Request scope stores them in memory once for every current request. Pre-MX, my rules-of-thumb are: - Store frequently accessed constants and variables in the Request scope for ease of access - Store anything only accessed once or twice during any request in the Application scope, and remember to lock when reading - The larger and less frequently accessed the data, the better candidate it is for storing in Application, and vice versa for Request HTH, Gyrus [EMAIL PROTECTED] play: http://norlonto.net/ work: http://tengai.co.uk/ PGP key available ~| 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: Request vs application
Excellent, thanks for the pointers :) Ryan On 7/9/03 17:48, Jim Davis [EMAIL PROTECTED] wrote: You don't have to set Application variable in the Application.cfm - you can set them anyplace. You DON'T want to set to set them every request however - that defeats the purpose of the Application scope. ;^) The most common way to do this is to set a marker variable of some kind (I use Application.AppSet ) in this way: cfif NOT IsDefined(Application.AppSet) cfset Application.Foo = 1 cfset Application.Faa = 2 cfset Application.AppSet = True /cfif This way your variables will only be set once - the first time the application is run (after a server/service reboot or application timeout). Additionally many people add in a trigger to allow them to reset them on command as well (this makes it easier to change the variables in development). Changing the first line to something like this: cfif NOT IsDefined(Application.AppSet) OR IsDefined(URL.ResetApp) In this case if you pass anyfile.cfm?ResetApp=Y it will rebuild your application variables. You may want to make a certain value required for ResetApp (basically a reset password) or only allow administrators to do it (if your site supports roles-based security) but that's the general idea. Jim Davis -Original Message- From: Ryan Mitchell [mailto:[EMAIL PROTECTED] Sent: Sunday, September 07, 2003 10:38 AM To: CF-Talk Subject: Re: Request vs application Cool, that¹s what I was thinking, its nice to double check. I'm mx, so I guess I'll have to change them all to application scope :) I've not stored constants there before, do I still have to set them in the application.cfm file? That will mean they get overwritten every request? On 7/9/03 14:33, Gyrus [EMAIL PROTECTED] wrote: At 13:24 07/09/2003 +0100, you wrote: I've just developed a site where I have a lot of request variables defined in application.cfm, which are constant values... Would there be benefit in defining these as application variables? If you're using CFMX, probably best to store constants in the Application scope. Unless there are race condition risks (i.e. risk of two processes updating a value at once), which is very unlikely with constants, you don't need to lock the scope when you access the vars. Then you've got them all stored once for the whole application, whereas putting them in the Request scope stores them in memory once for every current request. Pre-MX, my rules-of-thumb are: - Store frequently accessed constants and variables in the Request scope for ease of access - Store anything only accessed once or twice during any request in the Application scope, and remember to lock when reading - The larger and less frequently accessed the data, the better candidate it is for storing in Application, and vice versa for Request HTH, Gyrus [EMAIL PROTECTED] play: http://norlonto.net/ work: http://tengai.co.uk/ PGP key available ~| 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: SUBMIT button
Pass a hidden field called delete with that value, and rename your submit one to something else... On 2/9/03 15:35, Robert Orlini [EMAIL PROTECTED] wrote: Any reason that this submit button code does not work? input type=image border=0 src=images/delete_record.gif alt=delete value=delete name=delete I like the look of this button because it is an image, but does not pass the delete value to the form. This one works fine: input type=submit value=delete name=delete src=images/delete_record.gif But is displays the old looking default SUBMIT button. Robert O. HWW ~| 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: Sessions across subdomains...
And on one fell stroke all my problems are solved... Muchos gracias :) You've saved me a lot of time and effort!! On 26/8/03 21:10, Dave Carabetta [EMAIL PROTECTED] wrote: Heylo Im having issues sharing sessions across subdomains... I (obviously foolishly) thought that if I had a session at the main domain, and then went to a subdomain of that domain I would maintain session, but that doesn¹t seem to be the case (?) I'm using the same cfapplication name in both the main site and the subdomain, but still no... I have a cookie that gets set when ur logged in, is there any way of accessing this at the subdomain? Any thoughts gratefully received :) Do you have the setDomainCookies attribute of the cfapplication tag set to yes? If not explicitly set, it defaults to no, which I suspect might be your problem. Regards, Dave. _ 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 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
OT: Union in mysql v 3.23
Hey Is there any way to do a union in mysql version less than 4... Using queries of queries or anything? Thanks, Ryan ~| 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: CFMAIL 6.1 ARRGH!
On 27/8/03 13:52, Mark Leder [EMAIL PROTECTED] wrote: Required attributes: 'from,group,query,subject,to'. Optional attributes: 'bcc,cc,charset,debug,failto,groupcasesensitive,mailerid,maxrows,mimeattach, password,port,queryreplyto,server,spoolenable,startrow,timeout,type,username ,wraptext'. Seems to me you need queryreplyto not replyto Ryan ~| 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
Sessions across subdomains...
Heylo Im having issues sharing sessions across subdomains... I (obviously foolishly) thought that if I had a session at the main domain, and then went to a subdomain of that domain I would maintain session, but that doesn¹t seem to be the case (?) I'm using the same cfapplication name in both the main site and the subdomain, but still no... I have a cookie that gets set when ur logged in, is there any way of accessing this at the subdomain? Any thoughts gratefully received :) Ryan ~| 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
naming a variable from another...
Hello I need to name a variable using the value of another variable in the name... Eg I have a variable called id and I want to do this cfset newvariable_#id# = value But it won't let me :) How do you do this? TIA, Ryan ~| 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: Decode - URLEncoded string
A quick-fix solution... Do a rereplace for 00 and remove them all, then do URLDecode?? On 20/8/03 2:23, Jeff Chastain [EMAIL PROTECTED] wrote: I have got a string that was encoded by another application using a 'quad-character format'. I have not seen this format before and I am getting errors when trying to decode it. Anybody run into this before and have any suggestions? I have tried the different formatting options for URLDecode without any luck. 'Normal' encoding - jeff%u2Echastain%u40hp%u2Ecom Quad Character encoding - jeff%u002Echastain%u0040hp%u002Ecom Thanks -- Jeff ~| 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