[Javascript] Need Response right away !!
Peter Brunone
peter at brunone.com
Tue Nov 11 15:31:45 CST 2003
You mean you want to get some variable on the receiving page after submitting the form? The most dependable way to do this is to have a hidden form field that you set to the required value, and pick it up on the next page (the syntax for this will depend on your server platform).
Original Message:
>From: "Bommadeni, Rajanee" <RBommadeni at geico.com>
>
>Hi,
>Im having the following Javascript now.
>
> function submitTestingToolForm(actionType){
> var sForm = getObject('soTestingToolForm');
> if(sForm != null){
> if ( actionType == "writeToQueue.do" ){
> if ( confirm ("Would you like to save the XML before
>continuing?") ){
> actionType = "downloadXml.do";
> }
> }
> sForm.action =actionType;
> enableAllField(sForm);
> sForm.submit();
> }
> }
>
>
>When i call the "submitTestingToolForm" with "actionType" as
>"writeToQueue.do", then am asking to confirm "Would you like to save the XML
>before continuing?", if the client clicks "ok" then i will be calling
>"downloadXml.do". Then am submitting the form. After this form is submitted
>i need to call "writeToQueue.do" rightaway.
>
>Let me know how can I go back to the (actionType == "writeToQueue.do) after
>the sForm.submit();
>
>Thanks,
>Raj.
>301-986-3489 (Work)
>SOD Performance Mgmt.
>RBommadeni at geico.com <mailto:RBommadeni at geico.com>
More information about the Javascript
mailing list