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
Register / Login


JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Reply 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: 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
    
  14

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
    
  14

Get yourself some good references on HTML and JavaScript, else you're really flying blind.
 
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.
 
subject: jQuery Ajax Calling Struts Action class
 
Similar Threads
jQuery tabs UI issue
jQuery UI tabs not loading in the same tab
jQuery AJAX display issue
Can you post data from textfields to a URL without having a <form>
Struts 2 JCaptchaforStruts 2 issue