Let me rewrite and rearrange the code and I'll show it to you tomorrow and see what you think. Thanks for your input and help, Aaron. Time for some sleep! Rick From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Aaron Heimlich Sent: Friday, April 20, 2007 10:47 PM To: jquery-en@googlegroups.com Subject: [jQuery] Re: Best way to determine if a user has Javascript enabled? Show me exactly what XML you are attempting to return, I'm semi-familiar with Taconite so I should be able to make some sense of it. Also, I'm no CF whiz, but this doesn't make a whole lot of sense to me
<CFCONTENT type="text/html" reset="yes"> <CFHEADER name="Content-Type" value="text/xml"> >From what I understand from the ColdFusion 4.5 CFML Reference[1], <CFCONTENT> sets the Content-Type of the page, and the <CFHEADER> tag you're using is doing the same thing. Try this, though (be warned, I have *very* limited knowledge of CF) <CFIF IsDefined("URL.isAjax")> <CFINCLUDE for cf processing of data <CFHEADER name="Content-Type" value="text/xml"> <CFOUTPUT> <taconite> <!-- your taconite stuff here --> </taconite> </CFOUTPUT> <CFELSE> <HTML xmlns= http://www.w3.org/1999/xhtml> <HEAD> <META http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> <BODY> Now the actual page content. scripts, including one that posts back to the same page ( I guess this is the Ajax post. $.post("CalcTest.cfm", Params); ), then the body, including the form (no submit button, everything is posted on blur) </BODY> </HTML> </CFIF> [1] http://download.macromedia.com/pub/documentation/en/coldfusion/452/45langref .pdf On 4/20/07, Rick Faircloth <[EMAIL PROTECTED] > wrote: Is it possible to submit a page back to itself using a regular submit button, then process the data from the form using taconite commands? I've run into a dead end. I can't seem to figure out how to submit a form with a regular submit button and then have taconite handle the data that comes back to the page. I'm using the script I was given to attach ?isAjax=true to my URL, and I was thinking that all I had to do was use taconite's replaceContent command to place the error messages back on the page with the form without refreshing the page. I've been thinking about this so long, I think I'm having a brain cramp. The problem seems to be that with a regular submission, I can't get the data being returned to the page in the xml format so taconite can parse it. I was given an example where all validation (no server-side validation) was done on a single page. The page was wrapped by: <CFIF IsDefined("Form.Fieldnames")> <CFINCLUDE for cf processing of data <CFCONTENT type="text/html" reset="yes"> <CFHEADER name="Content-Type" value="text/xml"> <CFOUTPUT> o Taconite < replaceContent> for selects </CFOUTPUT> <CFELSE> <HTML xmlns=http://www.w3.org/1999/xhtml> <HEAD> <META http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> <BODY> Now the actual page content. scripts, including one that posts back to the same page ( I guess this is the Ajax post. $.post("CalcTest.cfm", Params); ), then the body, including the form (no submit button, everything is posted on blur) </BODY> </HTML> </CFIF> The CFIF wrap of the page seems to prevent the return of non-xml data to the taconite plug-in, preventing what I'm getting now. "XML Parsing Error: not well-formed." Am I just missing something or is it impossible to do this sort of thing at all if server-side processing is involved? I guess the question I have to have answered now is whether or not data can be sent back to the page that posted it in a form that the taconite plug-in can process it, if the data wasn't sent via Ajax from the page to begin with. Forgive me if this doesn't make any sense. it's not making much right now to me, either. I'm about ready to call it quits on client-side validation. I'm not sure it's worth all this trouble since server-side validation has to be performed anyway. Rick From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Rick Faircloth Sent: Friday, April 20, 2007 6:55 PM To: jquery-en@googlegroups.com Subject: [jQuery] Re: Best way to determine if a user has Javascript enabled? Thanks for the feedback, Aaron. I'm trying to integrate the whole validation scheme into one page. I'm following an example given to me that does work, but using my own code, of course. I've got something wrong somewhere. I'll tinker some more and then if I can't figure it out, I'll post some code. Thanks for the tip. at least now I have some idea of what to look for! Rick From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Aaron Heimlich Sent: Friday, April 20, 2007 6:23 PM To: jquery-en@googlegroups.com Subject: [jQuery] Re: Best way to determine if a user has Javascript enabled? On 4/20/07, Rick Faircloth <[EMAIL PROTECTED]> wrote: "The XML file does not appear to have any style information associated with it. The document tree is shown below." This is what FireFOX (not Firebug) does when you browse to an XML file that isn't using any XSLT stylesheets (and I would guess CSS as well, but I dunno). Seeing this doesn't necessarily mean that something went wrong, though (unless you're actually trying to use XSLT or something). Is the page in question supposed to return XML? If not, you should be sure that you're sending the appropriate Content-Type for whatever that page should be sending. -- Aaron Heimlich Web Developer [EMAIL PROTECTED] http://aheimlich.freepgs.com -- Aaron Heimlich Web Developer [EMAIL PROTECTED] http://aheimlich.freepgs.com <http://aheimlich.freepgs.com>