Re: Replace cfhttp with jquery.post()

2011-05-07 Thread David Mineer Jr
[mailto:min...@gmail.com] Sent: Friday, May 06, 2011 7:53 PM To: cf-talk Subject: Re: Replace cfhttp with jquery.post() K, hold up. This has something to do with the ip address of the calling function. This program can only be called from the local server i.e. localhost. cfhttp must call from

RE: Replace cfhttp with jquery.post()

2011-05-07 Thread Andrew Scott
Are you sending it back to the browser as Json? I would be more inclined to do that, and remove the serialise json from the JavaScript. Then you will be able to do what you are wanting to do. Regards, Andrew Scott http://www.andyscott.id.au/

Re: Replace cfhttp with jquery.post()

2011-05-07 Thread Dominic Watson
-Original Message- From: David Mineer Jr [mailto:min...@gmail.com] Sent: Friday, May 06, 2011 7:53 PM To: cf-talk Subject: Re: Replace cfhttp with jquery.post() K, hold up.  This has something to do with the ip address of the calling function.  This program can only be called from the local

Re: Replace cfhttp with jquery.post()

2011-05-06 Thread Jason Fisher
Not sure if it's just and oversight, but you've got address in the CFHTTP version and address1 in the jQ version. As for the error, don't you get the response struct in Firebug if you click on the URL? On 5/6/2011 6:11 PM, David Mineer Jr wrote: I am trying to replace this: CFhttp

Re: Replace cfhttp with jquery.post()

2011-05-06 Thread David Mineer Jr
Nice catch. I also had address2 instead of addressline2. I changed those and still nothing. I get the code pasted above for the post info when I click on the link, but the response info is blank. That's what has me flustered. I get nothing back. The link turns red and I can alert that there

Re: Replace cfhttp with jquery.post()

2011-05-06 Thread David Mineer Jr
K, hold up. This has something to do with the ip address of the calling function. This program can only be called from the local server i.e. localhost. cfhttp must call from localhost and so it works. jQuery.post() must call from the client ip address and therefore won't ever work. So I

Re: Replace cfhttp with jquery.post()

2011-05-06 Thread Justin Scott
This program can only be called from the local server i.e. localhost.  cfhttp must call from localhost and so it works. You could easily write a little CF-based form post proxy that would take in the request and re-post it internally and pass the results back to the client. -Justi

Re: Replace cfhttp with jquery.post()

2011-05-06 Thread Russ Michaels
If the page you are trying to call is not web accessible then that indeed would be your problem, can;t you just put in the same folder as the rest of the site so that you can call it from Jquery ? On Sat, May 7, 2011 at 1:59 AM, Justin Scott leviat...@darktech.org wrote: This program can

Re: Replace cfhttp with jquery.post()

2011-05-06 Thread David Mineer Jr
The cfhttp portion works from the same page. And for the program it uses You have to define the ip addresses that it listens on, so of course your options are limited there. It is only for an internal app, but building it like everything else using CF is what works best for me. --- David

RE: Replace cfhttp with jquery.post()

2011-05-06 Thread andy matthews
Simplest thing to do would be to put the cfhttp call into a cfc, then call that from jQuery. andy -Original Message- From: David Mineer Jr [mailto:min...@gmail.com] Sent: Friday, May 06, 2011 7:53 PM To: cf-talk Subject: Re: Replace cfhttp with jquery.post() K, hold up. This has