Thanks for your reply. I understand what you are saying, the query actually does work, but only outputs the first 2 records, probably because the I get disconnected, to your point.
Would this work?
1. Executing a cfquery of all my users outside of javascript.
2. In javascript, create an Array of all my users.
3. In javascript, loop thru the Array and compare against the UID.
4. If no match is found, execute the form to capture the user information.
Thanks again for your help.
Main Topics
Browse All Topics





by: _agx_Posted on 2009-09-18 at 18:09:24ID: 25371054
I have never used the feacebook api. But you can't execute a cfquery from javascript.
Javascript runs in the client (browser) and CF runs on the server. By the time your javascript executes, you are already disconnected from the CF server. So any javascript code executes long after the CF code is already done. If you need to run another query on the server, you have to submit another http request. Either using ajax, a basic form submit, etc...