Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

DTC support in IE 6/Netscape 6

Browser Support

DTC support in IE 6/Netscape 6

by  MerlinB  Posted    (Edited  )
Most DTC's check the global page-object value
thisPage.isDHTMLBrowser()
to see if the users' browser supports DHTML.

This function is defined in _ScriptLibrary/PM.ASP.

Unfortunately, it was set-up before IE 6 and Netscape 6 - so these are seen as NON-DHTML browsers!

You need to adjust the script in PM.ASP to provide the required browser support:

function _SOM_isDHTMLBrowser()
{
if (typeof(this._isDHTMLBrowser) == 'undefined')
{
this._isDHTMLBrowser = false;
var userAgent = String(Request.ServerVariables('HTTP_USER_AGENT'));
if (userAgent.indexOf('MSIE 4.') != -1 ||
userAgent.indexOf('MSIE 5.') != -1 ||
userAgent.indexOf('MSIE 6.') != -1 ||
userAgent.indexOf('Mozilla/5') != -1 )
this._isDHTMLBrowser = true;
}
return this._isDHTMLBrowser;
}

Of course, you could replace this with more advanced techniques to determine the browser capabilities (e.g. browcap.dll).

Or you could reverse the logic - and assume DHTML unless it is Netscape 4 or IE 3 or less.
Register to rate this FAQ  : BAD 1 2 3 4 5 6 7 8 9 10 GOOD
Please Note: 1 is Bad, 10 is Good :-)

Part and Inventory Search

Back
Top