Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
<HTML>
<HEAD>
<%
Dim SQL, rs, heightVal, widthVal
SQL = "SELECT width, eight FROM sizeTable"
Set rs = Conn.execute (SQL)
'Conn is a valid connexion to your db
'that you openned before
if not rs.eof Then
heightVal = rs.fields("eight")
widthVal = rs.fields("width")
End if
rs.close
%>
<SCRIPT language="javascript">
function init() {
var o_Tmp = document.getElementById("hid_height");
var h = o_Tmp.value;
o_Tmp = document.getElementById("hid_width");
var w = o_Tmp.value;
o_Tmp = document.getElementById("div2Resize");
o_Tmp.style.height = h + "px"
o_Tmp.style.width = w + "px"
}
</SCRIPT>
</HEAD>
<BODY onLoad="init()">
<Input type="hidden" id="hid_height" value="<%=heightVal%>"/>
<Input type="hidden" id="hid_width" value="<%=widthVal%>"/>
<DIV id="div2Resize"> </div>
</BODY>
</HTML>