News for hackers. Stuff that matters.
Re:Introducing Syte, An open sourced personal site that has ... by shortformblog on Tuesday June 12, 2012 @12:10AM (#4098709)
Spotted a bug on this. If you go back or forward in your browser to a blog post, it just shows a bunch of JSON code. You have to reload to get the site to properly show.
Re:Introducing Syte, An open sourced personal site that has ... by samrat on Tuesday June 12, 2012 @12:30AM (#4098780)
Also, middle-clicking a link opens it in the same tab/window. Is that intentional?
Re:Introducing Syte, An open sourced personal site that has ... by DHowett on Tuesday June 12, 2012 @02:17AM (#4099074)
I abhor things like this. Certain types of navigation completely override browser behaviour in this regard and it is somewhat maddening.
Re:Introducing Syte, An open sourced personal site that has ... by rcsorensen on Tuesday June 12, 2012 @02:41AM (#4099148)
It's set up like that in https://github.com/rigoneri/syte/blob/21ed38790bbfab3e7a7321... .

Could be changed to only preventDefault/stopPropagation if it doesn't match one of the specially tagged links, or by setting up a different selector for the specially handled links.

Re:Introducing Syte, An open sourced personal site that has ... by aseemk on Tuesday June 12, 2012 @09:30AM (#4100315)
Came here to mention this exact issue. (And related, e.g. cmd+clicking.)

Mislav wrote a great post on how to do this robustly: http://mislav.uniqpath.com/2011/03/click-hijack/

Hope that helps!

Re:Introducing Syte, An open sourced personal site that has ... by shadowfiend on Tuesday June 12, 2012 @02:25AM (#4099094)
That and command-clicking on Mac both need to be controlled for when capturing the click event for links for sure.
Re:Introducing Syte, An open sourced personal site that has ... by rigoneri on Tuesday June 12, 2012 @01:28AM (#4098940)
Issue fixed. Please let me know if you find any more issues, or create an issue in github. Thanks!!
Re:Introducing Syte, An open sourced personal site that has ... by shortformblog on Tuesday June 12, 2012 @09:15AM (#4100255)
Thanks for taking care of this! I like what you're doing with this. As a Tumblr-head, I think you should also consider adding follow, like and reblog functionality. The API also has functions for this.

But either way, I'll be keeping an eye on this!

Re:Introducing Syte, An open sourced personal site that has ... by rigoneri on Tuesday June 12, 2012 @12:17AM (#4098739)
Great catch, I'll fix it... The reason is that it uses the same URL for a regular HTTP request and a XMLHttpRequest...
Re:Introducing Syte, An open sourced personal site that has ... by MichaelApproved on Tuesday June 12, 2012 @01:09AM (#4098899)
Why did you build it that way instead of having a specific API path?
Re:Introducing Syte, An open sourced personal site that has ... by patrickod on Tuesday June 12, 2012 @12:14AM (#4098724)
Also noticed this bug and wanted to mention it in case it wasn't just myself.
Re:Introducing Syte, An open sourced personal site that has ... by ebzlo on Tuesday June 12, 2012 @12:14AM (#4098727)
Noticed this as well. Throw this in your JS file somewhere:

$.ajaxSetup({ cache: false });