Error while loading webpage

Last Reply 9 days ago By dharmendr

Posted 9 days ago

  

Severity    Code    Description    Project    File    Line    Suppression State
Warning        Validation (XHTML5): This attribute name must be followed by an equal (=) sign and a value. If the value is in quotation marks, the quotation marks must match.    WebSite2    C:\Users\Makumbi\Documents\Visual Studio 2015\WebSites\WebSite2\newsamplet.aspx    8    

Severity    Code    Description    Project    File    Line    Suppression State
Warning        Validation (XHTML5): Attribute 'crossorigin' is not a valid attribute of element 'script'.    WebSite2    C:\Users\Makumbi\Documents\Visual Studio 2015\WebSites\WebSite2\newsamplet.aspx    8 

 

Severity	Code	Description	Project	File	Line	Suppression State
Warning		Validation (XHTML5): Attribute 'height' is not a valid attribute of element 'div'.	WebSite2	C:\Users\Makumbi\Documents\Visual Studio 2015\WebSites\WebSite2\Videoconf.aspx	39	

 

 

<%@ Page Language="VB" AutoEventWireup="false" CodeFile="Videoconf.aspx.vb" Inherits="Videoconf" %>

<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
</head>
<body>
    <form id="form1" runat="server">
    <div>
    @{
    ViewBag.Title = "Home Page";
    var daily = "@daily";
}

@section Styles{
   

    <style>
        body {
            font-family: Karla, sans-serif;
        }
        .auto-style1 {
            height: 400px;
        }
    </style>
}
<h1>
    Daily.Co Video Call
</h1>

<div class="row" style="margin-bottom:20px;">
    <button class="btn btn-primary" style="float:left;margin-right:20px;" onclick="mtgJoin()">Join meeting</button>
    <button class="btn btn-danger" style="float:left;" onclick="mtgLeave()">Leave meeting</button>
</div>

<div class="row">
    <div id="mtg-frame" height="400" style="border-style: none; border-color: inherit; border-width: 0; background-color:lightgrey;" class="auto-style1"></div>
</div>

<script>
    function mtgJoin() {
        let callUrl = 'https://kjs.daily.co/makumbi';
        if (!window.frame) {
            window.inp = document.getElementById('mtg-link');
            window.frame = window.DailyIframe.createFrame(
                document.getElementById('mtg-frame')
            );
        }
        window.frame.join({ url: callUrl });
    }

    function mtgLeave() {
        window.frame.leave();
    }
</script>

    </div>
    </form>
</body>
</html>

 

You are viewing reply posted by: dharmendr 9 days ago.
Posted 9 days ago
makumbi says:
<div id="mtg-frame" height="400" style="border-style: none; border-color: inherit; border-width: 0; background-color:lightgrey;" class="auto-style1"></div>

height is not a valid attribute of div element. You need to set the height in style attribute. 

<div id="mtg-frame" style="border-style: none; border-color: inherit;
    border-width: 0; background-color: lightgrey;height:400;" class="auto-style1">
</div>

 

makumbi says:
This attribute name must be followed by an equal (=) sign and a value

Some where you are using name attribute in your html. Make sure that the name attribute must have equal sign with value and value should be in quotation marks and the quotation marks must match.

Example

<input type="text" name="txtName" value="" />

Here the name attrubute has the value txtName and the quotation marks matches.