| Author |
jQuery Ajax Calling Struts Action class
|
Joe Harry
Ranch Hand
Joined: Sep 26, 2006
Posts: 8795
|
|
Guys,
I'm trying just what this posts title says. Here is my sample:
The form in Struts notion is:
The rendered html on the browser is:
Why would alert(this.href) print undefined?
|
SCJP 1.4, SCWCD 1.4 - Hints for you, SCBCD Hints - Demnachst, SCDJWS - Auch Demnachst
Did a rm -R / to find out that I lost my entire Linux installation!
|
 |
Joe Harry
Ranch Hand
Joined: Sep 26, 2006
Posts: 8795
|
|
|
Looks like there is no href attribute for a submit button. This is why I get to see undefined. Please correct me if I'm wrong.
|
 |
Bear Bibeault
Author and ninkuma
Marshal
Joined: Jan 10, 2002
Posts: 56528
|
|
|
That's correct. Why would you think that there was? Do you not have an HTML reference handy?
|
[Smart Questions] [JSP FAQ] [Books by Bear] [Bear's FrontMan] [About Bear]
|
 |
Joe Harry
Ranch Hand
Joined: Sep 26, 2006
Posts: 8795
|
|
Actually in all these years of my programming experience, I always had little to do with HTML and Javascript stuff. But now I wanted to get hands on for a project that I'm developing during my spare time. So it is learning on the go and I find it quite interesting. I do not want to forget to mention that Javaranch is like my mentor here.
|
 |
Bear Bibeault
Author and ninkuma
Marshal
Joined: Jan 10, 2002
Posts: 56528
|
|
Get yourself some good references on HTML and JavaScript, else you're really flying blind.
|
 |
 |
|
|
subject: jQuery Ajax Calling Struts Action class
|
|
|