• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

2 jsp buttons

 
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I am writing code that returns many rows of data about individuals. Next to each row is an edit button followed by a delete button. I need the edit button when clicked to prompt the user as to whether they'd like to edit the existing record or if they'd like to add a new one. If they choose to edit the existing record they will go to edit record page, if they choose to add a new record they will be brought to the new record page. The delete button should ask the user "Are you sure you want to delete this record?" IF yes, dump the record into a separate deleted records table and if no, keep focus on original page.
The following is part of the code:

Can anyone help? Thank you in advance.
 
Sheriff
Posts: 6450
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Since it doesn't seem like you have anything framework specific there, you might want to try the JSP forum. Although looking at your problem you may actually want to go to the HTML/JavaScript forum. Are you wanting a dialog to pop up when you hit the edit/delete buttons, have another page pop open, or simply go to some other page?
In either of the first two options, that's the kind of thing the helpful people in the HTML/Javascript forum live for, so I wouldn't want to infringe on their raison d'etre.
 
Gravity is a harsh mistress. But this tiny ad is pretty easy to deal with:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic