問題タブ [tal]

For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.

0 投票する
2 に答える
306 参照

python - TAL を使用してアレイにアクセスする方法

画像へのパスとページ URL を含む配列を作成する python ファイルがあります。

TAL を使用して自分のページ内でこれにアクセスしたいと考えています。私は成功せずにこれを試しました

TAL を使用してアレイにアクセスするにはどうすればよいですか?

0 投票する
1 に答える
1163 参照

amazon - Amazon Fire TV は HbbTV アプリケーションをサポートしていますか?

Amazon Fire TV (この質問の投稿時点での元のリリース) がHbbTV仕様をサポートしているかどうかについての情報が見つかりません。

TAL フレームワークを使用してアプリを構築しています。Web App Tester Tool を使用して、Hello World アプリケーションを、ローカル サーバーでホストされている Web アプリとして Amazon Fire TV に正常に追加しました。

しかし、私はHbbTVと途方に暮れています。アマゾンは対応していないのでしょうか?いずれかの方法を示すドキュメントが見つかりません。

0 投票する
1 に答える
478 参照

html - これらの tal:xxx コマンドは何をしますか?

私のhtmlタグ内でこれらの「tal」コマンドが何をするのか、誰か説明してもらえますか? 私はそれらがテキスト属性言語コマンドであることを知りましたが、それらが何をするのか明確ではありません。

彼らは条件を評価していますか?またはプレースホルダー?説明してください。

0 投票する
1 に答える
4645 参照

javascript - スマート TV で HTML5 および Javascript アプリケーションをテストするにはどうすればよいですか?

HTML5 ベースの TV アプリを構築するための Javascript フレームワークであるTAL (TV Application Layer)と呼ばれるフレームワークを使用して TV アプリケーションを構築しています。

アプリケーションを実行localhostして、ブラウザでテストできます。Amazon のWeb App Testerツールを使用して、Amazon Fire TV でアプリを簡単にテストすることもできます。このツールは、WiFi ネットワーク経由でコンピューターで実行されている Web アプリにアクセスし、テレビで実行します。

ただし、他のセット トップ ボックスやスマート TV でこのアプリをテストするための一般的な方法を見つけるのに苦労しています。

個々のデバイスごとに SDK をダウンロードして、何らかの方法でパッケージ化する必要がありますか? もしそうなら、これに対する一般的なアプローチは何ですか?

個々のメーカーのドキュメントは、SDK を使用してアプリを構築することにのみ焦点を当てているようで、自分で作成した HTML5 アプリに関するサポートは提供していません。

私はこれを始めたばかりなので、正しい方向への指針は大歓迎です。

0 投票する
1 に答える
84 参照

pyramid - TAL を使用したネストされたリスト

Pyramids Framework で Chameleon を使用しており、テンプレートのレンダリング中にネストされたリストを繰り返したいと考えています。

私の最小化された HTML コードは次のとおりです。

これにより、次のjson-Dataを取得しました

HTML 行 4.-6. を kill すると、すべて問題ありません。そうしないと、Pyramid/Chameleon がスローします:

誰かアイデアはありますか?

0 投票する
2 に答える
494 参照

javascript - html checkbox with required attribute is validated(red) before submitting

I have this checkbox:

And this button to submit:

All inside a form. If the checkbox has an invalid value, it is red from the opening of the page on and not only after pressing the button. Does anyone know how to change that?

Edit (extra info): I don't want the checkbox to be red. I want it to bei normal until i press the button "Wirksamkeit". Than it should turn red, if the value of the checkbox is invalid

Edit:

Here is the full code:

And here is an drop-down menu where it works like i want it to. The drop-down menu gets red only after I clicked the freigeben button.

The code might look a little weird, because it is a 3-state checkbox and the third state (default) is the only invalid state.

I tried it with an normal 2StateCheckbox for testing and it worked like i would expect. I think the problem is, that i'm setting the property "checked" false. (I think so because, if i'm clicking on the normal Checkbox and setting the value invalid (unchecked) and than setting the focus to another element it also turns red). But I still have no idea how to fix this problem. I already tried to set the focus on another element. I also set the property with jQuery after setting the checked property to false (in other words first $("#effectiveness").prop("checked", false); and second $("#effectiveness").prop('required', true); without setting the required property inside the html tag). But nothing of that worked.