search for: setattributes

Displaying 20 results from an estimated 104 matches for "setattributes".

Did you mean: setattribute
2006 Jun 03
12
How to get dynamically created inputs from html form back to rails app
Thank you in advance. Although I have many years of experience in general, including cross- platform processing, I am not an HTML/Javascript programmer. As a result, I do not have certain specific baseline skills and/or knowledge that are presumed in the Rails and Ajax documentation. I am experienced with DOM manipulations, so the bare mechanics of manipulating the browser GUI via Javascript
2006 Jan 11
2
extending the Element.prototype to provide a setAttributes function
Hi folks, I''m pretty new to javascript and prototype, so I just want to get some peer-review on a function I wrote that makes a handy (at least, it seems handy) way to set a group of attributes on an element easily. Object.extend(Element.prototype, { setAttributes: function(attrs) { var el = this; $H(attrs).each( function(attr) { el.setAttribute(attr[0], attr[1]); }); } }); You pass it a hash of attr => value pairs, like so: $(''testing'').setAttributes( { test1: "test 1 value", test2: "test 2 value&...
2010 Apr 07
1
[PATCH] Connection: Handle case of cdrom with no <source> element
CD-ROM devices don't necessarily have a <source> element in their libvirt domain XML, which caused an error. This fixes RHBZ#579676 --- lib/Sys/VirtV2V/Connection.pm | 103 ++++++++++++++++++++++------------------- 1 files changed, 56 insertions(+), 47 deletions(-) diff --git a/lib/Sys/VirtV2V/Connection.pm b/lib/Sys/VirtV2V/Connection.pm index a211662..c901b90 100644 ---
2005 Aug 09
7
trunk restructuring, new util.js
Hi all, The latetest trunk revision 1983 features are more streamlined directory layout and a new util.js file, that acts as a collector for stuff that doesn''t fit in elsewhere. To get a grip at the new Builder functionality look at the test in test/unit/builder_test.html (works only with Firefox). Note the "klass" instead of "class", this circumvents a
2007 Apr 04
2
Simple RJS Calls Not Working
I have a simlple view: <h2>Tags</h2> <% unless @recipe.tags.empty? %> <table> <tbody id="tags"> <%= render :partial=>''tags/tag'', :collection=>@recipe.tags %> </tbody> </table> <% end %> <% form_remote_tag :url=>tags_path(@recipe) do%>
2009 Dec 21
1
[PATCH] snapshot: Explicitly remove unused disk source attribute
This fixes a regression introduced by 9e3d1160. Snapshot was leaving both dev and file attributes specified. The result was that the v2v would actually operate on the underlying storage rather than the snapshot. --- snapshot/v2v-snapshot.pl | 5 +++++ 1 files changed, 5 insertions(+), 0 deletions(-) diff --git a/snapshot/v2v-snapshot.pl b/snapshot/v2v-snapshot.pl index f089a77..e2cc33c 100755
2010 May 26
1
[PATCH] RHEV: Only mark the first disk as bootable
RHEV will fail to start a guest with more than one VirtIO disk marked as bootable. The previous behaviour of V2V simply marked all disks as bootable, intending to follow the behaviour of libvirt's qemu driver. However, libvirt's qemu driver actually only marks the first disk specified in the domain XML (which may or may not be Xda) as bootable. This change updates the RHEV output to follow
2006 Apr 06
4
problem with IE
hello there, im having a little problem with Internet Exploiter, im doing this: //// CODE //// var m = $(''XYZ'').cloneNode(false) m.setAttribute(''id'', ''XYZ_2''); m.value = ''''; var onblur = "alert(''hola'');"; m.setAttribute(''onblur'', onblur);
2006 Jun 15
8
Loading CSS for AJAX apps.
I am working on an update to my content management system and I am using a lot of AJAX to load in the different "Modules" I want each module to be self contained, including all its specific js and CSS. Does any one know of a good solution for loading in new CSS to go with the code loaded in via the AJAX call? Thanks.
2006 Jul 14
3
Rails newbie: How does the submit_tag work?
I would appreciate any and all input. The Agile book is not useful in this context. :o( As near as I can tell, it doesn''t work at all. I would expect that clicking on the [Next Question] button in the browser would fire the next_question method in the current controller. Instead, it (apparently) does nothing. The tag in question <%= submit_tag ''Next
2010 Mar 31
1
[PATCH] Add LocalCopy transfer method to transfer local files to a target
Also changes command line parsing to require a pool to be specified when using libvirt output, meaning storage will always be copied. --- MANIFEST | 1 + lib/Sys/VirtV2V/Connection.pm | 74 +++++++++--------- lib/Sys/VirtV2V/Connection/LibVirt.pm | 18 +++-- lib/Sys/VirtV2V/Connection/LibVirtXML.pm | 11 ++- lib/Sys/VirtV2V/Target/LibVirt.pm
2011 Mar 11
2
[PATCH 1/2] Allow reading more data than the reported size of a volume
If a volume is not an exact multiple of 512 bytes, qemu-img will report its size rounded down to a 512 byte boundary. However, when copying, the file is still read until EOF, which will return more data than was expected. This change prevents that causing a failure in itself. The situation is still not resolved, however, as there are still situations where this will cause a failure. For example,
2012 Apr 22
2
Cisco AnyConnect on 6.2 32-bit?
Grr.. I'm pulling my hair out trying to get the Cisco AnyConnect client to work under 6.2 32-bit. Seems like there is always 1 thing preventing my from using the latest centos release as my sole workstation. It was actually working on a new install for about half a day. I rebooted and now it won't connect. If I boot another vm (ubuntu or oel 5.7) the same client works. Im using version
2006 Aug 08
0
Equivalent of request.setAttribute(key, value) in Rails??
Hi All I come from Java/J2EE background and I was wondering if there was any way of setting an attribute-value in request. As far as I understand the equivalent is/are the controller instance variable that are exposed to the view(templates/layout). But they are not the same as storing values in request objects in Java servlets. Plus I feel this can give rise to race condition and data swapping
2006 Jan 11
2
RE: extending the Element.prototype to provide asetAttributes function
...m, try this... (removed your var and added the bind(this) after the function declaration. I didn''t test it though so you might want to give it whirl. It might introduce a different scope problem with the "attr" var but I think it should work. Object.extend(Element.prototype, { setAttributes: function(attrs) { $H(attrs).each( function(attr) { this.setAttribute(attr[0], attr[1]); }.bind(this)); } }); -----Original Message----- From: rails-spinoffs-bounces-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org [mailto:rails-spinoffs-bounces-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@pu...
2013 May 15
1
[LLVMdev] Attributes & CloneFunctionInto
...cloning, and then setting >> the correct attributes. >> However, I can't find a way to modify an existing alignment *in any >> way* without hitting an assertion (the other one being line 727 for >> removeAttributes). I've also tried using addAttributes() and >> setAttributes() to set the alignment to 0, but this seems to be >> ignored... > > SAFECode clones a function to change the alignment of byval arguments. > You can look at the code at > http://llvm.org/viewvc/llvm-project/safecode/branches/release_32/lib/BaggyBoundsChecks/BaggyBoundsChecks.cpp?r...
2010 Feb 08
1
[PATCH] Converter: Prefer detected arch of OS if it's available
A 32bit VMware host will boot a 64bit OS. However, 32bit KVM won't. This means that if you accidentally selected a 32bit machine type at VM creation time on ESX, then installed a 64bit OS, chances are you won't notice until you convert it and it doesn't work any more. To get round this, we always use the detected architecture of the OS if it's available. This will mean that your
2010 Mar 30
3
[PATCH 1/2] Refactor guest and volume creation into Sys::VirtV2V::Target::LibVirt
Move all target-specific functionality into its own module in preparation for output to RHEV. --- MANIFEST | 1 + lib/Sys/VirtV2V/Connection.pm | 46 ++--- lib/Sys/VirtV2V/Converter.pm | 138 +------------ lib/Sys/VirtV2V/Target/LibVirt.pm | 419 +++++++++++++++++++++++++++++++++++++ lib/Sys/VirtV2V/Transfer/ESX.pm | 91 +++------ po/POTFILES.in
2006 Jan 09
6
drag and drop problem
I am working on a resource planning problem. I like to use a nice drag and drop interface for that. E.g. have a box of persons and a box of projects, now I would like to assign a persom to project by dragging it from the available resources box to a recieving project box. I have studied the amazing drag and drop shopping card code listed here http://demo.script.aculo.us/shop What I need to
2010 Mar 31
1
[PATCH] Default to IDE when VirtIO isn't available
Previously we used SCSI when VirtIO wasn't available. KVM's SCSI support is not as mature as its IDE support, and SCSI isn't supported at all in RHEV. --- lib/Sys/VirtV2V/Converter.pm | 50 +++++++++++------- lib/Sys/VirtV2V/Converter/Linux.pm | 19 ++++--- lib/Sys/VirtV2V/GuestOS/RedHat.pm | 100 ++++++++++++++++++++---------------- 3 files changed, 100 insertions(+), 69