khang-nd / 7.css

A JS-independent, tree-shakeable CSS framework for building faithful recreations of the Windows 7 UI.

Home Page:https://khang-nd.github.io/7.css/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

MessageBox

HayderYousifIbrahim opened this issue · comments

how to create MessageBox ? I tried creating Dialog box but I couldn't show the dialog using js

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.

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>
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.