Genie 7110 Garage Door Opener User Manual


 
February 2001 Genie Application Style Guide 75
Identifying the Browser
A
Java
if ((ua.indexOf("UP.B") != -1)) || (ua.indexOf("UP/") != -1)){
res.setHeader(res.SC_MOVED_TEMPORARILY);
res.setHeader("Location", "/opwv/index.wml");
}
elseif(ua.indexOf("Mitsu") != -1){
res.setHeader(res.SC_MOVED_TEMPORARILY);
res.setHeader("Location", "/mitsu/index.wml");
}
else{
res.setHeader(res.SC_MOVED_TEMPORARILY);
res.setHeader("Location", "/nokia/index.wml");
};
ASP
If((InStr(uastring, "UP.B")) || (InStr(uastring, "UP/")))
Response.Redirect("/opwv/index.wml")
ElseIf(InStr(uastring, "Mitsu"))
Response.Redirect("/mitsu/index.wml")
Else
Response.Redirect("/nokia/index.wml")