25 May '13 - 17:38 *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
 
   Home   Help Search Login Register  
Pages: 1 2 [All]
  Reply  |  Print  
Author Topic: Focus / scroll issue on the formum / url rewriting  (Read 14100 times)
jeroenp
Posts: 93


« on: 13 Dec '06 - 14:20 »
Reply with quoteQuote

A few comments on the forum (all when using IE6 fully patched) that I'd like to be solved:

- often it is impossible to scroll the messages by using the keyboard alone (PgUp/PgDn)
- I think it has to do with the focus not being on the right html control, as the tab-keys sometimes malfunction too
- the forum (actually the whole) site does url-rewriting, which makes it very hard to keep favourites to interesting topics

Regards,

--jeroen
Logged
Ian @ un4seen
Administrator
Posts: 15276


« Reply #1 on: 14 Dec '06 - 16:16 »
Reply with quoteQuote

- often it is impossible to scroll the messages by using the keyboard alone (PgUp/PgDn)
- I think it has to do with the focus not being on the right html control, as the tab-keys sometimes malfunction too

If the focus isn't on the main frame, you should be able to get there if you "tab" enough times. Or you could just click somewhere in the frame Smiley

- the forum (actually the whole) site does url-rewriting, which makes it very hard to keep favourites to interesting topics

I'm not sure about IE6, but in IE7 at least, you can bookmark a page by right-clicking in the main frame and selecting "Add to favourites".
Logged
jeroenp
Posts: 93


« Reply #2 on: 14 Dec '06 - 21:42 »
Reply with quoteQuote

- often it is impossible to scroll the messages by using the keyboard alone (PgUp/PgDn)
- I think it has to do with the focus not being on the right html control, as the tab-keys sometimes malfunction too

If the focus isn't on the main frame, you should be able to get there if you "tab" enough times. Or you could just click somewhere in the frame Smiley

This doesn't help.
Scrolling with the the scroll option of the mouse (either wheel or middle button) usually doesn't work either. Scrolling only works with the scroll bars.

- the forum (actually the whole) site does url-rewriting, which makes it very hard to keep favourites to interesting topics

I'm not sure about IE6, but in IE7 at least, you can bookmark a page by right-clicking in the main frame and selecting "Add to favourites".

I have tried IE7 and decided to stay with IE6 until they fix the keyboard handling.
Logged
Zarggg
Posts: 1239


« Reply #3 on: 15 Dec '06 - 03:58 »
Reply with quoteQuote

Scrolling with mousewheel works fine for me on this forum. What browser are you using?
Logged
Jace
Posts: 774


« Reply #4 on: 15 Dec '06 - 04:38 »
Reply with quoteQuote

(all when using IE6 fully patched)
Wink
Logged
Torkell
Posts: 1154


« Reply #5 on: 15 Dec '06 - 12:52 »
Reply with quoteQuote

What version of Windows? IE 6 is significantly different between Win2k and WinXP.
Logged
Ian @ un4seen
Administrator
Posts: 15276


« Reply #6 on: 15 Dec '06 - 16:19 »
Reply with quoteQuote

If the focus isn't on the main frame, you should be able to get there if you "tab" enough times. Or you could just click somewhere in the frame Smiley

This doesn't help.
Scrolling with the the scroll option of the mouse (either wheel or middle button) usually doesn't work either. Scrolling only works with the scroll bars.

That's strange. I just tried on IE6, and both the "tab" key and clicking in the frame gave it focus. And, once the frame had focus, scrolling it with keyboard and mouse-wheel worked fine. In fact, the mouse-wheel scrolling worked fine even when the frame didn't have focus. I don't know, but maybe some "special" keyboard/mouse drivers could be causing your troubles?

Incidentally, the right-click "Add to favourites" thing was also supported and working fine.
Logged
jeroenp
Posts: 93


« Reply #7 on: 27 Dec '06 - 08:49 »
Reply with quoteQuote

If the focus isn't on the main frame, you should be able to get there if you "tab" enough times. Or you could just click somewhere in the frame Smiley

This doesn't help.
Scrolling with the the scroll option of the mouse (either wheel or middle button) usually doesn't work either. Scrolling only works with the scroll bars.

That's strange. I just tried on IE6, and both the "tab" key and clicking in the frame gave it focus. And, once the frame had focus, scrolling it with keyboard and mouse-wheel worked fine. In fact, the mouse-wheel scrolling worked fine even when the frame didn't have focus. I don't know, but maybe some "special" keyboard/mouse drivers could be causing your troubles?

