RE: CF, Ajax and Autocomplete Problems

2008-09-17 Thread Ian Vaughan
Hi All Ok seem to be getting somewhere now, or at least I'm getting errors back, the page is internal and not on the web. On the search form page I am getting a JavaScript error 'bsn is undefined'? The original code was for php which I think works superb at

RE: CF, Ajax and Autocomplete Problems

2008-09-17 Thread Dawson, Michael
- From: Ian Vaughan [mailto:[EMAIL PROTECTED] Sent: Wednesday, September 17, 2008 5:46 AM To: CF-Talk Subject: RE: CF, Ajax and Autocomplete Problems Hi All Ok seem to be getting somewhere now, or at least I'm getting errors back, the page is internal and not on the web

RE: CF, Ajax and Autocomplete Problems

2008-09-16 Thread Ian Vaughan
Hi I'm trying to incorporate an Ajax autosuggest feature into a Coldfusion search page I have. The example I have found is for PHP, and I'm trying to get this to work with Coldfusion The original autocomplete script and working example can be found

Re: CF, Ajax and Autocomplete Problems

2008-09-16 Thread Dominic Watson
Perhaps the js code is wanting the response format to have an xml type header and/or dislikes whitespace at the top of the output. Try this: cfcontent type=text/xml; charset=UTF-8 reset=yes /cfoutput#theXML#/cfoutput You may also want to take a look at cfinput autosuggest=... and

RE: CF, Ajax and Autocomplete Problems

2008-09-16 Thread Ian Vaughan
Hi Dominic Just tried what you suggested, but its still the same? This is the original php script, perhaps Coldfusion can't offer the same functionality as PHP, that's why there are problems implementing it in CF? --- ?php //arrays are hard coded, but these could be populated from

Re: CF, Ajax and Autocomplete Problems

2008-09-16 Thread Phillip M. Vector
Ian Vaughan wrote: Just tried what you suggested, but its still the same? Do you mean that as a question Is it still the same? or do you mean that as a statement It is still the same.? This is the original php script, perhaps Coldfusion can't offer the same functionality as PHP, that's why

Re: CF, Ajax and Autocomplete Problems

2008-09-16 Thread Phillip M. Vector
Sorry man. Just got a bit annoyed that someone came onto a CF list and starting saying PHP can do something that CF can't (which is a lie). http://livedocs.adobe.com/coldfusion/8/htmldocs/help.html?content=Tags_i_07.html Read that over and try it out. Pay special attention to autosuggest. Your

RE: CF, Ajax and Autocomplete Problems

2008-09-16 Thread Dawson, Michael
Subject: RE: CF, Ajax and Autocomplete Problems Hi Dominic Just tried what you suggested, but its still the same? This is the original php script, perhaps Coldfusion can't offer the same functionality as PHP, that's why there are problems implementing it in CF

RE: CF, Ajax and Autocomplete Problems

2008-09-16 Thread Ian Vaughan
8:53 AM To: CF-Talk Subject: RE: CF, Ajax and Autocomplete Problems Hi Dominic Just tried what you suggested, but its still the same? This is the original php script, perhaps Coldfusion can't offer the same functionality as PHP, that's why there are problems implementing it in CF

RE: CF, Ajax and Autocomplete Problems

2008-09-16 Thread Dawson, Michael
Can you provide us with the link to this page? Mike -Original Message- From: Ian Vaughan [mailto:[EMAIL PROTECTED] Sent: Tuesday, September 16, 2008 9:28 AM To: CF-Talk Subject: RE: CF, Ajax and Autocomplete Problems Hi Mike I have surrounded it with a cfsilent tag to remove

RE: CF, Ajax and Autocomplete Problems

2008-09-16 Thread Dawson, Michael
Also, I see an ending /results tag, but no beginning results tag. Mike -Original Message- From: Ian Vaughan [mailto:[EMAIL PROTECTED] Sent: Tuesday, September 16, 2008 9:28 AM To: CF-Talk Subject: RE: CF, Ajax and Autocomplete Problems Hi Mike I have surrounded it with a cfsilent tag

Re: CF, Ajax and Autocomplete Problems

2008-09-16 Thread Dominic Watson
That code should through errors or output invalid xml, unless what you have posted is not the complete code. Visit the page in your browser and you should see some verbose errors from either coldfusion or your browser's xml parser. Dominic 2008/9/16 Ian Vaughan [EMAIL PROTECTED]: Hi Mike I

Re: CF, Ajax and Autocomplete Problems

2008-09-16 Thread Mark Picker
Hi, I may also be missing something here, but why are you opening a cfsilent and then closing it straight away? cfsilent /cfsilentcfsetting enablecfoutputonly=yes. The very last line of code has a closing cfsilent with no opening tag. Cheers Mark

CF, Ajax and Autocomplete Problems

2008-09-12 Thread Ian Vaughan
Hi I have been trying to get script.aculo.us autocomplete code to work with Coldfusion, with no avail, and would appreciate any advice / guidance on what I am doing wrong please. When typing in the search box no suggestions appear? Its based on code from http://www.petefreitag.com/item/605.cfm

RE: CF, Ajax and Autocomplete Problems

2008-09-12 Thread Dawson, Michael
I'm not sure if the mailing list cut off some code, but your SELECT statement is missing your variable after the LIKE keyword. mike -Original Message- From: Ian Vaughan [mailto:[EMAIL PROTECTED] Sent: Friday, September 12, 2008 9:34 AM To: CF-Talk Subject: CF, Ajax and Autocomplete