incubator-callback-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Laurens Van de Perre (Created) (JIRA)" <j...@apache.org>
Subject [jira] [Created] (CB-486) navigator.notification.alert doesn not show custom names for MessageBoxButton
Date Thu, 12 Apr 2012 10:55:16 GMT
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

        

Mime
View raw message