Celebrate National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17


Javascript / Firefox / Java Issue

Posted on 2017-08-21
Medium Priority
Last Modified: 2017-08-22
We have an add that has been working for months, maybe a year. Recently an issue has arisen.

See this code:
function chk_vals() {
			if (ac == "l") {
				jj = confirm("Log Out will lose all data entered. OK?");
				if (! jj) {
					return false;
				document.st.action = "logout.php";
				return true;
			if (ac == "c") {
				jj = confirm("Cancel will lose all data entered. OK?");
				if (! jj) {
					return false;
				document.st.action = cancpg;
				return true;
			if (document.st.pn.value == "" || document.st.padr.value == "" || document.st.city.value == "" || document.st.zip.value == "") {
				alert("Minimum of property name, address, city & zip required.");
				return false;

Open in new window

Under very specific circumstances, even when there are values in all of the four form fields, pn, paddr, city & zip, the alert occurs.

3 people have tested this, all using FireFox. The problem NEVER occurs for me. It always occurs for person B. For person C, they updated Java on thee computer (all Windows computers), they had been told that Java needed updating. When they did that, it now works.

Is Java used by FireFox in Windows 10 environment? NO Java is used in the web app (all Javascript, php, mySQL, html, Jquery).

Question by:Richard Korts
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
LVL 59

Expert Comment

ID: 42263804
whats the exact issue?

I made a test here


change ac value to test different conditions...
LVL 58

Accepted Solution

Julian Hansen earned 2000 total points
ID: 42263869
Under very specific circumstances, even when there are values in all of the four form fields, pn, paddr, city & zip, the alert occurs.
What circumstances?
If there are really values in all four of those variables there is no way the code will be executed - one of them must have a blank value.

Author Comment

by:Richard Korts
ID: 42263960

Based on your response, it occurs to me that I MIGHT have accidentally duplicated the form field name for one of those four elsewhere in the form or maybe in a hidden field; I will check that idea.

Author Closing Comment

by:Richard Korts
ID: 42264077
I had a hidden field called city on the form; in MOST cases, that field is set to the value of city (based on another criteria), but in this case it was not, it is set to null.

I have to test my fix but your response led me to the issue.

LVL 58

Expert Comment

by:Julian Hansen
ID: 42264401
You are welcome Richard,

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction This article is the first of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article explains our test automation goals. Then rationale is given for the tools we use to a…
Today, the web development industry is booming, and many people consider it to be their vocation. The question you may be asking yourself is – how do I become a web developer?
The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…
How to fix incompatible JVM issue while installing Eclipse While installing Eclipse in windows, got one error like above and unable to proceed with the installation. This video describes how to successfully install Eclipse. How to solve incompa…
Suggested Courses

730 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question