Alert Popup Not Working in Tizen TV 2.3 Version

Original Created Feb 16, 2017 | Regeneration Apr 22, 2026

I'm developing for Tizen TV and trying to display a popup message using alert("Invalid ID or Password.").

The alert works correctly in Tizen TV 2.4 version, but fails to display in version 2.3.

Has anyone encountered this same issue? Also, are there alternative methods to show popup messages in JavaScript without using external libraries?

Problem Understanding

The issue occurs when trying to use the JavaScript alert() function in Tizen TV 2.3, while it works fine in version 2.4. This suggests a compatibility issue with the alert functionality in older Tizen TV versions.

Solution Methods

  1. Use Tizen's Native Toast API: Tizen provides a native toast API that can be used as an alternative to JavaScript alerts. This is the recommended approach for Tizen applications.

  2. Custom HTML/CSS Popup: Create a custom popup using HTML and CSS that can be shown/hidden as needed.

  3. Lightweight Libraries: Consider using lightweight libraries specifically designed for Tizen if you need more complex popup functionality.

Code Examples

Using Tizen Toast API:

var toast = new tizen.Toast("Invalid ID or Password.", {
    duration: 3000  // Display for 3 seconds
});
toast.show();

Custom HTML Popup:

<div id="customPopup" style="display:none; position:fixed; top:50%; left:50%; transform:translate(-50%,-50%); background:white; padding:20px; border-radius:5px; box-shadow:0 0 10px rgba(0,0,0,0.5);">
    Invalid ID or Password.
    <button onclick="document.getElementById('customPopup').style.display='none'">OK</button>
</div>

<script>
function showPopup() {
    document.getElementById('customPopup').style.display = 'block';
}
</script>

Additional Tips

  • When using the Toast API, ensure you have the proper privileges declared in your config.xml file.
  • For custom popups, consider accessibility features like keyboard navigation and screen reader compatibility.
  • Test your solution across different Tizen TV versions to ensure compatibility.

Customize your cookie preferences

You can enable or disable non-essential cookies. Essential cookies are always on to ensure the site works properly and to keep you signed in.

Necessary

These cookies are necessary for the website to function properly and cannot be switched off. They help with things like logging in and setting your privacy preferences.

Always on

Analytics

These cookies help us improve the site by tracking which pages are most popular and how visitors move around the site.

Enable analytics cookies
Public Forum Public Forum
Employees only. Please sign in with your company account.