• Post Reply Bookmark Topic Watch Topic
  • New Topic

Submit button-simple question

 
Jas Oberai
Ranch Hand
Posts: 231
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Friends,
This mighty be a real simple question for you,but I have no idea.Can you please help me.I have a submit button,And I want that the arraylist contents should be displayed only when someone clicks the button.
 
Ben Souther
Sheriff
Posts: 13411
Firefox Browser Redhat VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Give your button a name and then check it's value.


long form


There is a gotcha, however. If the user presses the return key, some browsers will look for the first submit control on the page and send it's name and value along with the post information even if it wasn't explicitly clicked.
[ January 24, 2005: Message edited by: Ben Souther ]
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!