[ic] RE: UI browser detection bug

Kevin Walsh kevin at cursor.biz
Mon Apr 10 16:46:49 EDT 2006


"Daniel Davenport" <DDavenport at newagedigital.com> wrote:
> > When i try to use the Table Editor or Menu Editor, i get a 
> > message that says
> > 
> > 	Modern browser like Mozilla or MSIE 5 required for page accessed
> > 
> > which is a bit strange, considering i'm using IE7 beta 2 at 
> > the moment.
> 
> Correction: the table editor is fine.  So far, i'm only having problems
> with the menu editor.  Haven't looked at other js-heavy pages, as i
> don't use them and had therefore removed them from the menus.
> 
Well, it did ask for a modern browser, rather than an expensive update
to a legacy browser. ;-)

Edit your "lib/UI/vars/UI_STD_HEAD" file and find the following lines:

    my $regex = q{__MV_DHTML_BROWSER__}
        || 'MSIE.*5.5|MSIE.*6|Mozilla\W*5|Mozilla.*Gecko';

Change the above to allow your browser version to match, perhaps like
this:

    my $regex = q{__MV_DHTML_BROWSER__}
        || 'MSIE.*5.5|MSIE.*[67]|Mozilla\W*5|Mozilla.*Gecko';

If you don't want to edit that file then you can set a "MV_DHTML_BROWSER"
Variable with the above regex value instead.

If you let me know what works, I'll update the version in CVS.

-- 
   _/   _/  _/_/_/_/  _/    _/  _/_/_/  _/    _/
  _/_/_/   _/_/      _/    _/    _/    _/_/  _/   K e v i n   W a l s h
 _/ _/    _/          _/ _/     _/    _/  _/_/    kevin at cursor.biz
_/   _/  _/_/_/_/      _/    _/_/_/  _/    _/


More information about the interchange-users mailing list