Notice: This forum has been recovered from an old backup, so some content, links, and dates may be outdated. The forum is currently read-only while we restore sign-in and registration functionality. Details

If you find this forum valuable and would like to help keep it online, donations to help cover hosting and domain costs are greatly appreciated, but never expected. You can support the forum through Buy Me a Coffee or Ko-fi. Thank you for helping preserve the EventGhost community.

Problem with webserver, can only click once.

If you have a question or need help, this is the place to be.
Post Reply
Jostein
Experienced User
Posts: 108
Joined: Sun Feb 15, 2009 12:59 pm

Problem with webserver, can only click once.

Post by Jostein »

Hi.

When i try my i only get the first click on each button into eventghost. Does anybody know how i can fix this?

Created the interface using http://developer.telldus.se/wiki/Using% ... b%20server .

Here is my Web page code:

Code: Select all

<html>
  <head>
    <title>Lys</title>
  </head>
  <body>
    <table border="0">
      <tr>
        <td width="120">Hj├©rnelampe</td>
        <td width="30"><a href="eventghost.html?hjornelampe_ON"><img border="0" src="lamp-on.png"></a></td>
        <td width="30"><a href="eventghost.html?hjornelampe_OFF"><img border="0" src="lamp-off.png"></a></td>
      </tr>
      <tr>
         <td width="120">Spisebord</td>
         <td width="30"><a href="eventghost.html?spisebord_ON"><img border="0" src="lamp-on.png"></a></td>
         <td width="30"><a href="eventghost.html?spisebord_OFF"><img border="0" src="lamp-off.png"></a></td>
      </tr>
      <tr>
         <td width="120">Soverom</td>
         <td width="30"><a href="eventghost.html?soverom_ON"><img border="0" src="lamp-on.png"></a></td>
         <td width="30"><a href="eventghost.html?soverom_OFF"><img border="0" src="lamp-off.png"></a></td>
      </tr>
    </table>
  </body>
</html>
Attachments
prew.JPG
prew.JPG (11.2 KiB) Viewed 1712 times
User avatar
jinxdone
Plugin Developer
Posts: 443
Joined: Tue Jan 02, 2007 4:08 pm

Re: Problem with webserver, can only click once.

Post by jinxdone »

Hi,

This is a feature of your web-browser. When you click on a link the browser will may notice it already is on that page and skip loading it again, or another possibility is that it loads it from the cache. In either case the HTTP request is not sent to the webserver plugin.

Adding these html meta tags should help with the problem.

Code: Select all

<html>
  <head>
 	<META HTTP-EQUIV="CACHE-CONTROL" CONTENT="NO-CACHE">
 	<META HTTP-EQUIV="PRAGMA" CONTENT="NO-CACHE">
    <title>Lys</title>
  </head>
  <body>
    <table border="0">
      <tr>
        <td width="120">Hj├©rnelampe</td>
        <td width="30"><a href="eventghost.html?hjornelampe_ON"><img border="0" src="lamp-on.png"></a></td>
        <td width="30"><a href="eventghost.html?hjornelampe_OFF"><img border="0" src="lamp-off.png"></a></td>
      </tr>
      <tr>
         <td width="120">Spisebord</td>
         <td width="30"><a href="eventghost.html?spisebord_ON"><img border="0" src="lamp-on.png"></a></td>
         <td width="30"><a href="eventghost.html?spisebord_OFF"><img border="0" src="lamp-off.png"></a></td>
      </tr>
      <tr>
         <td width="120">Soverom</td>
         <td width="30"><a href="eventghost.html?soverom_ON"><img border="0" src="lamp-on.png"></a></td>
         <td width="30"><a href="eventghost.html?soverom_OFF"><img border="0" src="lamp-off.png"></a></td>
      </tr>
    </table>
  </body>
</html>
-jinxdone
Jostein
Experienced User
Posts: 108
Joined: Sun Feb 15, 2009 12:59 pm

Re: Problem with webserver, can only click once.

Post by Jostein »

Thanks jinxdone

That did it, works great now.
Post Reply