Closed Bug 4604 Opened 26 years ago Closed 25 years ago

RFE: alert(), confirm(), prompt() enhancement

Categories

(Core :: DOM: Core & HTML, enhancement, P3)

enhancement

Tracking

()

VERIFIED WORKSFORME

People

(Reporter: rw263, Assigned: danm.moz)

Details

allow enhancement of the alert, confirm, prompt functions. For example, IE allows change of buttons names, change of default orders, change of icons, change of text in title bar, etc...
QA Contact: 4590 → 4015
not core javascript.
an example can be seen at: http://www.webreference.com/dhtml/column22/js-vbMsgBox.html Other additions may include, the allowing of checkboxes/radios as well as bold/underline.
Assignee: norris → vidur
Component: JavaScript → DOM Level 1
QA Contact: 4015 → 4616
Target Milestone: M7
I presume you're talking about the showModalDialog()/showModelessDialog() stuff in IE? If so, we're working on something similar. If not, what are you referring to?
Status: NEW → ASSIGNED
Summary: alert(), confirm(), prompt() enhancement → RFE: alert(), confirm(), prompt() enhancement
Target Milestone: M7
If you go to the link decribed above, you will see an article demonstrating how IE allows VBScript MsgBoxes to be modified by seding additional variables. IE allows VBScript MsgBoxes to contain the title of your choice, a choice between 3 diffrent iconsn or no icon at all, and the choice of several diffrent button configurations (ie. "OK,cancel", "Abort,retry,fail", "Yes,no" and other combonations of those). This would be a usefull feature, but if not impliment directly it could easily be simulated via XUL and openDialog.
Moving all non-DOM[012], non-crash bugs to M15.
Assignee: vidur → danm
Status: ASSIGNED → NEW
Passing along to danm to see if this is something that interests him. If not, it should be LATERed.
For what is worth, the nsCommonDialog code that implements these dialogs has the capabilites to do everything listed. However it would require that nsIPrompt expose this functionality and someone do this work of actually building the dialogs.
Oy. Old bug. There's no reason why you can't change text or icons in an onload handler, is there? And background colours are the responsibility of overall skin settings. I'm going to call this "works for me." If the original reporter is still alive and disagrees, feel free to reopen with specifics in the comments.
Status: NEW → RESOLVED
Closed: 25 years ago
Resolution: --- → WORKSFORME
I'd argue this is actually a WONTFIX, the reporter wanted this stuff for non chrome. If the reporter still wants it, he should petition ECMA. Workaround would be for the webpage to provide chrome and request permission to use it. vrfy: bug is resolved.
Status: RESOLVED → VERIFIED
Component: DOM → DOM: Core & HTML
You need to log in before you can comment on or make changes to this bug.