Dragooon

  • I can code! Really!
  • polygon.com has to be one of the best sites I've seen recently.
  • Posts: 1,841
AJAX Likes
« on February 9th, 2013, 06:23 AM »
I'd really like that, it's kind of annoying having to re-load pages after a like
The way it's meant to be

Arantor

  • As powerful as possible, as complex as necessary.
  • Posts: 14,278
Re: AJAX Likes
« Reply #1, on February 9th, 2013, 06:24 AM »
The backend already supports it, I just need to write the client JS for it. It's been how many months already?
When we unite against a common enemy that attacks our ethos, it nurtures group solidarity. Trolls are sensational, yes, but we keep everyone honest. | Game Memorial

Dragooon

  • I can code! Really!
  • polygon.com has to be one of the best sites I've seen recently.
  • Posts: 1,841
Re: AJAX Likes
« Reply #2, on February 9th, 2013, 06:27 AM »
Quote from Arantor on February 9th, 2013, 06:24 AM
The backend already supports it, I just need to write the client JS for it. It's been how many months already?
Few from what I can gather, and a few hundred annoyed faces from me as well :P. I was about to do this before I forgot about it.

Arantor

  • As powerful as possible, as complex as necessary.
  • Posts: 14,278
Re: AJAX Likes
« Reply #3, on February 9th, 2013, 06:28 AM »
Eh, I wrote likes months and months ago. I even wrote it so it would return a template to inject with all the appropriate markup to just insert with a little jQuery - I just haven't ever gotten around to implementing it for some insane reason.
Re: AJAX Likes
« Reply #4, on February 9th, 2013, 07:18 PM »
It's in SVN now :P

Dismal Shadow

  • Madman in a Box
  • Me: Who is Arantor? Cleverbot: It stands for time and relative dimensions in space.
  • Posts: 1,185
Re: AJAX Likes
« Reply #5, on February 9th, 2013, 07:38 PM »
What the...that fast? :p
“I will stand on my ground as an atheist until your god shows up...If my irreligious bothers you much, and if you think everything I do is heresy to your god I don't care. Heresy is for those who believe, I don't. So, it isn't heresy at all!


   Jack in, Wedge,
   EXECUTE!

Arantor

  • As powerful as possible, as complex as necessary.
  • Posts: 14,278
Re: AJAX Likes
« Reply #6, on February 9th, 2013, 07:40 PM »
Most of the work was already done anyway. It really was a case of writing the JS for it and just tidying up and minor bug fixes.

* Arantor has had a busy day, bug fixes, some software reviewing, writing this, arranging theatre tickets, assembling a chair... and I only got out of bed a few hours ago...
Re: AJAX Likes
« Reply #7, on February 10th, 2013, 06:56 PM »
Guess I need to AJAXify thought likes now too? :angel:
Posted: February 10th, 2013, 06:40 PM

:^^;: Means extra bytes on the front page... since I'd need to put them inside a container, they currently aren't in one the way they were for the post likes. And the code will be different in terms of finding the ID, but that's no biggie.

Dragooon

  • I can code! Really!
  • polygon.com has to be one of the best sites I've seen recently.
  • Posts: 1,841
Re: AJAX Likes
« Reply #8, on February 11th, 2013, 07:33 AM »
Awesome :D
Re: AJAX Likes
« Reply #9, on February 11th, 2013, 07:54 AM »
Since this is somewhat relevant, why not make the Like button show on hover as well?

Arantor

  • As powerful as possible, as complex as necessary.
  • Posts: 14,278
Re: AJAX Likes
« Reply #10, on February 11th, 2013, 05:34 PM »
I don't know why I didn't :/
Re: AJAX Likes
« Reply #11, on February 11th, 2013, 06:35 PM »
Actually, yes I do. I wanted the thumb-up to be added to the sprite image where all the other button icons are... assuming they're still a sprited image.

MultiformeIngegno

  • Posts: 1,337
Re: AJAX Likes
« Reply #12, on February 11th, 2013, 06:47 PM »
Works like a charm! :D

EDIT: Did we talk about ajaxing quick reply too?

Arantor

  • As powerful as possible, as complex as necessary.
  • Posts: 14,278
Re: AJAX Likes
« Reply #13, on February 11th, 2013, 07:03 PM »
No, we didn't, and there are all sorts of issues with doing that, though far less than there used to be. Not everything needs to have AJAX crammed up its arse like a rocket.

Notably, if you have it set to return to the board rather than the topic, you don't really want AJAX ;)

Dragooon

  • I can code! Really!
  • polygon.com has to be one of the best sites I've seen recently.
  • Posts: 1,841
Re: AJAX Likes
« Reply #14, on February 12th, 2013, 07:28 AM »
Quote from Arantor on February 11th, 2013, 06:35 PM
Actually, yes I do. I wanted the thumb-up to be added to the sprite image where all the other button icons are... assuming they're still a sprited image.
What does that have to do with it being visible only on hover?