PDA

View Full Version : Calling any knowledgeable perl/cgi programmers - (this does concern Actinic)


christopherpm
07-Jan-2004, 06:17 PM
OK,

I am writing routines to process orders using 2Checkout.com and I am 99.9% done.

I need just ONE thing.

I have a script that sits inbetween Actinic and 2Checkout. The only thing is at the moment, that it has a submit button (as it processes parameters in both directions).

Does anyone know of a way of auto-submitting a form within perl/cgi? I assume the Actinic developers do as the last process of os000001.pl before going to the payment processor automatically selects the "Next" button....

Thanks

Ben
08-Jan-2004, 09:45 AM
Hi Chris

I'll ask our developers and come back to you with their reply.

Ben

Ben
09-Jan-2004, 04:08 PM
Does anyone know of a way of auto-submitting a form within perl/cgi? Assign a name to the <FORM> tag.

Insert...

OnLoad="onLoad();

into the <BODY> tag.

and insert the following into the <HEAD> section...

<SCRIPT LANGUAGE="JavaScript">
<!--
function onLoad()
{
document.myForm.submit();
}
// -->
</SCRIPT>

where myForm is the name of the form assigned to the <FORM> tag.

christopherpm
10-Jan-2004, 06:04 PM
Thanks - have incorporated it - works great!