I have been experimenting the last weeks to see when it works and when not. Usually (not not always) it fails in IE6 on XPSP2EN when:
- following links by shift-clicking
- following search results from search engines
Both of these perform url-rewriting, and I think this is the main cause of the problem.

Which brings me to an important point of my initial post: url-rewriting.
Why is this happening?
Or more specifically: what on earth makes "http://www.un4seen.com/" more important to appear on the address bar than the url of the page you are actually viewing?

Incidentally, the right-click "Add to favourites" thing was also supported and working fine.

Actually, this is the thing that consistently works.
However, it forces me to use the mouse to add favourites in stead of using my keyboard.
It thereby hinders people with disabilities, probably violating a lot of rules about good design
Note that some governments have actually formalized these rules, like the US Section 508 (http://en.wikipedia.org/wiki/Section_508) and the German BITV (http://de.wikipedia.org/wiki/BITV).

So please refrain from using the url-rewriting in its current form.

Thanks in advance,

--jeroen
Logged
Tsorovan
Posts: 1244


« Reply #8 on: 27 Dec '06 - 10:15 »
Reply with quoteQuote

URL-rewriting can't possibly be the correct term here... you mean frames.
We've been complaining about frames here too, but it is what it is... at least until there's a redesign.
Logged
Zarggg
Posts: 1239


« Reply #9 on: 30 Dec '06 - 22:21 »
Reply with quoteQuote

The frames could easily be emulated with a well-designed stylesheet using DIVs. Wink
Logged
Tsorovan
Posts: 1244


« Reply #10 on: 30 Dec '06 - 23:55 »
Reply with quoteQuote

Probably not going to work with this forum software, at least not OotB.
Also, the menu would scroll, which Ian doesn't favour. Unless you had some nasty javascript thingy repositioning it for you.
Logged
Jace
Posts: 774


« Reply #11 on: 31 Dec '06 - 09:10 »
Reply with quoteQuote

But you can use CSS to keep it in place. Even with IE. Grin
Logged
Torkell
Posts: 1154


« Reply #12 on: 31 Dec '06 - 12:51 »
Reply with quoteQuote

IFRAME tags, perhaps?

...

I'll just get my coat, shall I?
Logged
Tsorovan
Posts: 1244


« Reply #13 on: 31 Dec '06 - 13:28 »
Reply with quoteQuote

Jace: only with fixed positioning, no? AFAIK, there are some ugly hacks required to get it to work across all browsers.
As for the forum; last time I checked you can't embed an external .html in a div... unless you use SSIs, and that would be quite a headache to pull off...

Then again I might be wrong here because I'm no HTML wizard at all and I hate web design (sadly, I might add, since I'm presently doomed to work with it).
Logged
Jace
Posts: 774


« Reply #14 on: 31 Dec '06 - 14:20 »
Reply with quoteQuote

Yes, position: fixed; works for pretty much everything but IE, but there's a trick to that too. You'd put everything in a 100%x100% div, (html & body scrolling would be disabled) and then the menu on a different div outside the one that contains 'everything'. As you said, very dirty and ugly hack, but it's doable.

And what it comes to the forum; it would be doable with PHP, which the server seems to support (at least it runs the forum!). there's the include-command, which allows you to include any file into another. The only problem would be all the links the forum creates, but I believe it would just need an edit of the index.php in forum/. It's one thing to include a file into a template which has the top and side bars, and completely other to include the bars into another file. At least I remember fixing a phpbb relatively easily like that, not certain of how SMF functions. =\

But as to the topic, I personally have no issues with the current design (apart from the source not being valid Wink). I've one link to the place, going directly to the XMP-forum.
Logged
Tsorovan
Posts: 1244


« Reply #15 on: 31 Dec '06 - 15:12 »
Reply with quoteQuote

That's what I meant with SSIs (Server-Side Includes). I don't know how flexible the forum software is...
Logged
Jace
Posts: 774


« Reply #16 on: 31 Dec '06 - 15:48 »
Reply with quoteQuote

Ah, right you are. For some reason I comprehended that as 'IIS'. x))
I'll blame the alcohol on that.
Logged
Ian @ un4seen
Administrator
Posts: 15276


« Reply #17 on: 31 Dec '06 - 17:38 »
Reply with quoteQuote

I recall seeing some examples of frames without frames, which I was considering using, but I wasn't sure about the compatibility of these techniques. With their little differences, it seemed unlikely that it'd work as intended with all browsers (or at all in the case of older ones), whereas real frames should do. That was a while ago though, and as time goes by, I guess these things should be more uniform/widespread.

