Jump to content

page is loaded without any page refresh.


Guest anand_rj3

Recommended Posts

Guest anand_rj3
Posted

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.

Posted

How exactly are you linking to the action? Post more code and describe exactly what it does better.I just tried adding a #name to one of my struts links and it worked just fine, it refreshed, ran the action, and went to the #name part of the page

  • 2 weeks later...
Posted

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.

  • 1 year later...
Posted
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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...