Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Automatially submit a form

Status
Not open for further replies.

DomTrix

Programmer
Dec 28, 2004
94
GB
Hi there,

In javascript, I can automatically submit a form like so:

document.myForm.submit();


Is there a way to do this in Coldfusion? I am assuming not as I cant find even any questions on it let alone answers :p

I need to do this as I want to dynamically create a form and submit it to paypal without the user being able to see and edit it.

Thanks in advance,

DT
 
Oh, and we dont want to use javascript because of usability and accessibility issues.
 
if you have the data then yes. if you need user information then no, it would have to be a 2 step process. Get the user info then take the info you don't want them to see and "submit" using cfhttp.

We've heard that a million monkeys at a million keyboards could produce the complete works of Shakespeare; now, thanks to the Internet, we know that is not true.
 
Right, dont need user input. Already using cfhttp but this has the one drawback of not forwarding the user on to the URL.

I can display the output of that URL with cfhttp.FileContents but ideally I would like them to be on the paypal site when they see that page and not on ours.
 
I don't think there is anyway to submit a form with cfhttp and force the user to end up at the resulting form processing page. Why not use Paypal IPN and just do everything on your site. take the paypal interface out of it entirely.

I do know that paypal has a process that will put the user to a custom "thank you" page or something of the like. but the user has to submit the page from the browser.

We've heard that a million monkeys at a million keyboards could produce the complete works of Shakespeare; now, thanks to the Internet, we know that is not true.
 
I am in UK and there is no way to do everything on site with paypal (only US). Their IPN comes into play only AFTER payment has been made. As it happens Im having another headache getting IPN to work too; the paypal support is F***ing useless and my forehead is starting to hurt from constant heavy contact with my desktop.

Thanks for your help though. I am sticking with displaying the results of the cfhttp in site.

DT
 
Yeah I agree paypal IPN can be a PITA!

maybe a full flow of the process in question? maybe we can come up with an alternate solution.

We've heard that a million monkeys at a million keyboards could produce the complete works of Shakespeare; now, thanks to the Internet, we know that is not true.
 
The problem I am having is that the "Instant PN" is taking, at last count, 45 mins+ (in the sandbox). Not to friggin useful if you are trying to test it and continue develoing dependant on its results!

Tried calling them: "call us back in 2-3 hours". Anyways, this isnt a paypal hate forum :p

Do you know any good alternatives to paypal? Entry level costings.
 
another great CF TT expert worked at i don't konw if that could help.

We've heard that a million monkeys at a million keyboards could produce the complete works of Shakespeare; now, thanks to the Internet, we know that is not true.
 
thanks satire, its not as we're not in the U.S. but thankyou for your help anyways.
 
How about mals e cart. I know a lot of people use this to take credit cards for work at home business websites.


We've heard that a million monkeys at a million keyboards could produce the complete works of Shakespeare; now, thanks to the Internet, we know that is not true.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top