similar to: Using RJS to highlight one LI if using insert_html on an UL?

Displaying 20 results from an estimated 500 matches similar to: "Using RJS to highlight one LI if using insert_html on an UL?"

2006 May 21
0
UL/LI List helpers, or not?
Hello, I have a (bad) habit of abstracting nearly all my code. The DRY idea helps a lot. What I want is a simple helper to build UL LI lists: def unordered_list_tag(items => [], options => {}) if :items.count > 0 render :partial => ''application/unordered_list'', :locals => { items => :items, options => :options } end end And a simple
2006 Jul 26
3
insert_html inserting fragment twice
Has anyone had trouble with inline RJS insert_html with the latest version of Rails? My problem is that insert_html inserts the html fragment twice. For example, render :update do |page| page.insert_html :top, "some_list", "<li>booyow</li>" end would render "<li>booyow</li>" twice. Thanks. -- Posted via
2006 May 28
1
RJS template / page.insert_html problem
Hiall, I have a rjs template which is calling page[:xxx].replace_html ... a couple of times and this works perfectly. However, in the same rjs file I have two calls to page.insert_html, which do not work. No error in development.log, nor error message in browser, the new content for the div simply isn''t changed at all. This is my code: ... action = "save_" +
2006 Mar 22
1
page.insert_html and the :text argument
Hi, I''ve got a problem with .rjs templates. When I do page.insert_html :bottom, ''stylist_tablebox'', :text => "what ever" This is what I get: new Insertion.Bottom(''stylist_tablebox'', null); I tried this on Edge rails revision 3860 in an inline rjs update. Thanks in advance, Frederik
2007 May 07
0
page.insert_html
Hi everyone, In one of the actions i am using page.insert_html, t works fine in IE7 and Mozila. Is does not seem to work in IE6. Anyone aware of such problems... i''m stuck... any help is appreciated; the element i am inserting into is a <td> page.insert_html :after, ''company''+params[:id].to_s, :partial =>"group", :id => params[:id] and the aprtia
2006 Jun 07
0
using inline insert_html to generate uniquely named elements
Hello all, I?m using some inline rjs to add content with a unique id like so: In the <head>: function add_fields() { html = ''<div id="'' + new Date().getTime() + ''">''; html += "<%= escape_javascript(render :partial => ''field_set'') -%></div>"; new Insertion.After("whatever", html); } In
2008 Apr 23
0
Passing a hidden field to insert_html
I''m trying to pass a hidden field (item_property) to the add_link helper function but when I do it the process threads start eating up memory and my computer freezes. [code=helper.rb] def add_link(name) link_to_function name do |page| page.insert_html :bottom,:partial, :partial => ''item'', :object => Item.new(:item_property => "Some text")
2007 Jul 05
6
mocking methods in the controller.
Hi, I''m very new to rspec so please be patient with me. I''ve tried to take some of my tests out of the controller specs to check for things that are rendered. This has not worked so well, since my views have the controller method current_user in quite a few places. Is there any way that I can define this so that my views will be executed? Will this same thing occur for all
2009 Nov 18
4
rails newbie : routing error
After much ado about the naming of model adn controllers... model : Expense controller : Expenses route : map.resources :expenses Here I am using mysql database and created a unique index, since db:migrated created an id object and made it as primary key. Now in the def create @expense = Expense.new(params[:expense]) if @expense.save flash[:viola] = ''New expense saved.. be
2017 Feb 08
2
OpenGL context switching with Noveau
Dear Devs, (I hope this question is not that much OT for this list..) My question is about fast OpenGL context switching, i.e. when there are several processes using the same nvidia card, each one with their own OpenGL context. In my specific case, I am trying to dump 720p video simultaneously to multiple windows using OpenGL textures. So, to begin with, I have a process that spans child
2006 Feb 14
1
in a domU, 6 network interfaces wanted, only 3 seen
Hello, I need 6 virtual interfaces in a domU (which will be our firewall). I''ve created 6 bridges in dom0, configured everything correctly... When I start the domU, it can only see 3 of them : eth0, eth1, eth2. However, the bridges in dom0 are correctly configured, and I can see all 6 vifs (from vif<DOM_ID>.0 to vif<DOM_ID>.5) when using "brctl show". On the
2006 Jul 31
4
Login Password text field values
I have a text field that I use for logging in users. Due to the design of my site, I don''t have room to put the word "username" in front of the text field so I''d like to actually display it inside the field and then have the word clear when the user clicks on it. How could I modify something like this <%= text_field "user", "login", :size
2006 Feb 24
2
domain id
Hi All I am a newbie to the xen community and I am facing some crashes due to my code changes. A quick question: When i start a new domain with id being set to say "VM100" (the id that is shown in the xm list ouput), whats the id that will be stored in the domain structure? i.e struct domain *d ; d->id ?? Any help will be appreciated. Thanks Jaikumar
2008 Feb 13
6
trouble updating partial from collection
I have a view where I render a partial over a collection. Each instance of the partial includes a <div> with an id specific to that instance. Inside the partial, there is a select tag for "year". I''m trying to change some of the contents of the partial when user changes the year. I''m using this in the view: <%= select_tag :year,
2010 Feb 20
23
Rails 3 possible bug in Routing
Hi, I just ran into this ActionController::RoutingError and just wanted to check if someone can confirm this as a bug in the Rails 3 beta gem. config/routes.rb contains: get ''login'' => ''session#new'' post ''login'' => ''session#create'', :as => :login GET /login works fine: Started GET
2007 May 14
1
Updating to Qemu 0.90 breaks save/restore
Save/restore is ok against staging tree''s changeset 15020: d2ef85c6bf84, but is NOT ok against changeset 15021: 00618037d37d (Update to qemu 0.90). I use IA32pae HV; both SMP Windows 2K3 and FC5 can''t be saved properly. After "xm save dom_id 1.save" returns, Qemu window disappears, but "xm vcpu-list" still shows the domain has not been killed. If I
2017 Feb 08
1
OpenGL context switching with Noveau
For details see my presentation on day 3 of XDC2016. TL;DW: A context switch on average takes ~25 microseconds, but depending on the display resolution and the load on the card times up to 130 microseconds have been observed. The average does not appear to differ much between cards as the (growing) size of the context is in balance with the increased DRAM bandwidth. Measured worst cases
2008 Apr 04
8
Grant tables
Hi, I need to use the grant table mechanism, but I can''t find any example regarding how to do it. Could you please provide some examples? Thanks Carlo -- È molto più bello sapere qualcosa di tutto, che sapere tutto di una cosa. Blaise Pascal _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel
2011 Nov 18
5
[PATCH 0 of 4] amd iommu: IOMMUv2 support
This patch set adds basic supports for amd next generation iommu (IOMMUv2) hardware. IOMMUv2 supports various new features advertised by iommu extended feature register. It introduces guest level IO translation and supports state-of-the-art ATS/ATC devices with demand paging capability. Please refer to AMD IOMMU Architectural Specification [1] for more details. Thanks, Wei [1]
2017 Oct 21
1
Problem with large uids
Hi, I have two member server and both with Samba 4.6.7. I'm using winbind for NSS and PAM. One of the member server is exporting an NFS4 mount which the other member server is mounting. For users with an rid-mapped uid below some value everything works fine. If the uid is above this value the group permissions are not evaluated and I'm getting a permission denied if a folder or file is