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
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
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 =
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
, 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
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
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
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 =
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
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
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
25 matches
Mail list logo