Re: JSConfirm Panel not working on Windows? (But works on Mac)
Re: JSConfirm Panel not working on Windows? (But works on Mac)
- Subject: Re: JSConfirm Panel not working on Windows? (But works on Mac)
- From: Jonathan Rochkind <email@hidden>
- Date: Mon, 26 Apr 2004 10:57:59 -0500
The only way to figure this out is to understand the HTML involved.
Look at the HTML generated by JSConfirmPanel. Figure out why it does
not work on your Windows browser. Figure out how it would need to be
changed to work on your Windows browser. Then write your own
component to implement it that way (or modify JSConfirmPanel---we are
given the source to it, along with everything else in WOExtensions).
I haven't used JSConfirmPanel, but I've occasionally written my own
code to do the same thing (For instance, simply binding to a
hyperlink "onclick", "return confirm('Are you sure'?);" will provide
'confirm' functionality). I've never had trouble with any browsers.
As long as they have javascript turned on. This functionality is
using javascript. If the browser has javascript disabled, it will
act as you've described---just go ahead and submit the link without
executing the javascript. There's nothing that can be done about
this, except implementing your "confirm" functionality without
javascript. For instance, returning a whole new page with "yes" and
"no" buttons.
--Jonathan
At 1:11 PM -0700 4/23/04, Bill Reynolds wrote:
I'm re-sending this one, in hopes of finding a clue on it (pardon the second
submission). If there is a better alternative to the JSConfirm I'm eager to
hear about it. Thanks!
------
Perhaps I've got it configured incorrectly, but my JSConfirm Panel 'pops' a
small confirmation window as it should on the Mac using IE, but not on the
PC. What's worse is it's a "confirm deletion" that I'm doing, which it just
goes ahead and does w/out any dialog (the whole purpose of the JSConfirm)
Here is the html from WebObjects Builder, and below it I've pasted the
bindings. Any help is always appreciated.
-Bill
<WEBOBJECT NAME=ConfirmPanel><FONT FACE="Helvetica, Sans-Serif"><FONT
SIZE=2><WEBOBJECT NAME=Hyperlink4>Delete
Record</WEBOBJECT></FONT></FONT></WEBOBJECT>
ConfirmPanel: JSConfirmPanel {
action = backToMain;
confirmMessage = "Are you sure you want to delete this?";
}
Hyperlink4: WOHyperlink {
action = deleteRecord;
}
_______________________________________________
webobjects-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/webobjects-dev
Do not post admin requests to the list. They will be ignored.
_______________________________________________
webobjects-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/webobjects-dev
Do not post admin requests to the list. They will be ignored.