Home / ... / Deluge 文 / クライアントサイド関数 / アラートボックス - Alert Box

アラートボックス - Alert Box


Deluge 文>クライアントサイド関数>アラートボックス(Alert Box)



概要

アラートボックスは、フィールド値が変更された時やフォームが読み込まれた時に、アラートメッセージ(警告)を表示します。 
ユーザ入力時(On User Input)
フィールドアクションや、読込時(on load) フォームアクションスクリプト内で使用されます。

 

構文

alert <テキスト>;

ここで、

  • テキスト - 表示するアラートメッセージ(警告)

 

使用例

ユーザによって日付が入力された時に、日付フィールド値がその年の何週目かを表示するサンプルです。

form  FormA
{

Date1
(
type = date
on user input
{
alert(input.Date1.getWeekOfYear() + "th week of the year");
}

)

}

 

 


 


    Post a comment

    Your Name or E-mail ID (mandatory)

     

    Note: Your comment will be published after approval of the owner.




     RSS of this page