Once the form/html content is written to the remote page, there's no more JS
involved in coming back to my server - just a simple form submittal. 

I figure that if POST wouldn't work for me, I'll just use GET instead and
then deal with URL variables rather than FORM. I've implemented this and
everything is working. 

At this point, my conclusion is that the POST method has limitations when
used from a remote server/page, although I can't find anything on the web
that speaks to this. I feel stupid because this seems like a simple rule
that I should have picked up in all of my web development experience... oh
well.

Thanks for the reply
Rob

-----Original Message-----
From: Gaulin, Mark [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, May 15, 2007 3:20 PM
To: CF-Talk
Subject: RE: Simple FORM post?

Tough to say what could be going on without looking at any code, but
have you considered that there may be a cross-site scripting security
issue at play?  Does Firefox report anything it its JS console?
        Mark

-----Original Message-----
From: Rob O'Brien [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, May 15, 2007 3:19 PM
To: CF-Talk
Subject: Simple FORM post?

I'm developing a script that will allow remote servers to use a <script>
include on their pages to include a relatively simple search form and
then post back to my site to perform the search. Seems straightforward
enough, but the remote form post isn't populating the local CF FORM
struct - it remains empty. 

 

Here's a quick step-by-step:

 

1)       Remote site includes <script type="text/javascript"
src="http://myhost.com/search.cfm";></script>

2)       Search.cfm generates all the HTML necessary for the form, it's
escaped and returned as a single document.write() to the remote host.
The form is presented on the remote site without trouble.

3)       The search term is entered and the form submitted to my server
as a
POST

4)       When testing on localhost, all is well. The FORM vars are
available
and the search is performed flawlessly. When testing on the prod server,
CF's FORM struct is empty. 

 

I'm using CF's built-in web server locally and IIS on prod. I feel like
I'm missing something stupid. 

 

Any help is appreciated.

 

Rob







~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
ColdFusion MX7 and Flex 2 
Build sales & marketing dashboard RIA’s for your business. Upgrade now
http://www.adobe.com/products/coldfusion/flex2?sdid=RVJT

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:278200
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4

Reply via email to