Create Up/Down Triangle for Sorting?

Please supply more information as to why the sample does not work.

Has anyone other posters tried the link and had any problems?

Because when I click on the Link/Arrow it just flashes and does nothing…

Nothing changes or sorts.

It is broken.

My own JavaScript-less solution is working quite nicely, though!

Debbie

Yes, same as for DD.

@John_Betong
Yes, I’ve tried your page, and now again. I see the original page of post #19 is changed in the meantime. :wink:
Here we go!

Browser: Firefox 23 on WinXP.

Yesterday:
Test 0
After opening the page for the first time and giving a refresh (without ordering first), the toggle didn’t work.

=======
At this moment:

Test 1

  • Open browser (new session), clear cache, clear buffer & clear cookies for safety.
  • Go to [U]johns-jokes.com/downloads/sp-b/doubledee/index.php[/U]
  • Sorted default setting 1st column = from 20 descending (text: “Sorted:”, light yellow background, triangle Down).
  • Session cookie = 3c61baeebe1f4ddf2d5987695af9aef0
  • Click on Toggle: o.k., now from 1 ascending (text: “Sorted:”, light yellow background, triangle Up).
  • Click on Toggle: o.k., now from 20 descending (text: “Sorted:”, light yellow background, triangle Down).
  • Etc.: o.k.
  • Last state: descending (20…1, triangle Down).
  • Give a refresh with the FF refresh button
  • O.k., sorting order the same (background grey + text “First Time or Page Refreshed”, triangle Down).
  • Click on Toggle: o.k. , now ascending (bg light yellow, text “Sorted:”, triangle Up)
  • Click on Toggle: o.k.
  • Etc.: o.k.
  • Session cookie = 3c61baeebe1f4ddf2d5987695af9aef0 (no change, correct)
  • Close browser.

Test 2

  • Open browser (new session), clear cache, clear buffer & clear cookies for safety.
  • Go to Go to [U]johns-jokes.com/downloads/sp-b/doubledee/index.php[/U]
  • Sorted default setting 1st column = from 20 descending (text: “Sorted:”, light yellow background, triangle Down).
  • Session cookie = 01514a4094a1c6a9270f772bd152bf87
  • Click on Toggle: o.k., now from 1 ascending (text: “Sorted:”, light yellow background, triangle Up)
  • Click on Toggle: o.k., now from 20 descending (text: “Sorted:”, light yellow background, triangle Down)
  • Etc.: o.k.
  • Last state: ascending (1…20, triangle Up).
  • Give a refresh with the FF refresh button
  • O.k., sorting order the same (background grey + text “First Time or Page Refreshed”, triangle Up).
  • Click on Toggle: o.k., now descending (bg light yellow, text “Sorted:”, triangle Down)
  • Click on Toggle: o.k.
  • Etc.: o.k.
  • Session cookie = 01514a4094a1c6a9270f772bd152bf87 (no change, correct)
  • Close browser.

So far, so good. :slight_smile:

Test 3

  • Open browser (new session), clear cache, clear buffer & clear cookies for safety.
  • Go to Go to [U]johns-jokes.com/downloads/sp-b/doubledee/index.php[/U]
  • Sorted default setting 1st column = from 20 descending (text: “Sorted:”, light yellow background, triangle Down).
  • Session cookie = 1aa8dd9fc291ed9e52a7e2b184e56727
  • Click on Toggle: o.k., now from 1 ascending (text: “Sorted:”, light yellow background, triangle Up)
  • Open a different page in a new browser tab, for instance: [U]foogle.com[/U].
  • Go back to the sorting page: o.k., still the same.
  • Click on Toggle: o.k. (bg light yellow, text “Sorted:”, triangle Down)
  • Click on Toggle: o.k.
  • Etc.: o.k.
  • Last state: ascending (1…20, triangle Up).
  • Session cookie = 1aa8dd9fc291ed9e52a7e2b184e56727 (no change, correct)
  • Close the sorting page.
  • Open again in new tab: [U]johns-jokes.com/downloads/sp-b/doubledee/index.php[/U]
  • Session cookie = 1aa8dd9fc291ed9e52a7e2b184e56727 (no change, correct)
  • Sorting order = now descending (20…1, triangle Down)
  • Toggling afterwards: o.k.
  • Close browser.

Test 4

  • Open browser (new session), clear cache, clear buffer & clear cookies for safety.
  • Go to Go to [U]johns-jokes.com/downloads/sp-b/doubledee/index.php[/U]
  • Sorted default setting 1st column = from 20 descending (text: “Sorted:”, light yellow background, triangle Down).
  • Session cookie = eb39a5e6233e8be477c417750dc8ecf9
  • Click on Toggle: o.k., now from 1 ascending (text: “Sorted:”, light yellow background, triangle Up).
  • Last state: ascending (1…20, triangle Up).
  • Give a hard reload with a click in the address bar & Enter.
  • Sorting order = now descending (20…1, triangle Down)
  • Toggling afterwards: o.k.
  • Session cookie = eb39a5e6233e8be477c417750dc8ecf9 (no change, correct)
  • Close browser.

Test 5

  • Open browser (new session), clear cache, clear buffer & clear cookies for safety.
  • Go to Go to [U]johns-jokes.com/downloads/sp-b/doubledee/index.php[/U]
  • Sorted default setting 1st column = from 20 descending (text: “Sorted:”, light yellow background, triangle Down).
  • Session cookie = 0cb89afd0c26cb2abd0d95014fedaf10
  • Click on Toggle: o.k., now from 1 ascending (text: “Sorted:”, light yellow background, triangle Up).
  • Last state: ascending (1…20, triangle Up).
  • Close page.
  • Go in FF menu to: History > Recently closed Tabs.
  • Open page again.
  • Sorting order = now descending (20…1, triangle Down)
  • Toggling afterwards: o.k.
  • Session cookie = 0cb89afd0c26cb2abd0d95014fedaf10 (no change, correct)
  • Close browser.

