I am new to php and AJAX, and I’m stuck. I am developing a webpage that uses two html forms, each onsubmit references a javascript, the scripts for each are stored in two separate .js files that are listed in the header of the html file as such..
The code for each respective .js file, are very similar but I changed the name of the global variables and the function names because I read that could be the problem. No matter what I do I still get the same error, the first form runs, uses the javascript which then calls a .php file with code that connects to an Oracle database runs a query and returns the info back to the html page in a placeholder variable called txtMnemonics, this one works fine. If you run the second form, which does the same things but uses a different js file and calls a different .php file for a different query, I get the following error:
document.getElementById(…) is null or not an object
I have attached the related files for review, if anyone can help sort this out that would be great.
Jon
[upl-file uuid=eaa4067f-70e8-4d28-bbfd-458fd3d00bb3 size=3kB]javascript_issue.txt