search for: createtextnod

Displaying 20 results from an estimated 23 matches for "createtextnod".

Did you mean: createtextnode
2007 Aug 20
3
Contribution on extending createElement
...he code would always get very verbose as soon as I wanted to create even simple structures : var my_div = document.createElement(''div''); var my_anchor = document.createElement(''a''); my_anchor.setAttribute(''href'',my_link); var my_text = document.createTextNode(''here is my link''); my_anchor.appendChild(my_text); my_div.appendChild(my_anchor); $(document_element).appendChild(my_div); ... I guess you see what I''m talking about ! Back a few months, I wrote a function that would do all that in a one- liner. Since then, I''...
2007 Aug 25
2
insert HTML <select> value into a textarea - Works in IE6, not in FireFox or Opera
...e text area, and then it stops working. (the <select> is not sending to the text area anymore) With Opera 9.02, the select control doesn''t work at all. 1) Does prototype do anything "internally" differently for whatever it''s equivalent of var txtNode=document.createTextNode(selectValue); var textArea=document.getElementById(targetTextArea); textArea.appendChild(txtNode); is ? 2) Should I be using some other way of accessing the textarea other than the "appendChild" method? Any other ideas appreciated. Mike ============================== http://...
2008 Jul 01
5
Attaching event observers to a series of elements - best practice?
...won''t work: function populateContactsList( contacts ) var theUL = document.getElementById("addr-book-index"); var thisLI = null; for ( var i = 0; i < contacts.length; i++ ) { thisLI = document.createElement("li"); thisLI.appendChild( document.createTextNode( contacts[i].name ) ); theUL.appendChild( thisLI ); Event.observe( thisLI, "click", function() { openContact( contacts[i].id ); } ); } } ...because every call to openContact() will receive 3 as the parameter - the value of contacts[i].id at the t...
2006 Jun 27
14
iframe ... does it have an innerHTML ?
...ate a hidden iframe, how could I add a document in a string to that element? e.g., var sDocument = ''<html><head></head><body>Hello world.</body></html>''; I''ve tried several variations of appendChild, innerHTML, document.innerHTML, createTextNode. Argh! _______________________________________________ Rails-spinoffs mailing list Rails-spinoffs-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs
2015 Sep 24
0
php DOMDocument and entities
...ing php DOMDocument to create an XSL that needs a non-breaking space between two values. Basically: $xslvalueof = $dom->createElement('xsl:value-of'); $xslvalueof->setAttribute('select', '../@month'); $caption->appendChild($xslvalueof); $nbsp = $dom->createTextNode('&#160;'); $caption->appendChild($nbsp); $xslvalueof = $dom->createElement('xsl:value-of'); $xslvalueof->setAttribute('select', '../@year'); $caption->appendChild($xslvalueof); That's what I am trying to do. createTextNode() howe...
2009 Jan 14
4
Steam (HL2) locks up on 64 bit Ubuntu
Yesterday I downloaded and installed the latest version of Ubuntu 8.10 64 bit, and after setting up my hardware I installed Wine 1.1.12, and have been working on getting HL2 running, but with little/no success. I got Steam installed, but when it opens none of the HTML pages render (saying "HTML is currently disabled."), and when I go to the My Games tab to have it download any of the
2006 May 19
6
Multiple dynamic Sortables
I''m writing an appliation that contains several dynamically created lists. I had hoped that the following method for using the Sortable library from scriptaculous would work: 1) create the list 2) create a Sortable for it 3) create another list 4) create a Sortable for it and so on. Unfortunately this doesn''t work. I can''t find any info in the documentation for
2005 Jul 12
8
Tip Sheet for AJAX
Hi all, I''m making an Amy Hoy style tip sheet PDF for the Prototype and Scriptaculous AJAX stuff, to be used with Rails. Are there other resources you would suggest besides the websites themselves (the previous thread about Highlight reminded me of this)? Is there a particular focus that would be helpful for such a document? Preferred fonts or colors? I must say, once you get
2009 Jul 16
2
[PATCH server] updated anyterm/ovirt integration
...e clipboard seems to be empty"); + return; + } + + if (confirm('Click OK to "type" the following into the terminal:\n'+p)) { + process_key(p); + } +} + + +function create_button(label,fn) { + var button=document.createElement("A"); + var button_t=document.createTextNode("["+label+"] "); + button.appendChild(button_t); + button.onclick=fn; + return button; +} + +function create_img_button(imgfn,label,fn) { + var button=document.createElement("A"); + var button_img=document.createElement("IMG"); + var class_attr=documen...
2006 Feb 08
9
InPlaceEditor - IMG for OK / Cancel?
Hi all, Is it possible to use images instead of plain text for the "OK" and "Cancel" controls? Thanks, Best Regards, EJC _______________________________________________ Rails-spinoffs mailing list Rails-spinoffs-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs
2007 Nov 30
0
Wine release 0.9.50
...msxml3: Enable test for bad argument / fix memory leak. msxml: Allow insertBefore to have a NULL output parameter. msxml: Test for insertBefore with a NULL output parameter. msxml: Added test for get_text. msxml: Always return a string in get_text. msxml: Implement createTextNode. msxml: Tests for createTextNode. urlmon: The callback parameter can be null, check pointer before using. Anatoly Lyutin (1): msi: Fix invalid SQL query. Andrew Talbot (12): user32: Constify some variables. user32: Constify a variable. user32: Constify a varia...
2005 Oct 05
5
InPlaceEditor crash on Safari
Quick question.. I often crash my Safari when using ''Enter'' on InPlaceEditor''s for submitting. Works fine on firefox(win & Mac) - no javascript errors. Anyone else seen this behavior? (Maybe it is just my alterings of InPlaceEditor :-) Best Regards Michael Krog
2005 Aug 11
7
script.aculo.us V1.5_pre1 released
Heya, I''ve just released script.aculo.us V1.5_pre1. Please give it a try! Important new stuff (since V1.1b1): * Added a main scriptaculous.js file to load in the other libraries transparently. * Fixed a condition where standard a href=xxx links wouldn''t work in autocomplete results. These do now, the onclick event is not cancelled. [thx to Jasper Slits] * Added
2006 Apr 27
5
proposing $E & $T
Hey all, I''ve had these functions for some time now, and would like to offer them as two new dollar-sign functions - elements to be extended by Prototype geniuses. :-) makeText(string) as $T() - return text node element Does just what it says... I''m sure someone could extend it nicely when via Prototype. (example) var x = $T(''hello world'');
2010 Feb 19
0
Wine release 1.1.39
...OMDocument::createElement() over ::createNode(). msxml3: Reimplement IXMLDOMDocument::createComment() on top of ::createNode(). msxml3: Fix IXMLDOMDocument::createDocumentFragment(), can't use IXMLDOMNode*->IXMLDOMDocumentFragment* cast. msxml3: Reimplement IXMLDOMDocument::createTextNode() on top of ::createNode(). msxml3: Fix IXMLDOMDocument::createElement(), cast from node to element isn't possible. msxml3: Reimplement IXMLDOMDocument::createCDATASection() on top ::createNode(). msxml3: Reimplement IXMLDOMDocument::createAttribute() on top of ::createNode()...
2008 Jun 27
0
Wine release 1.1.0
...ricElement implementation. mshtml: Added IDispatchEx support to HTMLGenericElement. mshtml: Added createElement test. shdocvw: Added WebBrowser's IDispatch methods implementation. mshtml: Added IHTMLDOMNode::appendChild implementation. mshtml: Added IHTMLDocument3::createTextNode implementation. mshtml: Return NULL instead of empty string in IHTMLElement::get_className. mshtml: Added IHTMLElement::put_className implementation. mshtml: Added IHTMLImgElement::put_src implementation. mshtml: Added onclick attribute support. mshtml: Use heap_allo...
2009 Jul 07
0
[PATCH server] Update app to work with rails 2.3.2
.../&lt;/g,'<').replace(/&gt;/g,'>'); + return this.stripTags().replace(/&amp;/g,'&').replace(/&lt;/g,'<').replace(/&gt;/g,'>'); } }); @@ -546,7 +555,7 @@ Object.extend(String.prototype.escapeHTML, { text: document.createTextNode('') }); -with (String.prototype.escapeHTML) div.appendChild(text); +String.prototype.escapeHTML.div.appendChild(String.prototype.escapeHTML.text); var Template = Class.create({ initialize: function(template, pattern) { @@ -578,7 +587,7 @@ var Template = Class.create({ }...
2007 Nov 27
0
12 commits - libswfdec/swfdec_as_interpret.c libswfdec/swfdec_as_strings.c libswfdec/swfdec_loader.c libswfdec/swfdec_loader_internal.h libswfdec/swfdec_load_object_as.c libswfdec/swfdec_load_object.c libswfdec/swfdec_load_object.h
....prototype", "clear", true], + ["_global.XML", "prototype", false], + ["_global.XML.prototype", "addRequestHeader", false], + ["_global.XML.prototype", "createElement", false], + ["_global.XML.prototype", "createTextNode", false], + ["_global.XML.prototype", "getBytesLoaded", false], + ["_global.XML.prototype", "getBytesTotal", false], + ["_global.XML.prototype", "load", false], + ["_global.XML.prototype", "onData", false], +...
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,
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