問題タブ [mootools-more]

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 投票する
1 に答える
141 参照

javascript - Mootools は、xhr-request のフォームと grep の値を反復処理します

次のような XHR リクエストで使用できるように、a からすべての値を取得し<form>て mootools/json に解析することは可能ですか?

現時点では、テキスト入力フィールドしかありません。json では、入力名または ID を値のキーとして使用したいと考えています。例えば:

// 上記の mootools スクリプトの解析をこれに:

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

javascript - 入力フィールドの値を含めて Mootools get('html') を作成する方法

HTML 入力フィールドがあり、それらを直接入力で変更すると、実際には値属性を変更する必要があります。しかし、HTML レコード全体を取得しようとすると、古い値の属性が表示されます。HTMLが上書きされていないので、どういうわけかこれは明らかですが、変更された入力値を含むHTMLが必要です。どうすればアプローチできますか?

例:

http://jsfiddle.net/hJtzc/1/

常にアラート:

しかし、私が得る必要があるのは:

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

debugging - Mootools 'Uncaught TypeError: オブジェクトのプロパティ 'container' # is not a function' error when accordion added

I'm working with a site developed by an external developer. I've noticed the code they use for accordions only supports a fixe

I'm working with a site developed by an external developer. I've noticed the code they use for accordions only supports a fixed number of accordion items per page (even though their CMS can create an unlimited amount of items marked as being displayed accordion-style). I'm trying to tidy this up to avoid confusing my colleagues later down the line.

I'm trying to add a standard Mootools more accordion, but when I add it to a page I get the error below:

Uncaught TypeError: Property 'container' of object # is not a function mootools-core-1.4.5-full-compat.js:683

Here's an example page - the links in tags below 'Session details - Click the titles below for more information on each session.' should all be accordions.

I'm calling this code at the bottom of my page from http://www.aua.ac.uk/scripts/accordion.js:

Using these versions of Mootools (referenced at the top of the page in the head):

mootools-core-1.4.5-full-compat.js and mootools-more-1.4.0.1.js

Here is a fiddle using those verions of mootools, a portion of the HTML from my page, and the same accordion code - and it's all working. I think there is a conflict somewhere on my full page but I can't work out where.

http://jsfiddle.net/bcfu2/5/

Does anyone have any idea how to either fix this, or where to start debugging it - other than removing code/links to JS files one by one?


the array should be a string

quotes not needed if the productcode is an integer

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

javascript - mootools のどのモジュールを使用していますか?

すべての mootools more モジュールがアプリに含まれていますが、使用していないモジュールを削除したいと思います。mootools に依存するスクリプトから始めて、使用しているモジュールをすばやく知る方法はありますか?

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

javascript - Form.Request イベントが発生しない

MooTools のイベントに問題がありますForm.Request():

イベントはonSuccess幸せを引き起こしますが、onRequestイベントは何もしません。私は何かを見落としていますか?

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

google-chrome - MooTools More "new Date().parse()" が Chrome / WebKit で間違った月を返す

最新のMooTools Core & More 1.5 ( jsFiddle で表示)を使用したこのスニペットを検討してください。

このコードを実行すると、通常、次の行に沿って何かが得られます

ただし、Chrome (38.0.2125.104 m) または PyQt 4 WebKit ウィンドウ使用し、ロシアのタイム ゾーン(名前に が含まれる Windows のものRTZ) を使用すると、日付は1 か月先になります

これは明らかに、Firefox や Internet Explorer、または明らかにロシア以外のタイム ゾーンでは発生しません。

理由を知っている人はいますか?

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

mootools - サイズ変更可能なメソッドを作成すると、入力フィールドがクリックできなくなります

私は本当に奇妙な振る舞いをしており、何が問題なのかを理解するために数日を費やしました.

MooTools のメソッドにより、入力フィールドがクリックできなくなります。理由がわかりません。

上記のコードでは、クラス 'class1' と 'class2' を持つ div のすべての子をサイズ変更可能にする必要があります。これは完全に機能しますが、入力フィールドをクリックできなくします。

誰かが同様の問題を抱えていましたか?

どんな種類の助けにも感謝します。

ありがとう

0 投票する
0 に答える
50 参照

slider - ノブが右の境界を越えてドラッグする [詳細 1.5.1]

Mootools More 1.5.1 Slider クラスを使用して素敵なスライダーを作成しているときに、「ノブ」を右にドラッグしすぎることがあることに気付きました。

次のスライダー シナリオを検討してください。

|--|~|----------------|

私はこれを行うことができます:

|---------------------||~|

親divがoverflow:hidden設定されている場合、これは良くありません。

これは、Slider クラスの Drag オブジェクトが、渡された要素 (ノブの親) の幅として左端の x 位置 ( limit.x[1]) を設定するために発生します。

この制限は、要素の幅からノブの幅を引いたものになると思います。

「ノブ」が「要素」の内側または外側(DOMの上下)にあるかどうかにかかわらず、同じ問題が発生します。

これを修正できる唯一の方法は、ハックを使用することでした:

このFiddleを確認してください(破損およびハッキングの例)。

ここで何か不足していますか?または、これはバグとして提起する必要がありますか?