Re: Cleaner way to retrieve a value from an XML node (XML-RPC)

2009-07-02 Thread Cameron Johnson
Do you always know how many children will be returned for a specific node? If not you want to check this out. It will loop over children and you can work specifically with those items. http://www.bennadel.com/blog/1039-Ask-Ben-Iterating-Over-A-ColdFusion-XML-Document.htm Yes, but the number is

Re: Cleaner way to retrieve a value from an XML node (XML-RPC)

2009-07-01 Thread Cameron Johnson
Thank you, Dave. First, have you looked at this? http://support.journurl.com/users/admin/index.cfm?mode=articleentry=362 Great! I was searching for a component like that, and I never came across this one; just the two old ones that the author references. xmldoc child

Cleaner way to retrieve a value from an XML node (XML-RPC)

2009-06-30 Thread Cameron Johnson
Hi, folks. I'm retrieving an XML packet from an API that uses the XML-RPC standard (http://www.xmlrpc.com/spec). When I connect to the Login method of this API, I need to pull the session ID out of the packet. I can do that long-hand with this: cfset local.loginResponseSID =

Re: using cffile and cfdirectory to create tinyURL-style aliases

2009-03-27 Thread Cameron Johnson
Single quotes. Single quotes. (sigh) Thanks, Barney. The answer is that I needed the result to be consistent with what I've been doing manually for two years: creating directories and index.cfm files on the web server to get URLs like www.example.com/go/myURL. I wanted to create a quick

using cffile and cfdirectory to create tinyURL-style aliases

2009-03-26 Thread Cameron Johnson
Hi, all. I've been out of coding for too long and I can't figure this one out. Simple, really: using CFDIRECTORY and CFFILE, I want to create a folder, drop in an index.cfm file, then put a cflocation tag in that index.cfm file. !--- create directory --- cfdirectory action=CREATE

Re: (ot) URL Hack Attempt Leaves Me Scractching My Head...

2008-07-21 Thread Cameron Johnson
We got hit, and, according to the IIS logs, they hit non-standard templates in varied directories: /indexPrint.cfm /events/institute.cfm /search/TaxonomyResults.cfm /conferences/article.cfm /applications/statsmap/detail.cfm I don't see much of a pattern. Cameron For me, all attempts are

Delete prior to an insert as a safeguard

2008-05-30 Thread Cameron Johnson
Hello. I'm looking for some best practice advice with this one. In our membership database, we have a table where we assign membership to a community/group. A user can join or leave these groups on the web (simple checkbox form), or staff can add or remove group membership through the desktop

Re: One-person shop looking for application developers

