function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
montblanc2000montblanc2000 

submit hidden form to ASP page

Here is the setup:
I have an s-control that contains some HTML (with Javascript). The s-control queries the sforce database and obtains all of the account names (in my dummy Salesforce account, there are only 40).
 
It creates the equivalent number of "hidden" inputs and appends them to an existing form while populating each of them with the corresponding account name.
 
It is supposed to auto-submit the form to an ASP page. It does this using https (I have an SSL certificate for the server I am using).
 
The problem:
The form does not autosubmit (i.e. using the form.submit method in Javascript). It works if I create a "submit" type input and click it.
 
Earlier, it was not working because I was trying to pass information from a secure (https -- Salesforce) to a non-secure (http -- mine) server. If I clicked the "submit" button, it would prompt me for permission to switch protocols. I have now resolved this issue, but the form still only submits if I do it manually.
 
 
Can anyone please help me with this? Is there a better method of passing data to an ASP page? Thank you,
 
Paul
Greg HGreg H
Try "document.FormName.submit();". Where form name is the value in the name= tag of your form.
-greg
montblanc2000montblanc2000
I had figured it out by the time you posted, but your response was exactly what I needed. I had forgotten to include the parantheses after submit. Thanks for your reply!

Paul