問題タブ [scribd]
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.
html - scribd html5 はどうですか?
わかりません... Scribd html5 はどうですか?
答えを探して..私が反対した最も近いものはここにあります: http://loud.anotherquietday.com/post/598121586/scribds-html5-is-a-mess
何か理由はありますか?
cakephp - Cakephp 1.2で利用可能なScribd Apiコンポーネントはありますか
scribd API 用の scribd cakephp コンポーネントはありますか。
助けていただければ幸いです。
ありがとう。
ruby-on-rails - ScribdFu::ScribdFuUploadError (申し訳ありませんが、ScribdFile #6 を Scribd にアップロードできませんでした) の原因は何ですか?
現在構成中の rails-project でファイル (200kb の単純な pdf ファイル) をアップロードしようとすると、次のエラーが発生します。
(申し訳ありませんが、ScribdFile #6 は Scribd にアップロードできませんでした)
何が問題なのかを知るにはどうすればよいですか? Windows 7 を使用しています。別のシステム (Windows 7 も) で同じ構成を問題なく実行しています。
これは完全なスタックです(役立つ場合):
C:/Ruby/lib/ruby/gems/1.8/gems/scribd_fu-2.0.9/lib/scribd_fu.rb:72:「アップロード」
C:/Ruby/lib/ruby/gems/1.8/gems/scribd_fu-2.0.9/lib/scribd_fu.rb:189:`upload_to_scribd' 内
C:/Ruby/lib/ruby/gems/1.8/gems/activesupport-2.3.5/lib/active_support/callbacks.rb:178:in `send'
C:/Ruby/lib/ruby/gems/1.8/gems/activesupport-2.3.5/lib/active_support/callbacks.rb:178:in `evaluate_method'
C:/Ruby/lib/ruby/gems/1.8/gems/activesupport-2.3.5/lib/active_support/callbacks.rb:166:in `call'
C:/Ruby/lib/ruby/gems/1.8/gems/activesupport-2.3.5/lib/active_support/callbacks.rb:93:「実行」中
C:/Ruby/lib/ruby/gems/1.8/gems/activesupport-2.3.5/lib/active_support/callbacks.rb:92:in `each'
C:/Ruby/lib/ruby/gems/1.8/gems/activesupport-2.3.5/lib/active_support/callbacks.rb:92:in `send'
C:/Ruby/lib/ruby/gems/1.8/gems/activesupport-2.3.5/lib/active_support/callbacks.rb:92:in `run'
C:/Ruby/lib/ruby/gems/1.8/gems/activesupport-2.3.5/lib/active_support/callbacks.rb:276:in `run_callbacks'
C:/Ruby/lib/ruby/gems/1.8/gems/activerecord-2.3.5/lib/active_record/callbacks.rb:344:`コールバック'
C:/Ruby/lib/ruby/gems/1.8/gems/activerecord-2.3.5/lib/active_record/callbacks.rb:251:in `create_or_update'
C:/Ruby/lib/ruby/gems/1.8/gems/activerecord-2.3.5/lib/active_record/base.rb:2538:`save_without_validation'で
C:/Ruby/lib/ruby/gems/1.8/gems/activerecord-2.3.5/lib/active_record/validations.rb:1078:`save_without_dirty' で
C:/Ruby/lib/ruby/gems/1.8/gems/activerecord-2.3.5/lib/active_record/dirty.rb:79:`save_without_transactions' で
C:/Ruby/lib/ruby/gems/1.8/gems/activerecord-2.3.5/lib/active_record/transactions.rb:229:in `send'
C:/Ruby/lib/ruby/gems/1.8/gems/activerecord-2.3.5/lib/active_record/transactions.rb:229:in `with_transaction_returning_status'
C:/Ruby/lib/ruby/gems/1.8/gems/activerecord-2.3.5/lib/active_record/connection_adapters/abstract/database_statements.rb:136:「トランザクション」で
C:/Ruby/lib/ruby/gems/1.8/gems/activerecord-2.3.5/lib/active_record/transactions.rb:182:「トランザクション」
C:/Ruby/lib/ruby/gems/1.8/gems/activerecord-2.3.5/lib/active_record/transactions.rb:228:in `with_transaction_returning_status'
C:/Ruby/lib/ruby/gems/1.8/gems/activerecord-2.3.5/lib/active_record/transactions.rb:196:`保存'
C:/Ruby/lib/ruby/gems/1.8/gems/activerecord-2.3.5/lib/active_record/transactions.rb:208:in `rollback_active_record_state!'
C:/Ruby/lib/ruby/gems/1.8/gems/activerecord-2.3.5/lib/active_record/transactions.rb:196:`保存'
C:/Ruby/lib/ruby/gems/1.8/gems/rubyist-aasm-2.1.1/lib/aasm/persistence/active_record_persistence.rb:196:in `aasm_write_state'
C:/Ruby/lib/ruby/gems/1.8/gems/rubyist-aasm-2.1.1/lib/aasm/aasm.rb:107: in `set_aasm_current_state_with_persistence'
C:/Ruby/lib/ruby/gems/1.8/gems/rubyist-aasm-2.1.1/lib/aasm/aasm.rb:160:`aasm_fire_event'で
C:/Ruby/lib/ruby/gems/1.8/gems/rubyist-aasm-2.1.1/lib/aasm/aasm.rb:61:in
convert!' c:/xampp/htdocs/lightbulb/app/models/scribd_file.rb:30:in
after_initialize'C:/Ruby/lib/ruby/gems/1.8/gems/activerecord-2.3.5/lib/active_record/callbacks.rb:347:in `send'
C:/Ruby/lib/ruby/gems/1.8/gems/activerecord-2.3.5/lib/active_record/callbacks.rb:347:`コールバック'
C:/Ruby/lib/ruby/gems/1.8/gems/activerecord-2.3.5/lib/active_record/base.rb:2441: in `initialize'
c:/xampp/htdocs/lightbulb/app/controllers/attachments_controller.rb:51:「新規」
c:/xampp/htdocs/lightbulb/app/controllers/attachments_controller.rb:51:「create_attachment」内
c:/xampp/htdocs/lightbulb/app/controllers/attachments_controller.rb:49:「それぞれ」で
c:/xampp/htdocs/lightbulb/app/controllers/attachments_controller.rb:49:「create_attachment」内
c:/xampp/htdocs/lightbulb/app/controllers/attachments_controller.rb:12:「作成」
C:/Ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.5/lib/action_controller/base.rb:1331:in `send'
C:/Ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.5/lib/action_controller/base.rb:1331:in `perform_action_without_filters'
C:/Ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.5/lib/action_controller/filters.rb:617:in `call_filters'
C:/Ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.5/lib/action_controller/filters.rb:610:in `perform_action_without_benchmark'
C:/Ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.5/lib/action_controller/benchmarking.rb:68:in `perform_action_without_rescue'
C:/Ruby/lib/ruby/gems/1.8/gems/activesupport-2.3.5/lib/active_support/core_ext/benchmark.rb:17: in `ms'
C:/Ruby/lib/ruby/1.8/benchmark.rb:308:「リアルタイム」で
C:/Ruby/lib/ruby/gems/1.8/gems/activesupport-2.3.5/lib/active_support/core_ext/benchmark.rb:17: in `ms'
C:/Ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.5/lib/action_controller/benchmarking.rb:68:in `perform_action_without_rescue'
C:/Ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.5/lib/action_controller/rescue.rb:160:in `perform_action_without_flash'
C:/Ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.5/lib/action_controller/flash.rb:146:in `perform_action'
C:/Ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.5/lib/action_controller/base.rb:532:in `send'
C:/Ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.5/lib/action_controller/base.rb:532:in `process_without_filters'
C:/Ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.5/lib/action_controller/filters.rb:606:in `process_without_compass'
C:/Ruby/lib/ruby/gems/1.8/gems/chriseppstein-compass-0.8.17/lib/compass/app_integration/rails/action_controller.rb:7:「プロセス」内
C:/Ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.5/lib/action_controller/base.rb:391:「プロセス」内
C:/Ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.5/lib/action_controller/base.rb:386:in `call'
C:/Ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.5/lib/action_controller/routing/route_set.rb:437:in `call'
C:/Ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.5/lib/action_controller/dispatcher.rb:87:in `dispatch'
C:/Ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.5/lib/action_controller/dispatcher.rb:121:in `_call'
C:/Ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.5/lib/action_controller/dispatcher.rb:130:`build_middleware_stack' 内
C:/Ruby/lib/ruby/gems/1.8/gems/activerecord-2.3.5/lib/active_record/query_cache.rb:29:in `call'
C:/Ruby/lib/ruby/gems/1.8/gems/activerecord-2.3.5/lib/active_record/query_cache.rb:29:in `call'
C:/Ruby/lib/ruby/gems/1.8/gems/activerecord-2.3.5/lib/active_record/connection_adapters/abstract/query_cache.rb:34:「キャッシュ」内
C:/Ruby/lib/ruby/gems/1.8/gems/activerecord-2.3.5/lib/active_record/query_cache.rb:9:`キャッシュ'
C:/Ruby/lib/ruby/gems/1.8/gems/activerecord-2.3.5/lib/active_record/query_cache.rb:28:in `call'
C:/Ruby/lib/ruby/gems/1.8/gems/activerecord-2.3.5/lib/active_record/connection_adapters/abstract/connection_pool.rb:361:in `call'
C:/Ruby/lib/ruby/gems/1.8/gems/haml-3.0.24/lib/sass/plugin/rack.rb:41:in `call'
C:/Ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.5/lib/action_controller/string_coercion.rb:25:in `call'
C:/Ruby/lib/ruby/gems/1.8/gems/rack-1.0.1/lib/rack/head.rb:9:in `call'
C:/Ruby/lib/ruby/gems/1.8/gems/rack-1.0.1/lib/rack/methodoverride.rb:24:in `call'
C:/Ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.5/lib/action_controller/params_parser.rb:15:in `call'
C:/Ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.5/lib/action_controller/session/cookie_store.rb:93:in `call'
C:/Ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.5/lib/action_controller/failsafe.rb:26:in `call'
C:/Ruby/lib/ruby/gems/1.8/gems/rack-1.0.1/lib/rack/lock.rb:11:in `call'
C:/Ruby/lib/ruby/gems/1.8/gems/rack-1.0.1/lib/rack/lock.rb:11:「同期」中
C:/Ruby/lib/ruby/gems/1.8/gems/rack-1.0.1/lib/rack/lock.rb:11:in `call'
C:/Ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.5/lib/action_controller/dispatcher.rb:106:in `call'
C:/Ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.5/lib/action_controller/cgi_process.rb:44:in `dispatch_cgi'
C:/Ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.5/lib/action_controller/dispatcher.rb:101:in `dispatch_cgi'
C:/Ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.5/lib/action_controller/dispatcher.rb:27:in `dispatch'
C:/Ruby/lib/ruby/gems/1.8/gems/mongrel-1.1.5-x86-mingw32/lib/mongrel/rails.rb:76:「プロセス」内
C:/Ruby/lib/ruby/gems/1.8/gems/mongrel-1.1.5-x86-mingw32/lib/mongrel/rails.rb:74:in `synchronize'
C:/Ruby/lib/ruby/gems/1.8/gems/mongrel-1.1.5-x86-mingw32/lib/mongrel/rails.rb:74:「プロセス」内
C:/Ruby/lib/ruby/gems/1.8/gems/mongrel-1.1.5-x86-mingw32/lib/mongrel.rb:159:`process_client' 内
C:/Ruby/lib/ruby/gems/1.8/gems/mongrel-1.1.5-x86-mingw32/lib/mongrel.rb:158:「それぞれ」
C:/Ruby/lib/ruby/gems/1.8/gems/mongrel-1.1.5-x86-mingw32/lib/mongrel.rb:158:`process_client' 内
C:/Ruby/lib/ruby/gems/1.8/gems/mongrel-1.1.5-x86-mingw32/lib/mongrel.rb:285:「実行」中
C:/Ruby/lib/ruby/gems/1.8/gems/mongrel-1.1.5-x86-mingw32/lib/mongrel.rb:285:「初期化」
C:/Ruby/lib/ruby/gems/1.8/gems/mongrel-1.1.5-x86-mingw32/lib/mongrel.rb:285:「新規」
C:/Ruby/lib/ruby/gems/1.8/gems/mongrel-1.1.5-x86-mingw32/lib/mongrel.rb:285:「実行」中
C:/Ruby/lib/ruby/gems/1.8/gems/mongrel-1.1.5-x86-mingw32/lib/mongrel.rb:268: in `initialize'
C:/Ruby/lib/ruby/gems/1.8/gems/mongrel-1.1.5-x86-mingw32/lib/mongrel.rb:268:「新規」
C:/Ruby/lib/ruby/gems/1.8/gems/mongrel-1.1.5-x86-mingw32/lib/mongrel.rb:268:「実行」中
C:/Ruby/lib/ruby/gems/1.8/gems/mongrel-1.1.5-x86-mingw32/lib/mongrel/configurator.rb:282: in `run'
C:/Ruby/lib/ruby/gems/1.8/gems/mongrel-1.1.5-x86-mingw32/lib/mongrel/configurator.rb:281:「それぞれ」
C:/Ruby/lib/ruby/gems/1.8/gems/mongrel-1.1.5-x86-mingw32/lib/mongrel/configurator.rb:281: in `run'
C:/Ruby/lib/ruby/gems/1.8/gems/mongrel-1.1.5-x86-mingw32/bin/mongrel_rails:128: in `run'
C:/Ruby/lib/ruby/gems/1.8/gems/mongrel-1.1.5-x86-mingw32/lib/mongrel/command.rb:212: in `run'
C:/Ruby/lib/ruby/gems/1.8/gems/mongrel-1.1.5-x86-mingw32/bin/mongrel_rails:281
C:/Ruby/bin/mongrel_rails:19:in `load'
C:/Ruby/bin/mongrel_rails:19
ruby-on-rails - scribd_fuは非常に時間がかかります(1 MB PDFの場合は約20分)
sribd_fuがPDFファイルの変換に非常に長い時間がかかる理由を知っていますか?1MBのPDFファイルでテストしました。変換には約20分かかりました。
scribd - Scribd のコンテンツを変更するにはどうすればよいですか?
私のウェブサイトに Scribd ファイルがあります: http://www.wellbeingbydesign.com/main/?cat=7
ウェブマスターが病気になったので、これらの Scribd ファイルにアクセスして編集する方法がわかりません。
ありがとう、
キャサリン
jquery - 埋め込み要素 (Flash) は、非表示にして再度表示すると、マウス ホイールのスクロールを占有します。
皆さん、私はいくつかの洞察をいただければ幸いです。悪名高い「Flash Hogging Keyboard Focus」の問題を調査しましたが、私たちの問題には、他の誰かがすでに遭遇した回避策が含まれている可能性があると思います。私は、stackoverflow や他のサイトで見つけたさまざまな解決策を試しました。以下に要約します。
Web アプリがあり、特定のインターフェイスが「タブ」として使用しているいくつかの div を読み込みます。ユーザーがいずれかのタブをクリックすると、現在の div が非表示になり、新しい div が再表示されます。メイン タブ (ページの読み込み時に読み込まれる) には、Scribd からドキュメントが埋め込まれ、Flash ムービーとして読み込まれます。ユーザーが Flash ムービーをクリックすると、通常どおりマウス/キーボードでスクロールし、ドキュメント コントロールの外側をクリックすると、期待どおりに戻ります。
ユーザーが別のタブに移動してから元のタブに戻り、埋め込み Flash をクリックしてそのタブ内を移動すると、埋め込み Flash がマウス スクロールの制御を奪い、それを放しません。ユーザーはこのドキュメントをクリックして矢印キーでスクロールし、次にドキュメントの外をクリックして矢印キーで親ウィンドウをスクロールできますが、マウスのスクロールは依然として埋め込まれた Flash ムービーにバインドされています。唯一の解決策は、ハード ページの更新です。
ユーザーが新しいタブをクリックしたときに試したこと: 古いタブが「ホーム」の場合、DOM から埋め込み要素を削除します:
saved_element = $('[name="flash_embed_object_name"]').remove();
新しいタブが「ホーム」の場合、要素を DOM に追加し直します。
$('#parent_div').append(saved_element);
これは機能しません。要素が DOM から削除されたことは確認できますが、要素が DOM に戻されると、以前と同じようにクリックするとマウスのスクロールが独り占めします。私も同様の解決策を試しましたが、呼び出した要素を削除する代わりに
$('[name="flash_embed_object_name"]').blur();
と $('#clicked_tab_div').focus();
しかし、これも役に立ちませんでした。他のアイデアはありますか?次に考えたのは、どうにかして Flash ムービーの再生を停止し、ページにフォーカスを戻す必要があるということです。
どんな入力でも大歓迎です。ありがとう!
jquery - Scribd を使用した Fancybox
別のウィンドウを開く代わりに Fancybox で Scribd を使用して iframe を開く方法はありますか?
python - 実験的な API を使用して Blobstore に大きなファイルを書き込む方法は?
ジレンマがあります.フレームワークとしてtipfyを使用して、scribdストアとblobstoreの両方にファイルをアップロードしています。blobstore.create_upload_url によってアクションが作成されない Web フォームがあります (url_for('myhandler') を使用しているだけです)。blobstore ハンドラーを使用している場合、POST 応答が解析され、通常の python-scribd API を使用してファイルを scribd ストアにアップロードできないためです。今、私はscribdセーバーを動かしています:
ご覧のとおり、ファイルもブロブストアに保存されます..しかし、大きなファイル(つまり5Mb)をアップロードしている場合、私は受け取っています
どうすれば修正できますか?ありがとう!
internet-explorer - Scribd API エンベダーと Internet Explorer (Drupal 内) の問題
そのため、クライアントが以前の開発者が構築したサイトで問題を発見したプロジェクトに取り組んでいます。彼らは、Scribd iPaper モジュールが安全なドキュメントを Firefox、Safari、および Chrome で正常にロードできることを発見しましたが、Internet Explorer ではそうではありませんでした。
IE では、まったくロードされません。このサイトは、Scribd によって資金提供された Drupal iPaper モジュールを使用していると思います。Flash リーダーを使用しています (安全なドキュメント用)。新しい HTML5 リーダーを使用するように切り替えますが、ドキュメントを保護する必要があり、HTML5 リーダーにはそのための機能がありません。
インターネットで答えを探しましたが、役に立たないものは見つかりませんでした。CSS または JS 関連の問題の可能性を疑っていましたが (IE がいかに不快であるかは誰もが知っています)、ページから両方をすべて削除しても、結果は同じままでした。
次に、別の解決策を見つけようとしたところ、Embedit.in が見つかりました。PHP ライブラリと Drupal モジュールを作成し、今週の月曜日にサービスが開始されました (アップロードされたファイルを変換しなくなり、サーバーの問題を主張しています)。docstoc を調べましたが、API を使用するには、スパムの問題によりリクエスト フォームが無効になっているため、電子メールで送信する必要があります。私は彼らに電子メールを送りましたが、返事がありません。私は PHP ライブラリと Drupal モジュールを自分で作成し、彼らと世界と共有することを提案しました (Embedit.in でもこれを行うつもりでした)。
また、埋め込みコードを使用して PDF をブラウザーに直接読み込むオプションも検討しました。Firefox を除くすべてでうまく機能します (適切なプラグインを取得するのに問題があり、他のすべてのブラウザーのようにデフォルトで Adobe Flash プラグインを使用しません)。
また、Mac で PDF2SWF をコンパイルしようとしましたが、うまくいきませんでした。サーバーでそれを使用できるかどうかさえわかりません。とにかく、製品サーバーへのSSHアクセスがありません(Subversion展開のみ)。
私はここでロープの終わりに近づいています。誰でも私に解決策はありますか?
次の能力が必要です。
- 書類を保護する
- Windows および Mac の IE、FF、および Safari での表示
- ユーザーが追加のプラグインを (Flash 以外で) ダウンロードする必要なく、ブラウザーに直接表示します。
- プログラムで設定でき、これは PDF で動作する必要があります。
ありがとう!