English 中文(简体)
我在什么地方用掉了美元,去除所有杂货移动电话?
原标题:Where do I put the $.mobile.hidePageLoadingMsg(); to disable all jQuery Mobile loading messages?

哪里,该法典的哪里适用于铁路应用? 哪一个档案,以及是否有其他的 surrounding子? 是否有任何人有完全的事例说明如何消除 j装电? 我先读到这些文件,但我认为,文件没有明确涵盖的确实是基本的一米缺失。

成就

申请:js

//= require jquery
//= require jquery_ujs
//= require jquery.mobile

申请:mobile.js

//= require jquery.mobile

申请。

*= require_self
*= require jquery.mobile
*= require scaffolds.css

申请:

*= require_self
*= require jquery.mobile

Gemfile

source  http://rubygems.org 

gem  rails ,  3.2.2 

# Bundle edge Rails instead:
# gem  rails ,     :git =>  git://github.com/rails/rails.git 

gem  pg 
gem  thin 

group :assets do
 gem  sass-rails ,    ~> 3.2.3 
 gem  coffee-rails ,  ~> 3.2.1 
 gem  uglifier 
end

gem  jquery-rails 
gem  mobylette 
gem  jquery_mobile_rails 

group :test, :development do
 gem  rspec 
 gem  rspec-rails 
 gem  sqlite3 
end

申请:html.erb

<!DOCTYPE html>
<html>
<head>
  <title>Mobile Version!</title>
  <meta name="viewport" content="width=device-width, initial-scale=1">

<link rel="stylesheet" href="http://code.jquery.com/mobile/1.1.0/jquery.mobile-1.1.0.min.css" />
<script src="http://code.jquery.com/jquery-1.6.4.min.js"></script>
<script src="http://code.jquery.com/mobile/1.1.0/jquery.mobile-1.1.0.min.js"></script>

  <%= javascript_include_tag "application" %>
  <script type= text/javascript >
    $.mobile.hidePageLoadingMsg();
  </script>
  <%= stylesheet_link_tag    "application" %>

  <%= javascript_include_tag "申请:mobile.js" %>
  <%= stylesheet_link_tag    "申请:" %>

  <%= csrf_meta_tags %>

</head>
<body>
<div data-role="page">

    <%= yield %>

  <div data-role="footer" data-position="fixed">
    <div data-role="navbar">
      <ul>
        <li>
          <%= link_to notes_path, :class => ("ui-btn-active" if action_name ==  index ), :"data-icon" => "home", :"data-iconpos" => "top" do %>
            Home
          <% end %>
        </li>
        <li>
          <%= link_to new_note_path, :class => ("ui-btn-active" if action_name ==  new ), :"data-icon" => "plus", :"data-iconpos" => "top" do %>
        New Note
          <% end %>
         </li>
        </ul>
    </div>
  </div>
</div>
</body>
</html>
最佳回答

从本质上讲,这里的故事的道德是DONT用户宝库,用于移动酒。 说他们不做任何工作是少报......他们获得95%的工作,但是,他们pu然地认为,首先要利用他们。 这些宝石似乎:(1) 具备在铁路和(或)吉斯机动车的遥控条件下进行现场勘测的内在能力;(2) 突然和间接地被其金字塔所有者除名;(3) 造成非常少见的汽车错误;(4) 完全有利于将电离线(实际上对冲破方式)列入法典,而不是仅仅首先使用红树移动热线。

Save yourself a ton of Headaches and Just usehotlinks. 否则,你会赢得一辆由吉列斯流动宝石公司赞助的全价带薪休假(最新版本几乎保证不再使用,完全无用)。

申请:html.erb

    <title>Hello</title>

    <link rel="stylesheet" href="http://code.jquery.com/mobile/1.1.0/jquery.mobile-1.1.0.min.css" />
    <script src="http://code.jquery.com/jquery-1.6.4.min.js"></script>
    <script src="http://code.jquery.com/mobile/1.1.0/jquery.mobile-1.1.0.min.js"></script>

    <%= stylesheet_link_tag    "application", :media => "all" %>
    <%= javascript_include_tag "application" %>
问题回答

我认为,你可能会误解<代码>$.mobile.hidePageloadingMsg();方法 a bit。 我当然可以理解这种混淆。 在JQM中,你可以使用<代码>$.mobile.showPageloadingMsg();,然后使用<代码>$.mobile.hidePage LoadingMsg();来隐瞒电文。 您可以自行分析某些内容。

为消除装货信息,你可以在这里使用我的榜样。

<script src="//code.jquery.com/jquery-1.7.1.min.js" type="text/javascript"></script>
<script>
$(document).bind("mobileinit", function(){
  $.mobile.loadingMessage = false;
});
</script>
<script src="//code.jquery.com/mobile/1.1.0/jquery.mobile-1.1.0.min.js"></script>

具有机动性的约束被用于混淆联合后勤公司的违约情况。 必须在贵格文和JQM提及适当工作之间找到。 http://jquerymobile.com/demos/1.1.0/docs/api/globalconfig.html

为了在你的所有网页上进行这一运行,所有时间,或许最好在座标/问答/申请中。 这假定你正在使用广泛的应用布局。 如果你刚刚用3.X装置了一条新的铁路,那么你会这样做。

使其发挥作用的最简单方式是将其置于布局的头部(目前资产管道)。

象(我不敢肯定)这样说,那是你DON T想等到DOM在你管理法典之前装满的 j。 因此,我是在违约的javascript_include_tag,即铁路公司与布局中的发电机相配的:

  <%= javascript_include_tag "application" %>
  <script type= text/javascript>
    $.mobile.hidePageLoadingMsg();
  </script>

如果这还不成trick,那么你就不得不把 app/资产/javascripts/application.js表示出来,在装满舱后进入一条新线,而这条线将称为含有这一条码的 j。





相关问题
rails collection_select vs. select

collection_select and select Rails helpers: Which one should I use? I can t see a difference in both ways. Both helpers take a collection and generates options tags inside a select tag. Is there a ...

SSL slowness in EC2

We ve deployed our rails app to EC2. In our setup, we have two proxies on small instances behind round-robin DNS. These run nginx load balancers for a dynamically growing and shrinking farm of web ...

Auth-code with A-Za-z0-9 to use in an URL parameter

As part of a web application I need an auth-code to pass as a URL parameter. I am currently using (in Rails) : Digest::SHA1.hexdigest((object_id + rand(255)).to_s) Which provides long strings like : ...

RubyCAS-Client question: Rails

I ve installed RubyCAS-Client version 2.1.0 as a plugin within a rails app. It s working, but I d like to remove the ?ticket= in the url. Is this possible?

activerecord has_many :through find with one sql call

I have a these 3 models: class User < ActiveRecord::Base has_many :permissions, :dependent => :destroy has_many :roles, :through => :permissions end class Permission < ActiveRecord::...

Ordering a hash to xml: Rails

I m building an xml document from a hash. The xml attributes need to be in order. How can this be accomplished? hash.to_xml

Text Editor for Ruby-on-Rails

guys which text editor is good for Rubyonrails? i m using Windows and i was using E-Texteditor but its not free n its expired now can anyone plese tell me any free texteditor? n which one is best an ...

How to get SQL queries for each user where env is production

I’m developing an application dedicated to generate statistical reports, I would like that user after saving their stat report they save sql queries too. To do that I wrote the following module: ...

热门标签