Input type checkbox

Hi

I changed the input type from “checkbox” to “text” and it solved two problems and created another.
One that solved was that the “0.00” in the widget boxes disappeared; but the ability of the triangle to point either up or down according to the direction of the exchage rate stopped working.

I would like it to work while keeping the “0.00” from appearing, and want the changes I made to the problem page

Problem in http://pintotours.net/Europe/Spain/Denis.html

No problem in http://pintotours.net/Europe/Spain/Barcelona.html

There is code in the script which I believe is connected to this, but cannot understand why a change of input type can render the triangle inoperative.

swop.onclick=function() {
if(this.checked==true) {
   amount1.value=amount0.value;
   amount0.value=(rates[cur0.value]*amount1.value/rates[cur1.value]).toFixed(2);
   document.getElementById('lab').innerHTML='&#9650';
  
 }
else {
   amount0.value=amount1.value;
   amount1.value=(rates[cur1.value]*amount0.value/rates[cur0.value]).toFixed(2);
   document.getElementById('lab').innerHTML='&#9660';
   test=true;
  }
 }

A text field can’t be checked so this.checked==true will ALWAYS fail

Right…

For someone whi knows nothing of javascript, I assume that the answer is to change the “checked” in (this.checked==true) to something else.

What, if I may ask?

Hi there qim,

check out the attachment, which, I believe, now
fully addresses all your known problems. :sunglasses:

But being qim, I am pretty sure that will not rest
until you have dreamed up some more. :confused:

amended-converter.zip (7.6 KB)

coothead

Hi there qim,

I have noticed a minor error in the php part of the converter.js file. :cold_sweat:

The time is shown as “EST”. :ng:

Open up the file and simply change this line…

$time="'$node EST'";
…to…

$time="'$node'";

coothead

Hi coothead

I’ve just noticed your post and realized that the code has London time claiming to be EST.

In fact, I would prefer it to be EST, which I believe was correct before.

Thanks

This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.