If you need to strip all non-numeric characters from a string (except for the period character) using JavaScript, try: string.replace(/[^\d.]/g, “”);
Posts Tagged: javascript
TinyURL! Bookmarklet
I love TinyURL! and have been using it for years and years. For the first time today I scrolled down the page a bit, by accident, and saw that you can create a TinyURL! bookmarklet. Trés radical.
Pop-Up Windows
Use Eric’s Popup window Generator to easily add popup windows to your site! The windows are activated by clicking on a link, and can be fine tuned in every aspect, such as dimensions, scrollbars, toolbar etc. Awesome tool.
Comment the Link
Jason @ JPlay has written a great tutorial on how to add a user comment to the pop-up send-link hack. I’ve gotten multiple requests for this, so I’m sure it will interest many readers. Thanks, Jason!
JavaScript Trick
Want to spice up your web site with some easy JavaScript tricks? I’m going to show you how to make your buttons, text boxes, and textareas change their colors. All you need are four attributes and some additional functions in your javascript file. (If you want to learn about adding a javascript file to your… Read more »
New Music Now
I’m really much more interested in this for its possible application elsewhere, but I just found this niftiest of little buttons from Emergent Music. Trés hep. Click the “read more …” link to see it in action. link via The Shifted Librarian
XMLHTTP
I found a nifty tutorial on Using Microsoft’s XMLHTTP Object to Get Data From Other Web Pages at 4GuysFromRolla.com that might interest some readers. And over at ASP101.com there is a lesson on creating a shopping cart in ASP for your small business web site.
Javascript Clock
How sour sweet music is When time is broke and no proportion kept! So is it in the music of men’s lives. I wasted time, and now doth time waste me For now hath time made me his numbering clock; My thoughts are minutes. William Shakespeare – Richard III
Source Viewer
I found the mack-daddy of all bookmarklets at webgraphics this evening. This just absolutely rocks: Try it and see!
Shunting NN4
Teambilly shows you how to send Netscape 4.x users to an alternate page. This is terrific. He even has a nice little message that explains to them what dorks they are.