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" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" >
<head>
    <title></title>
    <meta name="viewport" content="width=device-width; initial-scale=1.0; maximum-scale=1.0;">
     <style type="text/css">
    </style>
    <script language="javascript" >
        //http://www.infobustussam.com:9001/services.aspx?c=e&p=541&l=B5&v=1.3&k=0FE0D568420E1E27DC44BFDC210C84B2
        function createLink() {
            var l1 = "http://www.infobustussam.com:9001/services.aspx?c=e&p=",
                l2 = "&l=",
                l3 = "&v=1.3&k=0FE0D568420E1E27DC44BFDC210C84B2";
            document.getElementById("search").href = l1 + document.getElementById("tbxStop").value + l2 + document.getElementById("tbxLine").value + l3;
        }

    </script>

</head>
<body>
    <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>
</body>
</html>

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:

WordPress.com Logo

You are commenting using your WordPress.com 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 )

Google+ photo

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

Connecting to %s

%d bloggers like this: