This week's book giveaway is in the Jython/Python forum.
We're giving away four copies of Murach's Python Programming and have Michael Urban and Joel Murach on-line!
See this thread for details.
Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Delete Confirmation page  RSS feed

 
Simpson Kumar
Ranch Hand
Posts: 261
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi in our application we are displaying different objects list in a page with three links (edit, remove, view) on each iterated object, for each link is working based on the id (i.e. based on this id, we are editing, removing and viewing the item).

I can do all three operation successfully.

now
here I got problem now, i got requirement to make confirmation before remove the item. i.e. we need to display a popup confrimation to delete the item.
I can open the confirmation, but the functionality is not working.







The above code is working code without popup, how we can transfer schoolListId?

How can we get the schoolListId value to delete? it was working earliear, but while doing with popup confirmation its not working now, what I have to do?
please some one suggest me.
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 65824
134
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Without any information on how the popup is being shown, how can anyone help you?
 
Simpson Kumar
Ranch Hand
Posts: 261
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Bear,

I tried to put the code, but our site is trowing me that do not allow.
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 65824
134
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You can post code, but there are certain phrases that must be escaped (with HTML entities) to post correctly. Most prominent are any of the onwhatever HTML attributes such as onclick, and the eval() JavaScript method.
 
Simpson Kumar
Ranch Hand
Posts: 261
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi Bear,

please check the following code

Main jsp :



and java script for the above onDelete() function


Delelete Confirmation Page:




Actually I'm unable to get schoolListId, how to get it from main page to here?
 
Simpson Kumar
Ranch Hand
Posts: 261
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I can able to get the schoolListId to confirmation page, but Im unable to make the operation.

When I click on the Ok on confirmation window, without doing any operation my application is failing, i.e. my main page url is redirecting to the follwing page and is failing




and the Delete Confirmation page is :



Could you please help me on this
 
Simpson Kumar
Ranch Hand
Posts: 261
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I got solution, and i did myself without anyone help

upset
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 65824
134
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by sumant kuchipudi:
upset

Upset?

Why?

Because you learned to solve a problem on your own?

Because volunteers didn't drop their own important work in order to take the time out to solve your problem on your schedule?

I have a hard time understanding your attitude.
 
Simpson Kumar
Ranch Hand
Posts: 261
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
No , I'm not blaming anyone.

Actually it was very urgent to finish it soon. the reason why I made big hope on Javaranch. got little bit .

sorry If I hurt anyone.
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 65824
134
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
No problem. Just keep in mind that the people who help others on this site are volunteers who willingly use their spare time. You cannot reasonably expect them to shirk their own duties in order to lend a helping hand whenever they can.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!