2007-08-27 Thread Cameron Johnson
suggestions on where to look for this kind of help? Or, if you are someone who works this way, can you contact me? Thanks for the info. Cameron Johnson Web Director National Association of Independent Schools Washington, DC [EMAIL PROTECTED

Re: One-person shop looking for application developers

2007-08-27 Thread Cameron Johnson
Hello, Mahesh and everybody. I got a good response from the community, so I'm not looking for any more developers at this time. Thank you, Cameron Johnson Hi Cameron, Are you still looking out for a Coldfusion Developer to develop the projects ? Regards, Mahesh Poojary

One-person shop looking for application developers

2007-05-04 Thread Cameron Johnson
suggestions on where to look for this kind of help? Or, if you are someone who works this way, can you contact me? Thanks for the info. Cameron Johnson Web Director National Association of Independent Schools Washington, DC [EMAIL PROTECTED

Re: CFQUERYPARAM stripping characters..why?

2006-11-22 Thread Cameron Johnson
I'm not sure of the specifics, but to troubleshoot, I'd test it by removing the CFQUERYPARAM and doing the insert. If it is still stripping the characters, it's not CFQUERYPARAM. It's either the form or the DB. Hope that helps, at least a little bit. Cameron I have this code... insert

Fusebox 4.1 setup for a multi-stage app

2006-05-03 Thread Cameron Johnson
Hi, all. Here's a question about setting up the directory structure and core files using FB 4.1. I'm creating an app where a mix of users, judges, and adiministrators use different parts of the app during different parts of the year. Stage 1 - users register (Spring) Stage 2 - administrators

Re: Fusebox 4.1 setup for a multi-stage app

2006-05-03 Thread Cameron Johnson
at the second level of your app, (i.e. the admin area) just create a child circuit for the stage and you can reference it like MyApp/index.cfm?fuseaction=stage1child.register. Other than that the general approach sounds fine. On 5/3/06, Cameron Johnson [EMAIL PROTECTED] wrote

Combine or separate GetOne and GetAll queries

2006-04-06 Thread Cameron Johnson
Coding convention/best practice question here. In my component, I've got GetOneRecord and GetAllRecords functions. Is it best to combine those functions and use some CFIF logic around a WHERE statement, or should I keep them separate? Here's the combined code: cffunction name=getRecords

Re: Looping over dynamic checkboxes

2006-02-08 Thread Cameron Johnson
Thanks for that suggestion, Bobby. I'm still missing something, and I think I've taken a step back. The following code only gives me one checked checkbox when first editing the form and no checked checkboxes during the error checking: cfloop query=getCheckboxes cfset

Re: Log analyzer software.

2006-02-08 Thread Cameron Johnson
Does SmarterStats make it easy to track pages based on URL variables? Like many sites, our whole site is based on: index.cfm?id=1234 article.cfm?id=5678 conference.cfm?id=91011 And, to further complicate, the same item can be called from different directories: /about/article.cfm?id=5678

Looping over dynamic checkboxes

2006-02-07 Thread Cameron Johnson
The scenario: I've got a self-posting form that validates against validateForm.cfm. If there are errors in the form, I declare an error message variable and put in some text: cfset errorMessage = There were errors in your submission. The purpose: If there are errors, I want the form to be

Capture CF Admin settings

2006-02-01 Thread Cameron Johnson
Hi, all. Rather than taking screen shots or saving each page as an HTML file, is there a way to capture and store all of the CF Admin settings? Doing a CF reinstall without properly document settings is a pain and I'm looking for some pain relief. Thanks, Cameron

Re: Capture CF Admin settings

2006-02-01 Thread Cameron Johnson
, Cameron Johnson [EMAIL PROTECTED] wrote: ~| Message: http://www.houseoffusion.com/lists.cfm/link=i:4:230979 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4

CFC forms and error handling

2005-08-24 Thread Cameron Johnson
Hi, all. I've checked the forums for similar posts, but I've not found a clear answer. So, this may be a bit of a repeat. I've got a simple CFC consisting of four files: form.cfm, formAction.cfm, testCFC.cfc, show.cfm. In formAction.cfm, I wrap the cfinvoke in a cftry to catch any database

Re: Best Practice with CFC?

2005-08-19 Thread Cameron Johnson
I can't answer the should/best practice part of that question, as I've wondered the same thing. But, here's a blog entry that may help answer the how part of the question: http://www.talkingtree.com/blog/index.cfm?mode=entryentry=0C4FAED9-50DA-0559-A0DF9DC0609CF2DF Cameron

Re: filtering results based on url variables

2005-08-05 Thread Cameron Johnson
In case anyone is interested, or if someone digs into the archives for this topic, a friend helped me work out a javascript solution. The function basics are: InvalidTag var urlfield= 'cfoutput#url.field#/cfoutput; function filter(param, value) { switch (param) { case 'field' : urlfield =

filtering results based on url variables

2005-08-01 Thread Cameron Johnson
Using a CFC, I've got a table of results from a getAllRecords method. I want to filter those results based on some variables that the user clicks on individually. So, in the getAllRecords method, my SELECT query will be: SELECT * FROM table WHERE value1 = #arguments.value1# cfif

cfif with AND and OR statements

2005-05-25 Thread Cameron Johnson
I've got the following cfif statement in one of my header pages: cfif (isDefined(URL.ItemNumber) AND URL.ItemNumber NEQ 12345) OR (CGI.SCRIPT_NAME NEQ '/page.cfm') show table 1 cfelse show table 2 /cfif Here are my scenarios: - when the cfif is combined into one statement, it works correctly

RE: cfif with AND and OR statements

2005-05-25 Thread Cameron Johnson
Mapping out the givens and the cases like that made me see the hole in the logic. I flipped the statement and it works in both cases: cfif CGI.SCRIPT_NAME EQ '/page.cfm' OR (isDefined(url.ItemNumber) AND url.ItemNumber EQ 12345) show table 2 cfelse show table 1 /cfif Issue resolved. Thanks