You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cordova.apache.org by "Laurens Van de Perre (Created) (JIRA)" <ji...@apache.org> on 2012/04/12 12:55:16 UTC
[jira] [Created] (CB-486) navigator.notification.alert doesn not
show custom names for MessageBoxButton
navigator.notification.alert doesn not show custom names for MessageBoxButton
-----------------------------------------------------------------------------
Key: CB-486
URL: https://issues.apache.org/jira/browse/CB-486
Project: Apache Callback
Issue Type: Bug
Components: WP7
Affects Versions: 1.6.0
Environment: WP7 Emumlator
WP7 Device LG
Reporter: Laurens Van de Perre
Assignee: Jesse MacFadyen
Priority: Minor
Fix For: 1.7.0
Currently when calling in javascript:
navigator.notification.alert("message", stopVibration, "title", 'buttontext');
An alert box will pop up in WP7 but does not have the correct buttontext.
This is due:
"public void alert(string options)
{
Deployment.Current.Dispatcher.BeginInvoke(() =>
{
AlertOptions alertOpts = JSON.JsonHelper.Deserialize<AlertOptions>(options);
MessageBoxResult res = MessageBox.Show(alertOpts.message, alertOpts.title,MessageBoxButton.OK);
DispatchCommandResult(new PluginResult(PluginResult.Status.OK,(int)res));
});
}
"
A possible solution to solve this bug is to use a custom messageboxresult like:
http://shareourideas.com/2011/03/05/custom-message-box-in-windows-phone-7/
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Commented] (CB-486) navigator.notification.alert doesn not
show custom names for MessageBoxButton
Posted by "Filip Maj (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CB-486?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13262010#comment-13262010 ]
Filip Maj commented on CB-486:
------------------------------
This seems like a good candidate for a replacement for the stock MessageBox. Allows for deeper customization.
Also licensed as MSPL, which is compatible with APL 2.0.
Not sure how we should include it, though. Any ideas, Jesse? As a lib/dll or something? As just the source?
http://blogs.microsoft.co.il/blogs/tomershamam/archive/2010/10/19/windows-phone-7-custom-message-box.aspx
> navigator.notification.alert doesn not show custom names for MessageBoxButton
> -----------------------------------------------------------------------------
>
> Key: CB-486
> URL: https://issues.apache.org/jira/browse/CB-486
> Project: Apache Callback
> Issue Type: Bug
> Components: WP7
> Affects Versions: 1.6.0
> Environment: WP7 Emumlator
> WP7 Device LG
> Reporter: Laurens Van de Perre
> Assignee: Jesse MacFadyen
> Priority: Minor
> Fix For: 1.7.0
>
> Original Estimate: 24h
> Remaining Estimate: 24h
>
> Currently when calling in javascript:
> navigator.notification.alert("message", stopVibration, "title", 'buttontext');
> An alert box will pop up in WP7 but does not have the correct buttontext.
> This is due:
> "public void alert(string options)
> {
> Deployment.Current.Dispatcher.BeginInvoke(() =>
> {
> AlertOptions alertOpts = JSON.JsonHelper.Deserialize<AlertOptions>(options);
> MessageBoxResult res = MessageBox.Show(alertOpts.message, alertOpts.title,MessageBoxButton.OK);
> DispatchCommandResult(new PluginResult(PluginResult.Status.OK,(int)res));
> });
> }
> "
> A possible solution to solve this bug is to use a custom messageboxresult like:
> http://shareourideas.com/2011/03/05/custom-message-box-in-windows-phone-7/
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Commented] (CB-486) navigator.notification.alert doesn not
show custom names for MessageBoxButton
Posted by "Jesse MacFadyen (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CB-486?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13262015#comment-13262015 ]
Jesse MacFadyen commented on CB-486:
------------------------------------
It's a pretty small task to add the feature. Not at all worth
including another dll IMHO
> navigator.notification.alert doesn not show custom names for MessageBoxButton
> -----------------------------------------------------------------------------
>
> Key: CB-486
> URL: https://issues.apache.org/jira/browse/CB-486
> Project: Apache Callback
> Issue Type: Bug
> Components: WP7
> Affects Versions: 1.6.0
> Environment: WP7 Emumlator
> WP7 Device LG
> Reporter: Laurens Van de Perre
> Assignee: Jesse MacFadyen
> Priority: Minor
> Fix For: 1.7.0
>
> Original Estimate: 24h
> Remaining Estimate: 24h
>
> Currently when calling in javascript:
> navigator.notification.alert("message", stopVibration, "title", 'buttontext');
> An alert box will pop up in WP7 but does not have the correct buttontext.
> This is due:
> "public void alert(string options)
> {
> Deployment.Current.Dispatcher.BeginInvoke(() =>
> {
> AlertOptions alertOpts = JSON.JsonHelper.Deserialize<AlertOptions>(options);
> MessageBoxResult res = MessageBox.Show(alertOpts.message, alertOpts.title,MessageBoxButton.OK);
> DispatchCommandResult(new PluginResult(PluginResult.Status.OK,(int)res));
> });
> }
> "
> A possible solution to solve this bug is to use a custom messageboxresult like:
> http://shareourideas.com/2011/03/05/custom-message-box-in-windows-phone-7/
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Resolved] (CB-486) navigator.notification.alert doesn not
show custom names for MessageBoxButton
Posted by "Jesse MacFadyen (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CB-486?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Jesse MacFadyen resolved CB-486.
--------------------------------
Resolution: Fixed
Resolved in commit : 9e2c49deca8de5ef6df20ffc36c0a47e98fc48d3
> navigator.notification.alert doesn not show custom names for MessageBoxButton
> -----------------------------------------------------------------------------
>
> Key: CB-486
> URL: https://issues.apache.org/jira/browse/CB-486
> Project: Apache Callback
> Issue Type: Bug
> Components: WP7
> Affects Versions: 1.6.0
> Environment: WP7 Emumlator
> WP7 Device LG
> Reporter: Laurens Van de Perre
> Assignee: Jesse MacFadyen
> Priority: Minor
> Fix For: 1.7.0
>
> Original Estimate: 24h
> Remaining Estimate: 24h
>
> Currently when calling in javascript:
> navigator.notification.alert("message", stopVibration, "title", 'buttontext');
> An alert box will pop up in WP7 but does not have the correct buttontext.
> This is due:
> "public void alert(string options)
> {
> Deployment.Current.Dispatcher.BeginInvoke(() =>
> {
> AlertOptions alertOpts = JSON.JsonHelper.Deserialize<AlertOptions>(options);
> MessageBoxResult res = MessageBox.Show(alertOpts.message, alertOpts.title,MessageBoxButton.OK);
> DispatchCommandResult(new PluginResult(PluginResult.Status.OK,(int)res));
> });
> }
> "
> A possible solution to solve this bug is to use a custom messageboxresult like:
> http://shareourideas.com/2011/03/05/custom-message-box-in-windows-phone-7/
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira