Blog de Francisco Velázquez

otro blog personal

Consultar el próximo bus en Sevilla (Tussam)

with 2 comments

Con la ayuda de un emulador de java, mi querido Fiddler, y 30 líneas de HTML/JS puedo consultar cuando llega el bus sin depender de aplicaciones iphone.

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "">
<html xmlns="" >
    <meta name="viewport" content="width=device-width; initial-scale=1.0; maximum-scale=1.0;">
     <style type="text/css">
    <script language="javascript" >
        function createLink() {
            var l1 = "",
                l2 = "&l=",
                l3 = "&v=1.3&k=0FE0D568420E1E27DC44BFDC210C84B2";
            document.getElementById("search").href = l1 + document.getElementById("tbxStop").value + l2 + document.getElementById("tbxLine").value + l3;


    <h1>Tussam - Bus Sevilla</h1>
    <label>Línea: </label><input type="text" id="tbxLine"  onchange="createLink()"/> <br />
    <label>Parada: </label><input type="text" id="tbxStop" onchange="createLink()" style='-wap-input-format: "NNN"' /> <br />
    <a href="" id="search">Buscar</a>

Written by fravelgue

February 11, 2011 at 9:56 pm

Posted in mobile

Tagged with , , ,

2 Responses

Subscribe to comments with RSS.

  1. Me podías haber preguntado, y te hubiera pasado el código de Infobus 🙂

    Julio Rabadán González

    February 13, 2011 at 1:19 pm

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: