MessageBox
HayderYousifIbrahim opened this issue · comments
HayderYousifIbrahim commented
how to create MessageBox ? I tried creating Dialog box but I couldn't show the dialog using js
Khang commented
Could you please share your attempted code? On another note, the Dialog Box component is just a trick without JS, you would have to handle the proper JS logic for that by yourself.
HayderYousifIbrahim commented
thank you for your replay
this code is part of login php page
$q = $pdo->query($sql);
$q->setFetchMode(PDO::FETCH_ASSOC);
$row = $q->fetch();
if(empty($row)){
?>
<script>
//alert('Invalid user name or password');
var x = document.getElementById("invalidUserDialog");
if (x.style.display === "none") {
x.style.display = "block";
}
</script>
Khang commented
Yep, I figured. This issue is not related to this library, you probably want to seek help related to JS somewhere else, sorry but I cannot help.