Foros: 公開ディスカッション (Thread #30146)

アンパサンド表示時エラーについて (2011-08-15 11:18 by Anónimo #59152)

アンパサンド(&)をラベルに出力しようすると「maskat.autoCallBackFunc呼び出し時(受信電文処理)にエラーが発生しました。:[object Error]」が表示されます。

これはアンパサンドがマスカットの予約文字であることを推測しますが、標準機能での回避策等ありますでしょうか?

なければ、全角アンパサンドに置き換えなどして対応しようと思っています。

以上、お手数ですがご教授よろしくお願い致します。

Responder al #59152×

You can not use Wiki syntax
You are not logged in. To discriminate your posts from the rest, you need to pick a nickname. (The uniqueness of nickname is not reserved. It is possible that someone else could use the exactly same nickname. If you want assurance of your identity, you are recommended to login before posting.) Entrar

RE: アンパサンド表示時エラーについて (2011-08-15 11:57 by kominen #59153)

手元で簡単なサンプルを作成して確認しましたが、問題なく動作させることができました。

■レイアウト定義
<?xml version="1.0" encoding="UTF-8"?>
<layoutDef xmlns:dojo="http://maskat.sourceforge.jp/widget/dojo/1.0.0">
<layout name="layout">
<label name="lblNew1" top="75" left="15" text="新規ラベル"/>
<button name="btnNew" top="75" left="105" width="88" tabIndex="-1" title="新規ボタン" adaptToText="false"/>
</layout>
</layoutDef>

■イベント定義
<?xml version="1.0" encoding="UTF-8"?>
<eventDef>
<component id="btnNew">
<event id="onclick" start="setValue" type="local"/>
</component>
</eventDef>


■コールバック関数
function setValue(event) {
event.layout.getWidget("lblNew1").setValue("&");
}

お手数ですが、どのようなレイアウト/イベント定義を行ったのか、
コールバック関数の内容も併せてお教えいただけませんか?
Responder al #59152

Responder al #59153×

You can not use Wiki syntax
You are not logged in. To discriminate your posts from the rest, you need to pick a nickname. (The uniqueness of nickname is not reserved. It is possible that someone else could use the exactly same nickname. If you want assurance of your identity, you are recommended to login before posting.) Entrar