[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: [ic] RE: UI browser detection bug


 

> -----Original Message-----
> From: suppressed 
> [mailto:suppressed On Behalf 
> Of Kevin Walsh
> Sent: 2006 April 10 -- Monday 4:47 PM
> To: suppressed
> Subject: Re: [ic] RE: UI browser detection bug
> 
> "Daniel Davenport" <suppressed> 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.

I used your suggestion, and i don't get snubbed by the menu editor
anymore.  :)
Might consider changing the .* in the regexp to \s*, though...i'm not up
on my browser strings, but it seems to me that the current regex would
allow for something like

	Mozilla/4.0 (compatible; MSIE 5.0; Windows 95;
MyLilSpywarePlugin/6.0)

:)
 
--
Daniel Davenport
New Age Digital
http://www.newagedigital.com

_______________________________________________
interchange-users mailing list
suppressed
http://www.icdevgroup.org/mailman/listinfo/interchange-users


Mail converted by mhonarc 2.6.15
This archive provided courtesy of JSW4.NET, Internet Hosting Services for Small Business.