20.01.2014 Views

Quickstart manual - ICPDAS-EUROPE

Quickstart manual - ICPDAS-EUROPE

Quickstart manual - ICPDAS-EUROPE

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

<br />

<br />

<br />

<br />

<br />

…<br />

<br />

Name of<br />

the form<br />

Name of “” inside the form. Here is “B2”.<br />

Because it is inside “form_B2”, then we must<br />

use the name of “form_B2.B2” to identify it.<br />

B. To post by buttons<br />

function ON_(form_obj, obj)<br />

{<br />

flag = confirm("turn ON ?");<br />

if(flag)<br />

{<br />

obj.value=1;<br />

if(GetUserID(form_obj)==true) form_obj.submit();<br />

}<br />

}<br />

function OFF_(form_obj, obj)<br />

{<br />

flag = confirm("turn OFF ?");<br />

if(flag)<br />

{<br />

obj.value=0;<br />

if(GetUserID(form_obj)==true) form_obj.submit();<br />

}<br />

Demo example: xphmi_02 and xphmi_05<br />

ON_ function is used for posting boolean<br />

value as “True” to the controller .<br />

OFF_ function is used for posting boolean<br />

value as “Fasle” to the controller .<br />

Display the current Boolean image. In this EX,<br />

0: “img/big_Tcircle_red0.jpg” ,<br />

1: “img/ big_Tcircle_red1.jpg”<br />

}<br />

function refresh_data()<br />

{<br />

B2.src = "img/big_Tcircle_red" + boolean_val[2] + ".jpg" ;<br />

}<br />

…<br />

The layout (or location) of the image object “B2” is<br />

defined here by the “

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!