0

alertDialog - Extra button

I am trying to implement an Alert Dialog in my program. I have included the code I am using below. For some reason when I run my program and initiate the action to bring up the alertDialog I see THREE buttons instead of two. 1- remove location, 2 - Cancel, 3 - is just blank. I can not find out the source of this blank button. If I add an additional button the blank button just gets moved down.

I'm looking for ideas thanks!



CODE
PROG.alertDialog({
title: $_('remove_location'),
message: 'Are you sure you want to remove "' + this.locationName + '"?',
buttons: [
{
label: $_('remove_location'),
callback: function(config) {
// STUFF DONE HERE
}
},
{
label: 'Cancel'
}
]
}).fire();

by
4 Replies
  • Hi scottagarman,
    I tried copying your code and ran application, and it rendered 2buttons.
    Hihi, sorry b/c can't find the reason for your case, but i think your code is right.
    0
  • I tried it as well and don't see the issue. Not that this is the issue, but you should definitely start working on moving to the 1.1 framework. If you need assistance in porting your existing code, please let me know.
    0
  • QUOTE (Jeremy Johnstone @ Mar 25 2009, 03:24 PM) <{POST_SNAPBACK}>
    I tried it as well and don't see the issue. Not that this is the issue, but you should definitely start working on moving to the 1.1 framework. If you need assistance in porting your existing code, please let me know.


    Might be a bit late, but I believe this would show up before if you had extended the Array prototype. This because the buttons were probably produced in a foreach-loop which also included prototye extensions as elements in the array. AFAIK, this issue is not present in the current version.
    0
  • QUOTE (nbjorken @ Apr 16 2009, 02:55 AM) <{POST_SNAPBACK}>
    Might be a bit late, but I believe this would show up before if you had extended the Array prototype. This because the buttons were probably produced in a foreach-loop which also included prototye extensions as elements in the array. AFAIK, this issue is not present in the current version.


    I'm guessing thats correct. I think at one point we were extending Array, but we definitely took that out so maybe it's just an issue with an out of date WDK.

    -Jeremy
    0

Recent Posts

in General - Yahoo! TV Widgets