Genie 7110 manual Identifying the Browser A Java, Genie Application Style Guide

Models: 7110

1 84
Download 84 pages 46.18 Kb
Page 79
Image 79
Identifying the Browser A

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")

February 2001

Genie Application Style Guide 75

Page 79
Image 79
Genie 7110 manual Identifying the Browser A Java, ElseIfInStruastring, Mitsu Response.Redirect/mitsu/index.wml Else