At WRD, the previous tweet button for sharing stories was the cool Easy Retweet Button by John Resig. However, it was not perfect as, sometimes, it was unable to communicate with the URL shortener service and the tweet links were appearing buggy.
In search for a better one, I tested few others including the official tweet button. They were loading the links ok but had other issues like "loading slow", "blocking pages on load", etc.
And, for a button that is clicked by -maybe- 1/100 of the visitors, loading the scripts and making requests for every visitor didn't look like the smartest choice.
Here is another method, that is actually used at WRD now which loads very fast for everyone and almost fault-proof.
How it works?
First of all, the button is hosted locally and it does not make any requests until it is clicked.
- A link with the querystring that includes URL and the title of the web page is created, pointed to a server-side file (to be presented later in this article) and attached to any custom button we design.
- Once clicked, it sends the URL and title to the server-side file which creates the tweet link and redirects to Twitter with the tweet.
Read the rest of this entry »
As CSS3 is being used more everyday and there are already ways to CSS3-enable incompatible browsers, if not already, it is time to check what it offers.
Impressive Webs, a blog on web design, is featuring CSS3 Click Chart which enables us to easily find out the new CSS properties with examples.
By clicking to the "?" besides every example, you can see the codes used to create them, the description of the property and browsers supporting it.
Faary is a free web-based form builder that enables designing forms by simply defining them as text.
In order to better define how it works, an entry like:
- header, Sign-up to Newsletter
- text, *Your E-mail,email
- submit, Send it!
will end up in a newsletter form with the title: "Sign-up to Newsletter ", an e-mail input which is required and a submit button.
Once the details for the form is set, the output can be previewed and downloaded as a .zip file.
Requirements: No Requirements
Compatibility: All Major Browsers
The Grid Accordion is an advanced accordion navigation that is built with jQuery.
It works similar to most other accordions, only one cell is open at a time and handy for displaying detailed information about the items inside a grid.
The big thing is that the column of the current open cell expands to a reasonable reading width.
The accordion also makes use of CSS3 pseudo class selector
:nth-of-type for styling the columns (which you can add extra class names to support non-CSS3-enabled browsers).
There is a beautiful demo provided which you can play with.
Compatibility: All Major Browsers
Every web designer and developer probably have bad memories with Internet Explorer. And this is mostly because the browser compiling (or used to do so) CSS properties differently compared to the standards.
IEcss.com is a website which helps us to better understand the reasons behind this incompatibility.
It shares a chart of user agent style sheets (CSS styles that are applied by default) for the major versions of Internet Explorer; IE6, IE7, IE8, and IE9 Platform Preview.
The chart includes values for almost every CSS property and they can be downloaded per browser.