Javascript: onChange / OnMouseOver events have all stopped firing

thank you for looking at my question,

I have a php page (attached) and the javascript functionality has stopped.

	echo '<td align="center" id="lblRTD">RTD<br/>';
		echo '<div class="tooltip"><input type="text" size="10" id="SpigotNoRTD" name="SpigotNoRTD" OnChange="jsHeatNoRTD()" OnMouseOver="jsMouseOverSpigotRTD()" tabindex="1"/>';
			echo '<span class="tipSpigotRTD" id="tipSpigotRTD"></span>';
		echo '</div>';
		echo '<input type="hidden" id="SpigotRTDPONo" name="SpigotRTDPONo"/>';
		echo '<input type="hidden" id="SpigotRTDDrgNo" name="SpigotRTDDrgNo"/>';
		echo '<input type="hidden" id="SpigotRTDRevNo" name="SpigotRTDRevNo"/>';
	echo '</td>';

Open in new window

the functionality is as follows
	function jsHeatNoRTD(){
		var HeatNoRTD = document.getElementById('SpigotNoRTD').value;

		var Pipe = HeatNoRTD.indexOf("|");
		var Tilda = HeatNoRTD.indexOf("~");
		var Aster = HeatNoRTD.indexOf("*");
		if(HeatNoRTD.length > 0){
			if (Pipe > 0)){
				var arrValues = HeatNoRTD.split("|");
			} else if (Tilda > 0){
				var arrValues = HeatNoRTD.split("~");
			} else if (Aster > 0){
				var arrValues = HeatNoRTD.split("*");

			document.getElementById('SpigotNoRTD').value = arrValues[0];
			document.getElementById('SpigotRTDPONo').value = arrValues[1];
			document.getElementById('SpigotRTDDrgNo').value = arrValues[2];
			document.getElementById('SpigotRTDRevNo').value = arrValues[3];

	function jsMouseOverSpigotRTD(){
		if (document.getElementById('SpigotRTDPONo').value > 0){
			var SpigotRTDPONo = document.getElementById('SpigotRTDPONo').value;
			var SpigotRTDDrgNo = document.getElementById('SpigotRTDDrgNo').value;
			var SpigotRTDRevNo = document.getElementById('SpigotRTDRevNo').value;
			var TextString = "PO: " + SpigotRTDPONo + "\nDrg: " + SpigotRTDDrgNo + "\nRev: " + SpigotRTDRevNo;

			document.getElementsByClassName('tipSpigotRTD')[0].innerHTML = TextString;

Open in new window

the HeatNoRTD() function splits the input string around "|" or "*" or "~" character and the mouseover event displays the values in a tooltip but none of it works anymore.

as a diagnostic I changed the OnChange event to jsAlert()
	function jsAlert(){

Open in new window

but not even that is firing. Is this something to do with the way in which javascript is implemented. Other pages in the suite with similar constructs are working.

Please help.
Gary CroxfordOperations Support AnalystAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Julian HansenCommented:
I am guessing you have a javascript error on that page.

Open the console F12 (click console)
Load the page and look for errors.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Gary CroxfordOperations Support AnalystAuthor Commented:
Thank you - didn't know about the F12 thing, learnt something new
Julian HansenCommented:
You are welcome.
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today

From novice to tech pro — start learning today.