I’m trying to get my Placeholder Shiv script into the CDNJS repository, which will mean that it gets copied to hundreds of servers around the world and integrated into a Content Delivery Network (similar to how Prototype and Scriptaculous are served from Google). Once that happens, I can make an Action that pulls the script from CDNJS and silently patches your forms that use placeholder attributes so they work in IE < 9.
But before I can do that, I need to at least create the illusion that my script is popular. If you already have a GitHub account, visit this page and either star or follow the project:
If you don’t have a GitHub account, please do sign up, and then star or follow my project. It only takes a moment, and it is an enormous resource of code (some of which may be useful to you).
If you have any suggestions for the script, please post an issue on GitHub.
Don’t be. Git is a distributed version-control system for programmers, and GitHub is the really friendly Web app that lets you interact with it in a visual manner.
Thanks for your help!
Walter
On Nov 1, 2012, at 6:25 AM, Kryten wrote:
Completely embarrassed - no idea what github is but I’m in.
Cool. Thanks! If you have any questions about how anything works, please just post an issue on GitHub (all in the name of more traffic to this project)!
Walter
On Nov 1, 2012, at 1:04 PM, Todd wrote:
You want me to translate the Prototype into jQuery? I can certainly try but my jQuery Fu isn’t terribly strong, but I’ll be glad to try.
Todd
Now Todd, can you fork this to jQuery for added bonus points?
What browsers do not support placeholders? I don’t want to jump the gun (there are always issues) but I may have a good start but I need to see what happens in an unsupported browser.
Todd
On Nov 1, 2012, at 12:58 PM, Walter Lee Davis email@hidden wrote:
Cool. Thanks! If you have any questions about how anything works, please just post an issue on GitHub (all in the name of more traffic to this project)!
Walter
On Nov 1, 2012, at 1:04 PM, Todd wrote:
You want me to translate the Prototype into jQuery? I can certainly try but my jQuery Fu isn’t terribly strong, but I’ll be glad to try.
Todd
Now Todd, can you fork this to jQuery for added bonus points?
A browser that doesn’t support the placeholder attribute merely fails to display it at all. The first “if” clause of code (which is agnostic “vanilla” JavaScript) takes care of figuring out if the browser is one of those. Here’s the code all commented out to say what it does:
Walter
On Nov 1, 2012, at 2:02 PM, Todd wrote:
What browsers do not support placeholders? I don’t want to jump the gun (there are always issues) but I may have a good start but I need to see what happens in an unsupported browser.
Todd
On Nov 1, 2012, at 12:58 PM, Walter Lee Davis email@hidden wrote:
Cool. Thanks! If you have any questions about how anything works, please just post an issue on GitHub (all in the name of more traffic to this project)!
Walter
On Nov 1, 2012, at 1:04 PM, Todd wrote:
You want me to translate the Prototype into jQuery? I can certainly try but my jQuery Fu isn’t terribly strong, but I’ll be glad to try.
Todd
Now Todd, can you fork this to jQuery for added bonus points?