NEW CODE (2 forms, one for each function) index.htm has enterURLdiv which is used for both upload and URL.
"Upload a PDB file" link calls showUploadSlot() which writes into uploadOrURLdiv
"molecule's URL" link calls showURLSlot() which writes into uploadOrURLdiv
button labeled "Submit" does submitURL()
---------------------------- OLD CODE FG3.8 (A SINGLE FORM WAS OUTSIDE THE DIV) index.htm:
The onsubmit was unnecessary when the URL submission button is clicked because it calls submitURL() directly. But it is necessary for Enter to work. This had action='https://proteopedia.org/cgi-bin/fgij' Removing the action made pressing Enter work to show a URL, but killed uploading. Restoring the action fixed uploading, but leaves a JS error since url2get does not exist. Also, restoring the action causes URL slot Enter to go to the funny page at Jaim's cgi. Proposed solution: 1. Put forms INSIDE the enterURLdiv. 2. Have 2 forms, one for each function.
"Upload a PDB file" link calls showUploadSlot() writing into enterURLdiv "molecule's URL" link calls showURLSlot() button labeled "Submit" does submitURL()