Notifies for non-javascript browsers [DONE]

old granted and denied feature requests

Moderator: AniDB

Locked
pelican
AniDB Staff
Posts: 234
Joined: Wed Aug 11, 2004 11:19 pm

Notifies for non-javascript browsers [DONE]

Post by pelican » Mon Aug 16, 2004 3:25 pm

For people with javascript browsers, I can understand that the particular features of a javascript window are desirable, but with a proper href and target="_blank" in the <a> element, notifies could also work for those who have either disabled scripting or use a browser without that functionality. The `return 0;' statement that is already present in the action script should, apparantly, make this not affect javascript-enabled browsers.

pelican
AniDB Staff
Posts: 234
Joined: Wed Aug 11, 2004 11:19 pm

Re: Notifies for non-javascript browsers

Post by pelican » Thu Aug 19, 2004 4:02 pm

Actually, maybe I didn't mean notifies; it might apply to them too, but I think I actually meant group for anime votes and comments...

User avatar
exp
Site Admin
Posts: 2438
Joined: Tue Oct 01, 2002 9:42 pm
Location: Nowhere

Post by exp » Wed Aug 25, 2004 5:45 pm

IIRC opera does not support this and would open any other href destination but # in the main window, disregarding the return 0.

BYe!
EXP

User avatar
Elias
Posts: 242
Joined: Tue Feb 17, 2004 4:55 pm

Post by Elias » Wed Aug 25, 2004 7:16 pm

AFAIK (i had just made simple test page to be sure and it worked) target="_blank" works with Opera as it should.

User avatar
exp
Site Admin
Posts: 2438
Joined: Tue Oct 01, 2002 9:42 pm
Location: Nowhere

Post by exp » Wed Aug 25, 2004 8:35 pm

please post the example code here.
i might have omitted the target="_blank" when testing this, but i don't see why that would solve the problem.

BYe!
EXP

pelican
AniDB Staff
Posts: 234
Joined: Wed Aug 11, 2004 11:19 pm

Post by pelican » Thu Aug 26, 2004 2:30 am

exp wrote:IIRC opera does not support this and would open any other href destination but # in the main window, disregarding the return 0.
If you're worried about that, a plain link with a target can go in a <noscript> element, with the current code being outputted by a small piece of script preceeding it. This isn't quite as simple, but still entirely trivial.

Elberet
Posts: 778
Joined: Sat Jul 19, 2003 8:14 pm

Post by Elberet » Thu Aug 26, 2004 12:12 pm

And then there's the problem that Opera conceils itself by default, pretending to be Internet Exploder - so you can't really distinguish IE and Opera easily in JavaScript.

User avatar
Elias
Posts: 242
Joined: Tue Feb 17, 2004 4:55 pm

Post by Elias » Thu Aug 26, 2004 2:18 pm

There isn't a problem with generic code, Opera not only distinguish IE, but also works like IE. But if it is really needed, than it still easy to check,
navigator.userAgent contain itself somewhere Opera regardless of setting.
If identify as IE is set this property is something like:
'Mozilla/4.0 (compatible; MSIE 6.0; Windows ME) Opera 7.51 [en]'
if identify as Mozilla:
Mozilla/5.0 (Windows ME; U) Opera 7.51 [en]
if identify as Opera
'Opera/7.51 (Windows ME; U) [en]'

Elberet
Posts: 778
Joined: Sat Jul 19, 2003 8:14 pm

Post by Elberet » Thu Aug 26, 2004 3:30 pm

Then that must've been changed very recently. IIRC, some time ago, Opera would identify itself as Internet Exploder both in navigator.UserAgent and in the similar HTTP request header.

Locked