Displaying 8 results from an estimated 8 matches for "createrange".
2004 Jun 21
0
Bookmarklet for searching R documentation
...0.9 on Windows 2000.
Create a bookmark called "search R doc" (or whatever) with the following
text as the "location". (Note, this is one long line)
javascript:(function(){ function getSearchString (promptString) { s = null;if (document.selection && document.selection.createRange) { s =document.selection.createRange().text; } else if (document.getSelection) { s= document.getSelection(); } if (! (s && s.length)) { s =prompt(promptString,''); } return s; } searchString = getSearchString('Search R help:'); if (searchString != null) { if(searchString.len...
2006 Nov 23
0
W3C Range specification conceptually flawed?
...one:
<html>
<head>
<title>Range test</title>
</head>
<body>
<div id="myText">FooBarBaz</div>
<script type="text/javascript">
myText = document.getElementById(''myText'').firstChild;
var range1 = document.createRange();
range1.setStart(myText, 3);
range1.setEnd(myText, 6);
var range2 = document.createRange();
range2.setStart(myText, 6);
range2.setEnd(myText, 9);
// as you can see in Firebug console we selected ''bar'' and ''baz''
console.log(''range1: ...
2005 Sep 27
8
prototype.js
Hi *,
We don''t know if you guys are the right audience, but we got a problem
with prototype.js we need to solve.
Essentially, it is a compatibility bug with the IE.
We wrote a component so it updates itself periodically using AJAX. we used the
prototype.js to accomplish this (using the periodicalUpdater object).
now the component works fine using firefox or opera, but NOT with IE.
the
2005 Dec 15
0
RJS Templates and the Replace semantics
...vascript file:
// Extend the object for our RJS extension to work
Object.extend(Element, {
replace: function(element, html) {
var el = $(element);
if (el.outerHTML) { // IE
el.outerHTML = html.stripScripts();
} else { // Mozilla
var range = el.ownerDocument.createRange();
range.selectNodeContents(el);
el.parentNode.replaceChild(range.createContextualFragment(html.stripScri
pts()), el);
}
setTimeout(function() {html.evalScripts()}, 10);
}
}
);
_______________________________________________
Rails mailing list
Rails-1W37MKcQCpIf0INCOvqR/i...
2006 Jan 20
1
Update HTML Element with Ajax
I have following files.
list.rhtml
-----------------------
<ul id="items">
<%= render(:partial => ''item'', :collection => @items) %>
</ul>
_item.rhtml
------------------------
<li id="<%= item.id %>" >
<%= item.name %>
<%= item.body %>
</li>
edit.rjs
------------------------
page.replace_html
2007 Oct 26
0
Wine release 0.9.48
...msimtf: Added msimtf.dll.
msimtf: Added Dll[Un]RegisterServer implementation.
msimtf: Added class factory implementation.
hlink.idl: Undef unicode GetObject macro.
mshtml: Import dimm.idl and fix compilation.
mshtml: Set selection to default on IHTMLSelectionObject::createRange if there is no range selected.
mshtml: Added support for installing Gecko from build dir.
wine.inf: Self-register msimtf.dll.
itss: Fixed memory freeing.
mshtml: Added IHTMLTxtRange::expand("TextEdit") implementation.
mshtml: Fixed spaces handling in range ob...
2009 Jul 07
0
[PATCH server] Update app to work with rails 2.3.2
...if (content && content.toElement) content = content.toElement();
if (Object.isElement(content)) {
- t.insert(element, content);
+ insert(element, content);
continue;
}
content = Object.toHTML(content);
- range = element.ownerDocument.createRange();
- t.initializeRange(element, range);
- t.insert(element, range.createContextualFragment(content.stripScripts()));
+ tagName = ((position == 'before' || position == 'after')
+ ? element.parentNode : element).tagName.toUpperCase();
+
+ childNodes = Elemen...
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