LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > LinuxQuestions.org > LQ Suggestions & Feedback
User Name
Password
LQ Suggestions & Feedback Do you have a suggestion for this site or an idea that will make the site better? This forum is for you.
PLEASE READ THIS FORUM - Information and status updates will also be posted here.

Notices


Reply
  Search this Thread
Old 10-23-2009, 01:02 AM   #1
raskin
Senior Member
 
Registered: Sep 2005
Location: France
Distribution: approximately NixOS (http://nixos.org)
Posts: 1,900

Rep: Reputation: 69
LQ Javascript menus not working non-Gecko browsers


I use some obscure WebKit-based browser (uzbl) as my primary browser. I noted that JS menus (like Thread Tools) don't work correctly with it. More specifically, all webkit-based browsers and wine-run IE6 complain about undefined reference _gat.

And without JS the Thread Tools do not work at all (they used to work OK). That means that not only Midori users are locked out of part of fuctionality, but the users who are caught in the middle of X server configuration can't comfortably use ELinks/Lynx/Links in a spare console to search (forum-local search menu is also broken without JS) for the recommendations, which seems somewhat wrong.

If there is a way to fix it without big effort (maybe board engine just needs to be updated/reconfigured), I would be grateful if it got fixed.
 
Old 10-23-2009, 09:34 AM   #2
jeremy
root
 
Registered: Jun 2000
Distribution: Debian, Red Hat, Slackware, Fedora, Ubuntu
Posts: 13,602

Rep: Reputation: 4084Reputation: 4084Reputation: 4084Reputation: 4084Reputation: 4084Reputation: 4084Reputation: 4084Reputation: 4084Reputation: 4084Reputation: 4084Reputation: 4084
All JS items (including Thread Tools) degrade gracefully if Javascript isn't detected. If there's a case where it's detected but the implementation is broken, I'm not sure there's much we can do.

--jeremy
 
Old 10-23-2009, 04:43 PM   #3
raskin
Senior Member
 
Registered: Sep 2005
Location: France
Distribution: approximately NixOS (http://nixos.org)
Posts: 1,900

Original Poster
Rep: Reputation: 69
There is a lot that can be done.. I investigated a bit.

Problem 1.
JS items do not simply detect JS. JS items do not detect JS and AJAX. They detect JS and user-agent deemed to be compatible. So ELinks, Lynx and Uzbl get no-JS version of thread tools. Yes, adding "Gecko compatible" to useragent helps, but is it really a good idea to require this?

Problem 2.
You set <base href=> in <head>. This causes a problem with href="#threadtools" link. RFC explains that this is a link to fragment called #threadtools in the document at the base URL. Firefox behaves in another way, and works fine, but it seems to be in violation of RFC. So the current behavior relies on RFC violaion by the browser.
 
Old 10-23-2009, 05:16 PM   #4
jeremy
root
 
Registered: Jun 2000
Distribution: Debian, Red Hat, Slackware, Fedora, Ubuntu
Posts: 13,602

Rep: Reputation: 4084Reputation: 4084Reputation: 4084Reputation: 4084Reputation: 4084Reputation: 4084Reputation: 4084Reputation: 4084Reputation: 4084Reputation: 4084Reputation: 4084
Problem 2 would be a bug, put I don't see an href to #threadtools that doesn't include a full URI. Where are you seeing this?

--jeremy
 
Old 10-23-2009, 05:18 PM   #5
raskin
Senior Member
 
Registered: Sep 2005
Location: France
Distribution: approximately NixOS (http://nixos.org)
Posts: 1,900

Original Poster
Rep: Reputation: 69
And isn't problem 1 also a bug (although a lesser one) in modern days of spawning browsers?
 
Old 10-23-2009, 05:22 PM   #6
jeremy
root
 
Registered: Jun 2000
Distribution: Debian, Red Hat, Slackware, Fedora, Ubuntu
Posts: 13,602

Rep: Reputation: 4084Reputation: 4084Reputation: 4084Reputation: 4084Reputation: 4084Reputation: 4084Reputation: 4084Reputation: 4084Reputation: 4084Reputation: 4084Reputation: 4084
#1 is indeed the intended functionality. I'm not sure what you mean by "spawning browsers". The site works as expected for me in lynx.

--jeremy
 
Old 10-23-2009, 05:30 PM   #7
raskin
Senior Member
 
Registered: Sep 2005
Location: France
Distribution: approximately NixOS (http://nixos.org)
Posts: 1,900

Original Poster
Rep: Reputation: 69
I change browser identification string. Functionality changes. Nowadays you can never be sure what useragent string really means. On the one hand, there are numerous UIs around rendering engines, and these useragent strings may be unrecognized. On the other hand, sometimes browsers actively lie to match a known useragent filter. I guess ignoring useragent string altogether would be better.
 
Old 10-24-2009, 07:41 AM   #8
DragonSlayer48DX
Registered User
 
Registered: Dec 2006
Posts: 1,454
Blog Entries: 1

Rep: Reputation: 75
http://webaim.org/blog/user-agent-string-history/

http://www.junkbusters.com/cgi-bin/privacy
 
Old 10-30-2009, 01:56 AM   #9
raskin
Senior Member
 
Registered: Sep 2005
Location: France
Distribution: approximately NixOS (http://nixos.org)
Posts: 1,900

Original Poster
Rep: Reputation: 69
By the way, thanks for fixing #-fragment-links. Much nicer for keyboard-navigation now.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Javascript and diffirent browsers juhasamy Linux - General 2 11-18-2006 02:01 AM
Gecko based browsers crashing fannymites Linux - Software 4 04-03-2006 12:09 PM
expandIt function in JavaScript: COOL menus xbaez Programming 0 02-13-2005 06:36 PM
Link/Applet not working in all Linux browsers, but working in IE MasterPatricko Linux - Software 6 09-04-2004 03:39 AM
Browsers not working fuseblower Linux - Newbie 2 01-12-2003 01:33 PM

LinuxQuestions.org > Forums > LinuxQuestions.org > LQ Suggestions & Feedback

All times are GMT -5. The time now is 12:20 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration