Forum closed. New forum available at http://community.wymeditor.org/

Browser detection

Discuss features, code, contributions, ideas, suggestions, ...
For bugs, patches and feature requests, please post on the Trac:
http://trac.wymeditor.org/

Browser detection

Postby Fred on Fri Dec 08, 2006 9:51 am

It is realy excellent editor, but maybe there should be made some change in browser.js, because it is not very practical to sniff them this way. When you replace whole script with this three lines

var d=document;
var moz=(d.designMode&&!d.uniqueID); //op9+ and gecko
var ie=(d.uniqueID&&!d.childNodes); //ie and !ie4

someone probably discover reason why it is working in Opera just partly.
Function iframe() in wym.js seems to me better to be at start of wym.js, when I replace it (and remove overflow hidden at toolbar), it starts to work even in very old Firebird 0.7 (now Firefox).
Fred
 
Posts: 1
Joined: Thu Dec 07, 2006 6:43 pm
Location: Czech republic

Re: Browser detection

Postby jfh on Tue Dec 12, 2006 10:05 pm

Fred wrote:It is realy excellent editor, but maybe there should be made some change in browser.js, because it is not very practical to sniff them this way. When you replace whole script with this three lines

var d=document;
var moz=(d.designMode&&!d.uniqueID); //op9+ and gecko
var ie=(d.uniqueID&&!d.childNodes); //ie and !ie4

OK, thanks.
Fred wrote:someone probably discover reason why it is working in Opera just partly.
Function iframe() in wym.js seems to me better to be at start of wym.js, when I replace it (and remove overflow hidden at toolbar), it starts to work even in very old Firebird 0.7 (now Firefox).

Could you please develop what you mean?
Thanks,
User avatar
jfh
Site Admin
 
Posts: 370
Joined: Sat Sep 23, 2006 8:43 pm
Location: Belgium


Return to Developers

Who is online

Users browsing this forum: No registered users and 1 guest