Using URL and Agents

Hi,

I am trying to do a simple code to operate two LEDs basted on the “Hello World” tutorial.

I connected everything and wrote a HTML page to control the imp (html file attached).

I have two questions:

  1. When I press one of the buttons the agent sends reply and I have to press back to return to the buttons - how can I fix this issue?

  2. I want to be able to send more than one command using a single button (light both LEDs with a single click). How can I manage that?

Thanks for the help,

Assaf

Use javascript in your HTML… the Snackman code is a great place to start.