aspose file tools*
The moose likes HTML, CSS and JavaScript and the fly likes jQuery Ajax Calling Struts Action class Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "jQuery Ajax Calling Struts Action class" Watch "jQuery Ajax Calling Struts Action class" New topic
Author

jQuery Ajax Calling Struts Action class

Joe Harry
Ranch Hand

Joined: Sep 26, 2006
Posts: 9513
    
    2

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, Certified Scrum Master
Did a rm -R / to find out that I lost my entire Linux installation!
Joe Harry
Ranch Hand

Joined: Sep 26, 2006
Posts: 9513
    
    2

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: 61646
    
  67

That's correct. Why would you think that there was? Do you not have an HTML reference handy?


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Joe Harry
Ranch Hand

Joined: Sep 26, 2006
Posts: 9513
    
    2

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: 61646
    
  67

Get yourself some good references on HTML and JavaScript, else you're really flying blind.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: jQuery Ajax Calling Struts Action class