This week's book giveaway is in the Agile and other Processes forum. We're giving away four copies of The Mikado Method and have Ola Ellnestam and Daniel Brolund on-line! See this thread for details.
Thanks for the hint Marc i've solved it. thank you once again i got a problem, i want to use this ID in my js as document.getElementbyId(), here what should i take in the braces.
Thank you bear for moving it to a new topic.
Marc i tried document.getElementById("temp")( this is wrong as i took id in input type as <input type="button" value="Update Answer" name="<%=temp2%>" id="temp2<%=i%>"> here i is taken from iteration). please suggest how do i approach with it.
What does this end up as at the browser? Do a View Source to see. Posting the JSP markup is not useful for dealing with client-side issues.
Whatever the actual id value is, is what you need to use.
P.S. Why are you still using scriptlets in 2012? That's technology that has been obsolete for over 10 years! See this JspFaq entry.
Rakesh Keerthi
Ranch Hand
Joined: Jul 16, 2012
Posts: 103
posted
0
hi bear,
sorry for delay in my reply in the browser it shows id="temp12"(here i is used for a loop) and the source screen is as below.
i want this id to be used in java script, but i'm not knowing how to do it.
Thanks
Eric Pascarello
author
Rancher
Joined: Nov 08, 2001
Posts: 15357
6
posted
0
Post the code, not a photo it.
You are acting like x is a DOM node, when it is a string.
Rakesh Keerthi
Ranch Hand
Joined: Jul 16, 2012
Posts: 103
posted
0
Hi Eric,
below is the code.
Eric Pascarello
author
Rancher
Joined: Nov 08, 2001
Posts: 15357
6
posted
0
Rakesh Keerthi wrote:Hi Eric,
below is the code.
And my answer above is still the same.
Rakesh Keerthi
Ranch Hand
Joined: Jul 16, 2012
Posts: 103
posted
0
Hi Eric,
i did not get you. i'm not understanding what you are saying. DOM and String. If you dont mind, could you please let me know it briefly, i'll solve it myself.
Rakesh Keerthi wrote:
i have removed <!DOCTYPE html>
What does that help? if your HTML is invalid, removing the DOCTYPE directive isn't going to make it any more valid.
Validate your HTML and fix the problems with it.
Search for "HTML Validator" for online validation tools.
Rakesh Keerthi
Ranch Hand
Joined: Jul 16, 2012
Posts: 103
posted
0
Hi Bear,
i have validated my code using a html validator and changed the below highlighted code. It is giving 0 errors and 0 warnings . but the problem is not solved.
But Bear, when i view the source in the browser everything is showing fine and as expected. where am i going wrong?
Eric Pascarello
author
Rancher
Joined: Nov 08, 2001
Posts: 15357
6
posted
0
It has nothing to do with the doc type. A form is not a child element of a table. It can not wrap tr elements.
Eric
Rakesh Keerthi
Ranch Hand
Joined: Jul 16, 2012
Posts: 103
posted
0
Eric, But , i think table can be a child of form. correct me if I'm wrong. and i added <table> inside a <form>, but still i don't see any difference.
Eric Pascarello
author
Rancher
Joined: Nov 08, 2001
Posts: 15357
6
posted
0
Look at your code, you are writing tons of functions with the same exact name. Does Java or any other langauge let you do that? No. The funcitons override each other. You really need to figure out a new way of doing this. What you have done is bad.
Eric
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to
run our stuff on 16 servers instead of 3.