File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes HTML, CSS and JavaScript and the fly likes Form is submitted and action performed without page refresh 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 "Form is submitted and action performed without page refresh" Watch "Form is submitted and action performed without page refresh" New topic
Author

Form is submitted and action performed without page refresh

Anand Java
Greenhorn

Joined: Sep 25, 2007
Posts: 1
Hi,
In jsp,servlets & struts project..
when I append # symbol with the action and submit that,action is performed and page is loaded without any page refresh.

code in javascript:
document.forms[0].action += "#abc";

I am not sure that why this happen. Any one please tell me the reason.
Ben Souther
Sheriff

Joined: Dec 11, 2004
Posts: 13410

You'll want to read up on the HTML Anchor Tag.

I'm going to move this to our HTML/Javascript forum since this is a client side issue.


Java API J2EE API Servlet Spec JSP Spec How to ask a question... Simple Servlet Examples jsonf
Ben Souther
Sheriff

Joined: Dec 11, 2004
Posts: 13410

"Anand Java",
Welcome to JavaRanch!

We're pleased to have you here with us here on the ranch, but there are a few rules that need to be followed, and one is that proper names are required. Please take a look at the JavaRanch Naming Policy and adjust your display name to match it.

In particular, your display name must be a first and a last name separated by a space character, and must not be obviously fictitious. You can change it here
[ September 25, 2007: Message edited by: Ben Souther ]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Form is submitted and action performed without page refresh