Login

  • Sign in with Intersoft Social ID
  • Sign in with Intersoft ID (Developer Network)
  • Sign in with Google ID
  • Sign in with Open ID. Click for more options.
Intersoft Social ID
Password
Intersoft Latest Learn More

Latest Development Blogs

Blog RSS
Loading
Retrieving News

Forum                   Topics  Post

WebMenuBar if confirm click then action

2 replies. Last post: December 12, 2011 6:49 PM by Adam Potomski
Rate this topic:
Average rating: Not rated yet.
Tags :
  • (None)

Hi 


I have problem with WebMenu. I add item with tag "close". i want to write function that if the user click this buton i show confirm dialog and if true i close the application i other case i back without action. I have write function that works when i open the target location but i can't cancel click action. How can i this doing? Behind my function.


function MainMenu(Param2) {
    switch (Param2.Name) {
        case "start":
            window.location = "Default.aspx";
            break;
        case "close":
            if (confirm("Are you sure? ")) {
                window.close();
                return true;
            } ;
            Param2.Pushed = false;
            break;
    }
}

Thank you for help

regards Adam

All times are GMT -5. The time now is 6:48 AM.