Re: How do I change default button in JSConfirmPanel?
Re: How do I change default button in JSConfirmPanel?
- Subject: Re: How do I change default button in JSConfirmPanel?
- From: Mark Morris <email@hidden>
- Date: Wed, 20 Dec 2006 11:47:13 -0600
Hello Calven,
So you gave the user two opportunities to click the correct button, and that still isn't good enough for them? ;-)
I don't believe you can change anything about a _javascript_ confirm panel except its message. The simplest solution is probably to return a whole new page with the warning/confirmation, then do the delete on that page if they confirm. You could make it a pop-up if you like to mimic more the current behavior, but that's not quite as straightforward.
Regards, Mark On Dec 20, 2006, at 10:20 AM, Calven Eggert wrote: Howdy all, I thought that this would be an easy one. The user gets the JSConfirmPanel and asks them if they really want to delete all the records in the database and because it’s easier the user hits the enter button. DOH! Bye bye records. The default for this dialog is OK. How do I change this to Cancel? (In JSConfirmPanel.java I could change the return call which uses the confirm command, but what do I change it to? Is this the right place?) Calven |
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden