This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.
301
Off-topic / Strange behavior of jap chars on title="" tooltip
« on February 15th, 2013, 04:31 PM »
On my site I have a script that pulls the entries of an RSS feed and displays them (this is a portion):
Code: [Select]
It works like a charm, the only oddity I noticed is when I deal with "special" chars. They're displayed just fine in the page, but the title="" tooltip replaces them with □□□□ (not encoded properly):

The problem is that the code that outputs text and title="" is the same. And the page is UTF-8. AND (last oddity :P) browsing the source code I can see the chars properly!

Any clue?
I'm writing this just for curiosity.. I don't care much about this "glitch"! :D
<li>
<a href="<?php echo $item->get_permalink(); ?>" title="<?php echo esc_html( $item->get_title() ); ?>" rel="external"><?php echo esc_html( $item->get_title() ); ?></a>
</li>It works like a charm, the only oddity I noticed is when I deal with "special" chars. They're displayed just fine in the page, but the title="" tooltip replaces them with □□□□ (not encoded properly):

The problem is that the code that outputs text and title="" is the same. And the page is UTF-8. AND (last oddity :P) browsing the source code I can see the chars properly!

Any clue?
I'm writing this just for curiosity.. I don't care much about this "glitch"! :D
302
The Pub / Re: Infinite Scroll
« on February 11th, 2013, 07:27 PM »
But not with message permalinks:
http://wedge.org/pub/7704/infinite-scroll/msg285909/#msg285909
http://wedge.org/pub/7704/infinite-scroll/msg285909/#msg285909
303
Features / Re: AJAX Likes
« on February 11th, 2013, 06:47 PM »
Works like a charm! :D
EDIT: Did we talk about ajaxing quick reply too?
EDIT: Did we talk about ajaxing quick reply too?
304
The Pub / Re: Infinite Scroll
« on February 11th, 2013, 06:45 PM »Or even read the link I posted? ;)
Miguel:
It’s just an idea but would it be possible to change the way of presenting data? Instead organizing it among “pages”, to present them directly as “posts” (or whatever title you might prefer). I mean when you start at the top, the browser adds an anchor to the first post’s ID (/blog/#trip-to-spain) and, as you scroll down, it changes as you hover each post: /blog/#pic-of-my-son -> /blog/#new-job, etc. Assuming you don’t store them on browser’s history, at the very instant the user would like to link the web URI, he/she would have the “exact” position for his friend to visit, instead the long list.
Finally, as the user scrolls up or down, the browser adds more posts.
PS: Wouldn’t it be preferable to put everything inside a div with overflow property, so a footer is always visible?
305
The Pub / Re: Infinite Scroll
« on February 11th, 2013, 02:23 PM »
Uh, right. A fixed footer then
306
The Pub / Re: Infinite Scroll
« on February 11th, 2013, 01:32 PM »
Maybe there should be a check: if infinite-scroll-compatible -> ok; if not -> show page numbers.
307
Off-topic / Re: And people wonder why I think Facebook Connect is a bad thing
« on February 8th, 2013, 09:41 PM »
Well, better! :)
308
Off-topic / Re: And people wonder why I think Facebook Connect is a bad thing
« on February 8th, 2013, 09:05 PM »
Why not having a function to grab an image for video preview (the exact name doesn't come to my mind right now), make it link and let the user go to youtube/video website directly (target="_blank")? Of course there should be a caching mechanism for all video preview images.
309
Off-topic / Re: And people wonder why I think Facebook Connect is a bad thing
« on February 8th, 2013, 08:02 PM »
I'm wondering if we should think about a different implementation of YouTube (or generic websites) video embedding. Iframe is dangerous too, both for privacy concerns and for this example..
310
Features: Forward thinking / Re: HTML5 support
« on February 6th, 2013, 02:07 AM »
What's the relation between a generator meta tag and alt attributes? :P
They're mad
They're mad
311
Features: Forward thinking / Re: HTML5 support
« on February 6th, 2013, 02:03 AM »
The errors are related to missing alt parameters. And on this matter W3C changes idea every day.. I wouldn't worry (also because less alt="" means less bytes).
Edit: posted together :D
Edit: posted together :D
312
Features / Re: New revs - Public comments
« on February 3rd, 2013, 10:27 PM »@Lorenzo> I'm surprised a CDN not advertised on jquery.com would offer it..? Anyway, isn't this only for cloudflare customers?
I wouldn't be fussed over whether we should add it or not, but I just don't know if they're going to keep up with jQuery's releases, precisely because they're not officially sanctioned. It'd be a disaster if I started having to check whether all CDNs provide the version I'm targeting... Right now I'm only doing a special test for beta versions -- forcing the CDN to code.jquery.com (which is the only one to host beta versions), in case a beta or RC tag is found in the filename. (I think that one's a good idea. :cool:)
http://blog.cloudflare.com/cdnjs-the-fastest-javascript-repo-on-the-web
It supports IPv6, SSL, SPDY and it's available to all. :)
313
Features / Re: New revs - Public comments
« on February 3rd, 2013, 08:53 PM »
Nao, test also this CDN:
http://cdnjs.cloudflare.com/ajax/libs/jquery/1.9.0/jquery.min.js
I use it and seems reliable and fast!
Uptime and speed:
http://stats.pingdom.com/4jg86a2wqei0/687131
http://cdnjs.cloudflare.com/ajax/libs/jquery/1.9.0/jquery.min.js
I use it and seems reliable and fast!
Uptime and speed:
http://stats.pingdom.com/4jg86a2wqei0/687131
314
Off-topic / Re: jQuery: .on() instead of .live()
« on February 3rd, 2013, 04:10 PM »
What about this?
Code: [Select]
$(document).on("mouseenter mouseleave", "#ultimecomunicazioni" , function(e) {
if(e.type === 'mouseenter'){
$(this).append('<span id="ultimecomunicazioni_appear" style="font-weight:normal;margin-left:5px">(<a style="color:grey" href="blahblah/">tutte</a>)</span>');
} else {
$('#ultimecomunicazioni_appear').remove();
}
});
315
Off-topic / Re: jQuery: .on() instead of .live()
« on February 3rd, 2013, 04:03 PM »Two things
1) You're using the function wrong, it should be (similarly for the mouseleave function)Code: [Select] jQuery(document.body).on("mouseenter", "#ultimecomunicazioni", function() {
jQuery('<span id="ultimecomunicazioni_appear" style="font-weight:normal;margin-left:5px">(<a style="color:grey" href="//google.it">tutte</a>)</span>').appendTo(jQuery(this));
});
http://jsfiddle.net/5xS6W/1/
2) You're delegating events to an ID, that's pointless since you're only supposed to have one element in the DOM with the same ID. You might as well use bind after document.load
As of jQuery 1.7, the .on() method is the preferred method for attaching event handlers to a document. For earlier versions, the .bind() method is used for attaching an event handler directly to elements.