Print Page | Close Window

Error in <head> for mobile?

Printed From: Web Wiz Forums
Category: Web Wiz Web App Support Forums
Forum Name: Web Wiz Forums
Forum Description: Support forum for Web Wiz Forums application.
URL: https://forums.webwiz.net/forum_posts.asp?TID=29125
Printed Date: 01 April 2026 at 12:39pm
Software Version: Web Wiz Forums 12.08 - https://www.webwizforums.com


Topic: Error in <head> for mobile?
Posted By: Roberto Randall
Subject: Error in <head> for mobile?
Date Posted: 14 February 2011 at 3:21pm
Is this correct?
 
 
'Use different doctype for mobile browsers
If blnMobileBrowser Then
 Response.Write("<!DOCTYPE html PUBLIC ""-//WAPFORUM//DTD XHTML Mobile 1.2//EN"" "" http://www.openmobilealliance.org/tech/DTD/xhtml-mobile12.dtd" rel="nofollow - http://www.openmobilealliance.org/tech/DTD/xhtml-mobile12.dtd "">" & _
  vbCrLf & "<html xmlns="" http://www.w3.org/1999/xhtml" rel="nofollow - http://www.w3.org/1999/xhtml "" dir=""" &  strTextDirection & """ xml:lang=""en"">")
'Else standrad XHTML doctype
Else
%><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" " http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd" rel="nofollow - http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd ">
<html xmlns=" http://www.w3.org/1999/xhtml" rel="nofollow - http://www.w3.org/1999/xhtml " dir="<% = strTextDirection %>" lang="en">
<head><%
End If
%>
 
Or this is correct?
 
 
'Use different doctype for mobile browsers
If blnMobileBrowser Then
 Response.Write("<!DOCTYPE html PUBLIC ""-//WAPFORUM//DTD XHTML Mobile 1.2//EN"" "" http://www.openmobilealliance.org/tech/DTD/xhtml-mobile12.dtd" rel="nofollow - http://www.openmobilealliance.org/tech/DTD/xhtml-mobile12.dtd "">" & _
  vbCrLf & "<html xmlns="" http://www.w3.org/1999/xhtml" rel="nofollow - http://www.w3.org/1999/xhtml "" dir=""" &  strTextDirection & """ xml:lang=""en"">")
'Else standrad XHTML doctype
Else
%><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" " http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd" rel="nofollow - http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd ">
<html xmlns=" http://www.w3.org/1999/xhtml" rel="nofollow - http://www.w3.org/1999/xhtml " dir="<% = strTextDirection %>" lang="en">
<%
End If
%><head>
 
 
 
The first is what browser_page_encoding_inc.asp.



Replies:
Posted By: WebWiz-Bruce
Date Posted: 15 February 2011 at 12:10pm
The second one is correct.

Will fix this for the next release.


-------------
https://www.webwiz.net/web-wiz-forums/forum-hosting.htm" rel="nofollow - Web Wiz Forums Hosting
https://www.webwiz.net/web-hosting/windows-web-hosting.htm" rel="nofollow - ASP.NET Web Hosting



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.08 - https://www.webwizforums.com
Copyright ©2001-2026 Web Wiz Ltd. - https://www.webwiz.net