Gotcha... (Hopefully it's compatible with CF 4.5!)
Your approach looks like what Dan did in his presentation code: <cfif structKeyExists(url, "ajax") and url.ajax> Checking for the ajax variable in the url struct... at least that's how I'm understand it... -----Original Message----- From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Priest, James (NIH/NIEHS) [C] Sent: Friday, April 20, 2007 11:56 AM To: jquery-en@googlegroups.com Subject: [jQuery] Re: Best way to determine if a user has Javascript enabled? > -----Original Message----- > From: Scott Sauyet [mailto:[EMAIL PROTECTED] > header HTTP_X_REQUESTED_WITH means no extra work in the JS, and is > probably a better idea, as long as you are sure you will be > using JQuery This sounds like the best way - I think you were using CF right? Maybe try: GetHttpRequestData Description Makes HTTP request headers and body available to CFML pages. Useful for capturing SOAP request data, which can be delivered in an HTTP header. As far as populating the hidden form field - I got this code from Dan's autocomplete example: function findValue(li) { if( li == null ) return alert("No matching records found!"); // if coming from an AJAX call, let's use the CityId as the value if( !!li.extra ) var sValue = li.extra[0]; // otherwise, let's just display the value in the text box else var sValue = li.selectValue; // write the id to a hidden field $("#public_id").val(sValue); } It's basically looking for a value in a list and assigning that to my field (public_id) Jim