問題タブ [jquery-1.8]

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

javascript - jQuery 1.8:サポートされていない疑似:ホバー

次のコードはjQuery1.8でエラーunsupported pseudo: hoverを発生させますが、jQuery1.7.2では完全に機能します。

誰かが何が起こっているのか知っていますか?

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

javascript - jquery.includeとjquery 1.8の間の競合

キャッシュに読み込まれた場合でも、画像の読み込みに関連しています。バージョン 1.7.2 ではすべて問題ありませんでしたが、今は promises() に問題があります

0 投票する
6 に答える
23528 参照

jquery - jQuery 1.8の外側の高さ/幅が機能しない

私は多くの場所でouterHeightandを使用しました。outerWidthさて、jQuery 1.8 がリリースされた後、サイズではなくオブジェクトの戻りによって引き起こされる多くの問題に遭遇しました。

例えば:

width()これを修正するために私が見つけた唯一のことは、次のように関数で「true/false」を使用することでしたが、標準およびheight()関数と同じ結果が得られます。

要素の高さ/幅+そのマージンを取得するために、これが機能しなくなった理由や他の方法を知っている人はいますか?

contents()編集:関数を使用してiframeの要素を選択しているため、これが原因であると信じ始めました。デモを作ってみます。

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

jquery - jQuery 1.8はイベントハンドラーを見つける

jQuery 1.8+でオブジェクトのイベントハンドラを見つける方法は?

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

jquery - 「オブジェクト # has no method 'on'" in jQuery 1.8 when trying to trigger click events on dynamically loaded elements

I am using jQuery 1.8 and have been getting this error on some pages when I use the .on() function. Other pages, seemi

I am using jQuery 1.8 and have been getting this error on some pages when I use the .on() function. Other pages, seemingly doing the exact same thing -- attaching triggers to dynamically created elements, that I use do not generate this error:

JS:

All dynamically generated 'pagebutton' buttons, don't trigger. And the error shows up. If I use the .live() method that is deprecated, no problems. But I prefer to use the proper new 1.8 non-deprecated method, if possible?


Using stringstream to tokenize a string with different delimeters

How can you use stringstream to tokenize a line that looks like this.

[label] opcode [arg1] [,arg2]

The label may not always be there but if it isn't, there will be a white space. The opcode is always there and there is a space or tab in between opcode and arg1. Then there is no whitespace in between arg1 and arg2 but it is split by a comma.

Also, some blank lines will have white space on them so they need to be discarded. '#' is a comment

So for instance:

This is just an example of the text file I'll be reading in from. So in label for line one would be TOP and opcode would = NOP with no arguments being passed.

I've been working on it but I need a simpler way to tokenize and from what I've seen, stringstream seems to be the one I'd like to use so if anyone can tell me sort of how to do this, I'd really appreciate it.

I've been racking my brain on how to do this and just to show you that I'm not just asking without working, here is my current code:

I would obviously like to make this much much better so any help would be greatly appreciated.

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

jquery - 1.8.2 にアップグレードした後、JQuery animate が機能しなくなった

非常に単純です... JQuery を 1.4.1 から 1.8.2 にアップグレードしたところ、次のコードが機能しなくなりました。

なぜこれが起こったのかについて何か提案はありますか?

0 投票する
7 に答える
16498 参照

jquery - Firefoxが$(window).height()の値として0を返すのはなぜですか

Firefoxは、を使用するときに適切な値を返すように、より適切に装備されている必要があるように思われます$(window).height()

jQuery1.8.2を使用しています。これはその特定のビルドのバグですか?私がテストした他のすべてのブラウザは、ビューポートの高さを計算するときに適切な値を返します。

これを回避するために、以下のスニップを使用してピクセル値をdivに適用しました。

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

ajax - Symbian 用 PhoneGap アプリ | 「アプリケーションは終了しました: WidgetUi KERN-EXEC 3」

symbian 用の phonegap アプリを開発しています (symbian 用の cordova はhereから取得しています)

ajaxアプリが実行リクエストを開始してから 3 ~ 5 秒後に、次のエラーが表示されます。

ここに画像の説明を入力

多分誰かがこの問題に直面しましたか?


アップデート1:

私はクロスドメインのajaxリクエストを行いますjquery mobile 1.8.1

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

javascript - 1.8 Sizzle 用の jQuery 式/セレクターの書き直し

少し前に、イベントの重複バインディングの防止について質問しました[こちら] 1.8 の式を更新しようとしていますが、機能しません。

オリジナル:

私の失敗した試み:

利用方法:

これは機能します:

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

javascript - jQuery 1.8:Ajax beforeSendはdeferred.done()の実行を防ぎます

このコードを1.7で実行すると、アラートが表示されますが、1.8では表示されません。

jQueryのドキュメント、1.8リリースノート、またはこの問題に言及しているjQueryバグトラッカーには何も見つかりませんでした。どの動作が正しいのか、誰かがバグチケットまたはGithubコミットへのリンクを提供できるのかどうか疑問に思っています。

この問題のフィドルは次のとおりです。

http://jsfiddle.net/zJddg/