Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

How to avoid a server trip  RSS feed

 
Pooja Gupta
Greenhorn
Posts: 16
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I have developed a web based application using Netbeans visual web pack. I have a visua webpack table component on the page, that contains a hyperlink. I am executing a javascript on the hyperlink click, but wisual webpack adds the following code automatically after the javascript method call:

return webuijsf.suntheme.hyperlink.submit(this, 'form1', null);

The hyperlink.submit call makes an unnecessary server trip, which I need to aoid. Any help on this would be appreciated.

Thanks
 
Mark Spritzler
ranger
Sheriff
Posts: 17309
11
IntelliJ IDE Mac Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Always look where you are walking and make sure there isn't a server in your way.

Mark
 
Remko Strating
Ranch Hand
Posts: 893
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I discovered the same problems by using javascript and sometimes it helped me when i add a last statement after the javascript like

return false;

At the moment I don't know the theory behind this, but it works for me.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!