Remember you have not inherited earth from your ancestor,you only borrowed it from your descendants.
Bear Bibeault wrote:Welcome to the Ranch.
Wow -- that's way too much code to look through. Besides -- it's full of JSP markup which is not helpful for a JavaScript question. (And using scriptlets? Please read this JspFaq entry).
Please post an SSCCE (Short Self-Contained Correct Example) that shows the issue.
Remember you have not inherited earth from your ancestor,you only borrowed it from your descendants.
Eric Pascarello wrote:In html4, ids can not be numbers or start with a number, looks like you are using an HTML5 doc type so not a big issue. Using ints for ids is bad practice since it gives no reference to what the element is exactly, give it a meaningful name.
Another issue is you should be using a string with getElementById
Eric
Remember you have not inherited earth from your ancestor,you only borrowed it from your descendants.
Bear Bibeault wrote:The JavaScript question should be handled here. Questions on JSP should be posted in the JSP forum.
Remember you have not inherited earth from your ancestor,you only borrowed it from your descendants.
Eric Pascarello wrote:Also
b can never be null, but you are checking for it in the if.
You are calling submit onclick and onsubmit, no reason for that.
Eric
Remember you have not inherited earth from your ancestor,you only borrowed it from your descendants.
Eric Pascarello wrote:Do you use variable names a,b,c,d and 1,2,3,4,5,6 in your Java code? It is bad practice and I would hate to be the person that has to maintain it in the future.
The reason the form is submitting is you have a JavaScript error. Open up the JavaScript console in your browser of choice and run the code. The error will appear. Depending on your debugger, you may have to persist logs across pages.
Eric
Remember you have not inherited earth from your ancestor,you only borrowed it from your descendants.
Remember you have not inherited earth from your ancestor,you only borrowed it from your descendants.
Eric Pascarello wrote:
Ids are singular
You have multiple elements with the same id, that is not valid.They can have the same name
Eric Pascarello wrote:
You can not focus html collections.You need to select one of the radio buttons before you focus it
Eric
Eric Pascarello wrote:
You are combining multiple function calls together wrong.Either make a function and call each function or combine them with &&, not a comma
Eric
Remember you have not inherited earth from your ancestor,you only borrowed it from your descendants.
Eric Pascarello wrote:So make a function...
Eric
This was my first thread and you helped me immensely, i hope one day i can help someone as you helped me.
Thank you very much for all your help.
Remember you have not inherited earth from your ancestor,you only borrowed it from your descendants.
Bear Bibeault wrote:I say just stop trying to be clever and do things in the most straight-worward manner. Nothing is more irritating than code that's unclear, or doesn't work properly, because the author is trying to be clever.
Remember you have not inherited earth from your ancestor,you only borrowed it from your descendants.
Don't get me started about those stupid light bulbs. |