Note: Repeated hard reloads do change the order every time.

You know, this is a classic case of hi-jacking someone else’s thread…

Getting a bit annoying… :rolleyes:

Debbie

Mmm, as I see it:

  • Your requirements where almost fundamental impossible by the memory-issue (see #18).
  • Nevertheless John_Betong has tried to develop a php solution for you with all your requirements (and has put his time in it), but unfortunately it didn’t work.
  • As it seemed OK when John_Betong tested it himself, but you and ralph.m denied that, I think he had the right to get some feedback about in what circumstances it didn’t work.
  • In the meantime you changed your requirements (!), so a solution in that way isn’t needed anymore.

I should say: "annoying classic case of hi-jacking "? - No, there was no other goal than trying to help you, and with the result everybody can be happy now. :slight_smile:

This thread was about finding HTML symbols to represent up and down arrows.

It is NOT about developing a “Sorting Script” which I already did on my own over 10 days ago.

And it not about testing John’s code. (If John needs help getting his code working, then start another thread…)

This is at least the 2nd time one of my threads has been “hi-jacked” in the past week, and it is getting on my nerves.

Show some courtesy…

Sincerely,

Debbie

Except that you introduced that factor in post #15, when you explained your full requirements, and stated

In view of that comment, John and others attempted to help you find a suitable solution. That you subsequently changed your requirements and were able to figure out your own solution is great, but it doesn’t devalue the effort that other members have put in to assisting you.

Your thread has not been hi-jacked. You have found the answer to your initial question and, as sometimes happens, the thread has diversified into other areas relevant to the discussion as a whole.

I just want to elaborate on this point too, as I believe there to be another reason for why this discussion diversified. In short, your response to one of John’s solutions was:

That response unfortunately was very vague and didn’t really provide any insight as to why it failed to work, so Francky took it on himself to provide a thorough test matching your requirements to his example to identify where it didn’t match up. I hardly see any of that as “hi-jacking” the discussion. In simply filled a spot that wasn’t clearly emphasized.

I’m lost here. various unicode symbols were provided straight away. The thread topic then went to “toggle” questions, then “no javascript solutions”
The unicode glyphs were what you were looking for and this thread is therefore [SOLVED] ??

Sometimes it makes sense to drop things and start a new conversation…

I appreciate John going out of his way to create a script from scratch to try and help.

Thanks!

But when John is asking for others to point out why his script isn’t working, and then Francky comes in with his 109 lines of testing of John’s script, it is a bit much!! <snip /> :rolleyes:

And if you really want to see hijacking, go check out this thread… Returning an Array from a Function

Tangents are fine as long as they are from the Original Poster, or they relate to the Original Post.

In my opinion, it is NOT okay for someone to come in and ask for help on their code when it isn’t their thread. Likewise, it isn’t okay to start their own debate when it doesn’t pertain to the OP.

Please tell me how any of Hall Of Famer’s rant below relates to my other thread…

That has absolutely nothing to do with what I was originally asking help with!!

Whatever… :rolleyes:

Debbie

Because John got over anxious and decided to build me a house when all I was asking for was help with picking out door-knobs… :wink:

All of this started in John’s Post #7

Again, I didn’t mind John trying to help initially.

But what I did find to be a bit too much is when he was asking Ralph and I to provide more detail why his script wasn’t working?!

And then Francky jumped in and things went off the deep end…

Bingo!

Ralph came to my rescue - once again - and everything was solved by the end of Post #6

** Nothing to see here folks. Move along… **

Sincerely,

Debbie

Debbie,

In this thread’s example, John’s code was purely trying to meet what you were trying to achieve, so his contributions and figuring out why it didn’t work for you, was definitely relevant.

In the latter thread, Hall of Famer was continuing the discussion on whether mutli-dimensional arrays were good or bad practice. You got your solution, which is great, but your question generated thoughts at a higher level amongst others (which is going to happen in any thriving community). If you didn’t gleam anything useful from the resulting discussion, I’m sorry, next time unsubscribe from the thread once your solution is deemed “found”.

What I can say, is if you ever do go for version 3.0 and OOP, you will want to revisit that discussion. There is a lot of interesting information that each of those guys brings to this community and I highly ask you to really take a step back and ask “What is it that I can learn from them through their discussions that may benefit me in the near or distant future?”

I’m not trying to be harsh, but the nature of a forum will spawn different directions with or without assistance. That’s just the nature of the beast. Yes, if it starts to drift off before a solution is given, or there isn’t a clear path to a solution, that’s troublesome and we staff will try to remedy those situations. However, neither of these threads presents that case (at least to me they don’t).

Probably true, but hopefully you see my side too.

Normally I don’t mind, but I just felt both of those threads went a little too far at the end…

Francky and Hall-of-Famer got way too obsessive whether anyone else sees it that way or not.

Sincerely,

Debbie

While the forums are here to help answer members’ questions, there’s no rule against showing enthusiasm for a topic and taking it further. Indeed, it’s to be encouraged. It makes the forums a truly stimulating and innovative place. :slight_smile:

If you got the answer you needed early on, then great! Unsubscribe and move on if that’s all you want. But nobody owns a thread, even if they started it, so let the conversation and exploration follow its natural course, and leave the discussion if you get bored.

In my opinion (and I’m the boss) it’s fine provided the OP has had an answer. In this case the rest of the conversation may go some way to helping others.

The debate can stop now because the thread is losing value.

If people want to keep discussing the code in question, go for it, otherwise please leave the thread. :slight_smile: