English 中文(简体)
铁路部分和简单的运输方式
原标题:Rails partials and Simplemodal jQuery plugin

首先,对标题表示怀疑,不能想象任何真正的描述。

因此:

我有一个网站(实物社会网络),必须列出接触卡(贴身个人卡和胎体)。

该卡有两种版本:小型和完整。 当你看到10个接触清单时(例如,请看10个小卡,当你点击其中之一时,你就应该用一种方式打开完整的卡片(我选择了这种简单模式。

I ve创建了2个部分:card_smallcard_full。 两人都期望当地人=和;

www.un.org/Depts/DGACM/index_spanish.htm 因此,你建议如何这样做?

  • Would you just render the 10 small cards along with their full version hidden and open the modal via jquery on small-card click?
  • Would you just render the small cards to the browser and then make links_to_remote that returns the JS code that renders the full card partial?

欢迎任何其他解决办法或铁路。 页: 1

www.un.org/Depts/DGACM/index_spanish.htm 问题的一般形式: 我需要一种办法,即有2个部分(小数和全数),当小小点被点击时,整一个部分都需要在示范方言中展示。

感谢!

最佳回答

这纯属业绩权衡。 这取决于你最终在网页上有多少卡片。 你不想cra笑,有1,000份你可能不需要的物品,但是,如果只剩10份,可能要把这些物品藏在网页上,就会被罚款。 这样,答复就不需要再次向服务器提出请求,也无需任何拖延。

问题回答

我只是把他们直接装上。

这里没有理由。 创建非洲宇宙航空研究开发机构只会造成更多的数据库电话。

Edit(以英语发言):正如完全了解的那样,如果你有1,000人,你很可能需要不同的解决办法。 此时此刻,我只将它限制在每页约50处。





相关问题
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: ...

热门标签