Displaying 15 results from an estimated 15 matches for "documentel".
Did you mean:
documented
2007 Mar 13
3
Prototype question invalid error in IE6
...ct. It
works fine in Firefox, but I keep getting an Invalid argument error in
IE6.
Here my margin code in the header:
var winWidth, winHeight, d=document;
if (typeof window.innerWidth!=''undefined'') {
winWidth = window.innerWidth;
winHeight = window.innerHeight;
} else {
if (d.documentElement &&
typeof d.documentElement.clientWidth!=''undefined'' &&
d.documentElement.clientWidth!=0) {
winWidth = d.documentElement.clientWidth
winHeight = d.documentElement.clientHeight
} else {
if (d.body &&
typeof d.body.clientWidth!=''u...
2006 Jun 15
3
RE: Yahoo!-like Eventobjectemulation/abstractioninPrototype?
...nt.element(event);
this.srcElement = Event.element(event);
this.which = event.which || event.button;
this.button = event.button || event.which;
this.pageX = Event.pointerX(event);
this.pageY = Event.pointerY(event);
this.clientX = this.pageX - (document.documentElement.scrollLeft
|| document.body.scrollLeft);
this.clientY = this.pageY - (document.documentElement.scrollTop
|| document.body.scrollTop);
this.preventDefault = Event.stop.bind(Event, event);
this.stopPropagation = Event.stop.bind(Event, event);
}
} );
There are probably more t...
2006 Jun 12
5
scriptaculous & sortables/draggables scrolling?
Re,
Would anyone happen to know how to make sortable/draggable scroll down
the page while moving the object if the page happens to be larger than
the screen size? These functions seem to work only within the visible
working space.
Right now I have workaround whereby I have an omnipresent DIV on the
screen to which I drop an element, then scroll down in the browser to
a certain point, and then
2006 Mar 17
10
good javascript xml parser
Anyone know of a javascript function that will take an xml document and
turn it into an associative array?
Basically it would take something like this:
<body>
<item>
<id>1</id>
<name>Bob</name>
</item>
<item>
<id>2</id>
<name>John</name>
</item>
</body>
And turn it into something like this:
{
2006 Feb 03
0
Contribute: Center extension to Prototype''s Position object
...ent._centered){
Element.setStyle(element, {position: ''absolute'', zIndex:
options.zIndex });
element._centered = true;
}
var dims = Element.getDimensions(element);
Position.prepare();
var winWidth = self.innerWidth ||
document.documentElement.clientWidth || document.body.clientWidth || 0;
var winHeight = self.innerHeight ||
document.documentElement.clientHeight || document.body.clientHeight || 0;
var offLeft = (Position.deltaX + Math.floor((winWidth-dims.width
)/2));
var offTop = (Position.deltaY + Math.floo...
2006 Feb 18
0
Move element into view
...is.options.offset;
var element_kante_oben = offsets[1];
var element_hoehe = this.element.offsetHeight;
// Länge und Position des dargestellten Ausschnitts relativ zum
gesamten Dokument
var screen_bottom, screen_height, screen_scrolled;
if (isIE){
screen_height = document.documentElement.clientHeight;
screen_scrolled = document.documentElement.scrollTop;
} else {
screen_height = window.innerHeight;
screen_scrolled = window.pageYOffset;
}
screen_bottom = screen_scrolled + screen_height;
// Obere Kante des Elements sichtbar und Position des Ele...
2006 Jul 24
15
XML Question
I''ve got an XML file which is pretty well structured. I need to retrieve
specific elements from that file to fill out empty HTML elements on a page.
I think what I need is xPath? Or - is that overkill? Is there some easier
way to locate an XML element?
What I have in mind is pulling the XML file using Ajax, then xPath to get
the bits I need.
Am I on the right path and does
2007 Aug 02
3
Problems with Element.extend() on responseXML elements with IE
I have the following code in the "onSuccess" function of an
Ajax.Request() call. The content type of the response message is "text/
xml".
function interactionSuccess(request) {
var root = $(request.responseXML.documentElement);
...
So more or less I extend the root element of my XML response.
This call triggers the onException callback. The exception is a
"TypeError: Object doesn''t support this property or method" exception.
I tracked it down to the following line in Element.extend():
eleme...
2012 Nov 25
0
image transfer incompletely in live migration
...only about 400MB to 3GB in remote host.
Here is the code:
import libvirt
from xml.dom import minidom
name = "vm-01"
host = libvirt.open("qemu:///system")
vm = host.lookupByNmae(name)
vm_xml_file = "/etc/libvirt/qemu/%s.xml" % name
vm_xml = minidom.parse(vm_xml_file).documentElement.toxml()
remote_host = "qemu+ssh://host02/system"
remote = libvirt.open(remote_host)
try:
vm.migrate2(remote, vm_xml, 89, name, None, 0)
except Exception,e:
print str(e)
Before run the code I have already create a image for migration in remote
host 'host02'. Path, size, and pr...
2008 Jul 01
4
Positioning Oddities
I''m having some trouble using Element#cumulativeOffset and
Element#cumulativeScrollOffset to absolutely position an element right
under a link in certain browsers.
I made a couple of tests to illustrate the issue, which can be found
here: http://www.jeffreykeen.com/sandbox/position.
But in summary, I''ve found two cases which seem to be problematic.
1. If the link has a
2009 Jul 07
0
[PATCH server] Update app to work with rails 2.3.2
...is));
} else {
p = p.map( function(v) {
- return (v/this.options.snap).round()*this.options.snap }.bind(this))
+ return (v/this.options.snap).round()*this.options.snap }.bind(this));
}
}}
@@ -560,7 +560,7 @@ var Draggable = Class.create({
H = documentElement.clientHeight;
} else {
W = body.offsetWidth;
- H = body.offsetHeight
+ H = body.offsetHeight;
}
}
return { top: T, left: L, width: W, height: H };
@@ -591,9 +591,9 @@ var SortableObserver = Class.create({
var Sortable = {
SERIALIZE_RULE: /^[...
2009 Jul 20
9
Upgrade server to run on Rails 2.3.2/F11
Note that one of the 8 patches (#6) will be sent separately in reply
to this email, as some of the replaced lines are too long, so git
won't let me send the email. However, there is nothing wrong with
that patch, and it should be applied in the sequence listed below.
Note also that I assume this will be tested on a clean f11 install, rather
than an upgrade of an existing ovirt server
2006 Mar 17
6
Updated the xml code to be more object-oriented
...hash[key].push(this._nodeToHash(node));
}
else {
hash[key] = [ this._nodeToHash(node) ];
}
}
},
_nodeAsText: function (node) {
return node.textContent || node.innerText || node.text || '''';
}
} );
Usage:
var doc = new XMLDoc(request.responseXML.documentElement);
var hash = doc.asHash();
So, this xml:
<document>
<item id="1" type="blah" />
<item>
<id>2</id>
<type>blah</type>
</item>
</document>
Becomes:
{
item: [
{
id: 1,
type: ''blah''...
2008 Sep 05
0
Wine release 1.1.4
...t broken.
10229 Serious Sam TSE 1.07 - network connection fails
10414 Minimap in Warhammer 40k: Dark Crusade is offset
10661 regedit imports wrong binary data from .reg files (affects FAR Manager) fix proposed
10902 Steam and PulseAudio
11119 XML Notepad 2007 won't start
11301 documentElement.ownerDocument.createElement fails
11357 Reflections in Tomb Raider - Anniversary Demo are buggy
11688 Lego Star Wars II: In-game sound does not work
11885 Supreme Commander is black It doesn't render anything.
11962 regedit highlights the wrong item when searching
12041 STA...
2009 Oct 23
0
Wine release 1.1.32
...s for rows order.
msi: Fix merging string type checks.
msi: Add function get_table_value_from_record.
msi: Fix table rows order.
msi: Remove table_find_insert_idx().
Ilya Shpigor (1):
programs: Add initial extrac32 utility.
Jacek Caban (46):
mshtml: Return NULL documentElement in READYSTATE_UNINITIALIZED state.
mshtml: Improved IHTMLElement2::doScroll stub.
mshtml: Moved QueryService call to hlink_frame_navigate.
mshtml: Added IHTMLLocation::put_href implementation.
shdocvw: Improved debug messages.
mshtml: Added IHTMLWindow2::name prop...