Jump to content

page is loaded without any page refresh.


Guest anand_rj3
 Share

Recommended Posts

Guest anand_rj3

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 java script: document.forms[0].action += "#abc"; I am not sure that why this happen. Any one plz tell me the reason.

Link to comment
Share on other sites

  • 2 weeks later...

Well, if the action only has "#abc" in it without the page name (e.g. "index.jsp#abc") then the page will not refresh. Add the name of the page to your action and try again.

Link to comment
Share on other sites

  • 1 year later...
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 java script: document.forms[0].action += "#abc"; I am not sure that why this happen. Any one plz tell me the reason.
Hey, the symblo # is used to navigate within the page, just try out some examples
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...