Skype Logo
Buy Skype Credit · Help ·
  • Download
  • Use Skype
  • Business
  • Shop
  • Account
Jaanus

Skype Buttons tip: use "email HTML" if JavaScript isn't allowed

By My status Jaanus on August 10, 2006 in Sharing tools news.

We continue to get questions in the [eBay Skype discussion board](http://forums.ebay.com/db2/forum.jspa?forumID=2000000001) and other channels about what to do if your web host doesn't allow JavaScript. Many hosts don't, and that's good for security. However, the [Skype button wizard](http://www.skype.com/go/skypebuttons) offers you code with JavaScript by default, which may not work or may produce some weird results as it gets sanitized or filtered by the web host.

There's a simple way out. In the Skype button generator wizard, you can choose between "web HTML" and "email HTML". The main difference between the two is that the first one is with JavaScript and the second one is without it. We figured that calling them "with JavaScript" and "without JavaScript" was a bit too geeky and so we went with web/email HTML, since most web-based and standalone e-mail clients don't allow JavaScript anyway, so it made sense.

To switch from web HTML to email HTML, just select the appropriate option before copying the code.

skypebutton_email_html.png

Why have JavaScript there in the first place? The Skype buttons themselves work fine without it -- if everyone coming to your site has Skype installed. If you don't have Skype and click on a skype: link, one of two things happen.

* if your code doesn't have the JavaScript thing, they may see some ugly and strange browser or e-mail client error.
* if your code has the JavaScript thing, a friendly error pops up, telling a bit about Skype and suggesting the visitor to download and install it. See an example.

Bookmark and Share

View blog reactions

Comments

The non-javascript version is fine for most uses, but some CMSs and forums might change the code to something that won't work too.
Something that I've found that works (but is a bit hacky), is to create a link to a page that contains a META HTTP-EQUIV=REFRESH tag, with CONTENT="1; URL=skype:MY_SKYPE_NAME?call and nothing else.
In my signature in the forum I use (an Invision Power Board based forum), I just link to that page, which then "calls" me. It would be useful to be able to remove the second step though. The problem is the forum changes the url so it doesn't work.

edaross | Friday, Aug 11

Comment on this post

(If you haven't left a comment here before, you may need to be approved by the site owner before your comment will appear. Until then, it won't appear on the entry. Thanks for waiting.)

Please read our comment guidelines before posting your comment.

Back to index
Subscribe to RSS feed
Subscribe by email
Skype Blogs
  • Share Skype Blog
  • Heartbeat
  • Developer Zone
  • Business
  • Skype Gear
  • Security
  • Garage
  • Mac
  • Linux
  • Eesti keeles
  • 日本語
  • Česky
  • Deutsch
  • Français
  • Italiano
  • Brasil
  • United Kingdom
  • Polski
  • United States
  • 한국어
  • Recent posts
  • New record: 20 million people on Skype at the same time
  • Working with the USO to bring families together
  • Dr Jonathan Rosenberg Joins Skype as Chief Technology Strategist
  • We've settled with Joltid
  • Get the magic of Skype on your mobile
  • Latest comments
  • The non-javascript version is fine for most uses, but some CMSs and forums …
Archives
  • Independent blogs
    The views expressed in the third-party sites reflect those of their creators and are not necessarily shared or endorsed by Skype.
  • eBay Chatter blog
  • Alec Saunders
  • Anders Jacobsen
  • Andrew Hansen
  • Andy Abramson
  • Aswath
  • Dan York
  • Dina Mehta
  • Ike Roelfsema
  • Jaanus Kase
  • Jean Mercier
  • Jeff Pulver
  • Joerg Droege
  • Joi Ito
  • Lars Kamp
  • Mark Evans
  • Martin Geddes
  • Martin Varsavsky
  • Neville Hobson
  • Om Malik
  • Richard Stastny
  • Rich Tehrani
  • Robert Scoble
  • Ross Mayfield
  • Skype Journal
  • Solomon Kay
  • Stuart Henshall
  • Tom Evslin
  • Tom Keating
About us · Partners · Jobs · Prices · Security
Privacy policy · Legal · © 2009 Skype Limited