by Andreas

HTML tag telling smartphones to dial a number for you

imageI wasn’t aware of this until today, and figured I’m either a bit slow or this might be something more of us are unfamiliar with. When developing web applications for smartphones or tablets with GSM capabilities you can create links of your phone numbers the same way you create email links that tell your default mail client to open up a “New email” window (href=”mailto: someone@thisaddress.com”)

By adding “tel:” to the anchor tag on your page, supporting devices (I’ve tested WP, iPhone and Android) will ask if you want to call the number you’ve clicked:

<a href="tel:+4722048700">Call us</a>

 

or

<a href="tel:+4722048700">+47 22 04 87 00</a>

 

(PS: don’t try calling that number. It’s belongs to the Royal Palace of Norway, and they’ll get the shits if you call and tell them you’re “just testing this new anchor tag!!”)

by Njål

Force Hard Reload in Chrome

Reloading pages in Chrome can be done in a few different ways:

  • Ctrl-R (or F5) – Normal Reload
  • Ctrl-Shift-R (or Ctrl-F5) – Hard Reload

I’m sure you knew this already. But here’s a new trick – you can do a Hard Reload and Clear Cache at the same time by right clicking on the Reload button. This requires that you have the developer console open (F12).

image

by Njål

Outlook Web App 2010 Auto login

Microsoft Exchange Server 2010

This one goes out to all my fans out there. A simple html page that automatically logs you in to Outlook Web App. Handy when webmail is the only thing you have access to, and you canstantly keep getting logged out (since your nazi sysadmin refuses to extend the session timeout period).

<html>
  <body style="display: none">
    <form action="https://exchangeserver.com/owa/auth/owaauth.dll" method="POST" name="logonForm" ENCTYPE="application/x-www-form-urlencoded" id="loginForm">
      <input type="hidden" name="destination" value="https://exchangeserver.com/owa/">
      <input type="hidden" name="username"  value="joe@scrotum.org" >
      <input type="hidden" name="password"  value="Balls_1234$">
      <input type="hidden" name="flags" value="4">
      <input type="hidden" name="forcedownlevel" value="0">
      <input type="radio"  name="trusted" value="4" class="rdo" checked>
      <input type="hidden" name="isUtf8"  value="1">
    </form>
    <script type="text/javascript">
      document.forms["logonForm"].submit();
    </script>
  </body>
</html>

Replace action, destination, username & password. Save this file to your desktop etc. and create a shortcut/bookmark to it. You’re done.

This can also be used to facilitate one-click login into OWA from an intranet etc.