As mentioned, another issue is including the extra code in all the pages. That shouldn't be a problem with the forum pages, as it uses a single main template which could include the extra code, but the static HTML pages would be a bit of a problem. I've been considering switching it all to PHP anyway, so if/when that happens, I'll probably look into this frame stuff again then.
Logged
jeroenp
Posts: 93


« Reply #18 on: 18 Jul '07 - 16:17 »
Reply with quoteQuote

Please disable URL rewriting!!!!!!!!!!!

The URL writing rewrites http://www.un4seen.com/forum/?topic=6534.0 as http://www.un4seen.com/
It does not matter if I use IE or FF.

This interferes with Google Bookmarks.
It makes all forum bookmarks that I did in the last couple of days point to the main site.
I.e. basically these bookmarks now all are useless, and I need at least a couple of hours to redo these bookmarks using manual cut pasting the URL's by hand.

Never ever do URL rewriting!!!!

--jeroen
Logged
Dreamy
Posts: 55


« Reply #19 on: 20 Jul '07 - 15:46 »
Reply with quoteQuote

Grin It's frameset, man...
Logged
jeroenp
Posts: 93


« Reply #20 on: 31 Jul '07 - 10:03 »
Reply with quoteQuote

Actually it *is* URL rewriting.
Or more precise: the mismatch of the URL in the address bar and the content you see.

Since framesets *can* work without URL rewriting quite easiliy (that's why the original URL http://www.un4seen.com/forum/?topic=6534.0 works in the first place!), the site should turn off URL rewriting.

As the original URL work, the infrastructure is there, so it should not be that hard to keep that one in the address bar.

In fact, it is this little piece of .js code that breaks the address http://www.un4seen.com/un4seen.js
From the .js file, this is the line that does it:
if (window==top) top.location.replace("/");

It rewrites the url, and forcibly replaces it with http://www.un4seen.com/
thereby breaking all favourite manager tools around (not only the google bookmark manager).
Logged
Dreamy
Posts: 55


« Reply #21 on: 31 Jul '07 - 20:26 »
Reply with quoteQuote

Emm http://www.un4seen.com/forum works fine anyway...
...in my opera fast access...
I guess Ian or Haaf had some reasons to create it like this.
(Actually, the reason is something that I haven't really catched.)
Logged
Tsorovan
Posts: 1244


« Reply #22 on: 31 Jul '07 - 21:11 »
Reply with quoteQuote

dreamwalker: You don't understand... you can't bookmark particular threads without creating bookmarks manually (copy/paste URLs around).
Logged
Dreamy
Posts: 55


« Reply #23 on: 31 Jul '07 - 21:24 »
Reply with quoteQuote

Ah, this way, yeah, I understand. I use Ctrl+Alt+C (Copy link adress).
Sure it's quite less comfortable... Drag and drop works anyway. Cheesy
Logged
jeroenp
Posts: 93


« Reply #24 on: 1 Aug '07 - 23:00 »
Reply with quoteQuote

Ian got back to me by email.

It appears that removing this rewrite will effectively get rid of the main web-site menu around the forum.
That is the downside, that is: if you don't have other means of accessing the main site yourself.
The upsides from the forum point of view are:
- full url in the address bar
- topic title in the title bar
- way more reading space

I have created a small .js file that has the rewriting removed.
When you ise IE, it is very simple to replace when you use the rules editor of Fiddler2 (http://www.fiddler2.com).
You get into the rules editor by pressing Ctrl+R inside Fiddler2.

Then add this rule extension to the OnBeforeRequest method :

if (oSession.url=="www.un4seen.com/un4seen.js")
{ oSession.url = "www.xs4all.nl/~jp/www.un4seen.com/un4seen-new.js "; }

Didn't want to keep that one for myself, so if you need it, here you have it  Wink

So now I can finally enjoy all the bookmarks inside my external bookmark repository Cool

--jeroen
Logged
Dreamy
Posts: 55


« Reply #25 on: 3 Aug '07 - 10:15 »
Reply with quoteQuote

jeroen, pretty good solution, my respect. Wink
Logged
Ian @ un4seen
Administrator
Posts: 15276


« Reply #26 on: 26 Aug '07 - 19:01 »
Reply with quoteQuote

It is now possible to open the forum in a new window/tab (eg. right-click the link) without the frames opening up around it.
Logged
jeroenp
Posts: 93


« Reply #27 on: 28 Aug '07 - 11:22 »
Reply with quoteQuote

I just noticed  Grin

Muchos gracias!
Cheesy
Logged
Pages: 1 2 [All]
  Reply  |  Print  
 
Jump to:  

Powered by SMF 1.1.18 | SMF © 2013, Simple Machines