QNimate

  • CoursesVideos
  • WP PremiumPlugins
  • DemosLab
  • Home
  • QIdea
  • QTrack
Home Carbon Ads Displaying Alert Box In Intel XDK

Displaying Alert Box In Intel XDK

This post is a part 17 of Intel XDK Complete Tutorial post series.

A Intel XDK alert box is a popup box that is used to inform user about something. Alert box has only one button and when its clicked the alert box closes. There is no event fired when the alert box is closed by the user.

With just one line of code you can display alert box in Intel XDK

//Parameter:
//1. Message to be shown in the box
//2. Title of alert box
//3. Button text
intel.xdk.notification.alert("This is the message", "Title", "Button Text");

When the button is clicked the alert box is closed.

Nov 9, 2014Narayan Prusty
Publishing Intel XDK App to App StoreDisplaying Confirmation Box In Intel XDK
Comments: 4
  1. Yonko
    5 years ago

    I don’t understand where to out this code. It doesn’t work

    ReplyCancel
  2. mojo
    7 years ago

    where i can put this code >> whish file can i edit on it with that code

    please HELP ME :-(

    ReplyCancel
    • Ridho
      7 years ago

      in app.js

      ReplyCancel
      • mojo
        7 years ago

        thankx.

        added that code in user.script.js

        ReplyCancel

Leave a Reply Cancel reply

To create code blocks or other preformatted text, indent by four spaces:

    This will be displayed in a monospaced font. The first four
    spaces will be stripped off, but all other whitespace
    will be preserved.
    
    Markdown is turned off in code blocks:
     [This is not a link](http://example.com)

To create not a block, but an inline code span, use backticks:

Here is some inline `code`.

For more help see http://daringfireball.net/projects/markdown/syntax

Narayan Prusty

I am a software engineer specialising in Blockchain, DevOps and Go/JavaScript. This is my personal blog where I write about things that I learn and feel interesting to share.

7 years ago 5 Comments Cordova
Share this
0
GooglePlus
0
Facebook
0
Twitter
0
Linkedin
Related Articles
  • Displaying Confirmation Box In Intel XDK
  • Preventing Device From Sleeping Using Intel XDK
  • Intercepting Android Back Button In Intel XDK
  • Launch Browser Inside Intel XDK App
  • Sending SMS using Intel XDK
Our Sponsor
My Books

2014 - 2015 © QNimate
All tutorials MIT license