before I start I wanted to tell you maybe my tongue is not enough to understand each other that is why I'm sorry. I have html codes which are the below; <div class="container"> <div class="column"> <input type="text
Sample code document.body.getAttribute.apply(this,['id']); document.body.setAttribute.apply(this,['id','test']); The error Firefox: TypeError: 'setAttribute' called on an object that does not implement interface Element. Chrome: Uncaught TypeError: I
I have added check-boxes dynamically to all the element and successfully added the functionality to select all checkboxes but not able to do the selection for the parent child checkboxes in tree structure means if i select the "Asia" it should s
I'm new to XML and I want to append points from an XML file to a point container that I wrote. this is the XML file: <?xml version="1.0" encoding="UTF-8" standalone="no"?> <container> <point> <X>56<
I'm trying to select a control in order to manipulate it but I'm having a problem: I can't select it. Maybe it's because the xml structure, but I really can't change it because it is externally created. SO I have this: <span class="xforms-value xf
I am building a Ionic based mobile application and I am using the phonegap-facebook-plugin to login with facebook. I have managed to install the plugin on both android and ios and it works. However, while trying to use it for the webapp, I am having
I am trying to retrieve and echo the content of a div from an external site using PHP and xPath. This is an excerpt from the page, showing the relevant code: <html xml:lang="en" lang="en" xmlns="http://www.w3.org/1999/xhtml&quo
I am writing a firefox extension (in javascript). When the browser operator pauses his mouse cursor over a "term" (word/phrase/acronym) in the HTML browser document, I need to highlight the text that displays that term by changing the color of t
If I use object.getElementsByTagName(tagName) in a for statement, for (index = 0; index < object.getElementsByTagName(tagName).length; index++) { object.getElementsByTagName(tagName)[index].property = value; } Does the browser instantiate a new nodeL
I have some issues when combing a DOM calling on two attributes – id and name – when in a for-loop. I have a html section with a table, where each cell has its own id but the same name attribute: <td id="p1" name="f" ></td>
Iv'd been looking for this for a while found it once but cant find it agian, in which order does the different things get loaded in the DOM?? like css, html, scripts and so on?The same order they appear in the page Deferred loading like : document.on
Hi all Why this piece of javascript code doesn't work on firefox var nfiles = 1; function Expand(){ nfiles++ var adh = '<input type="file" name="File '+nfiles+'">'; files.insertAdjacentHTML('BeforeEnd',adh); return false; }; It l
I was thinking there was no DOM listener so I implemented my own 'heavy' listener: function CvHelper(stackApi) { var that = this; // check if room is finished loading this.init = function() { if ($('#loading').length) { setTimeout(that.init, 1000); }
Is there a difference, in terms of efficiency, whether to store string values in variables or as a content of hidden input elements? Those values could be large and could be modified frequently.Unless you have a reason to store values in input elemen
I have an application that's dynamically creates div boxes and through AJAX loads images that are placed inside the boxes. If a box already exists I don't want to load the images (through AJAX) again. Instead the content (ie. the images) should be gr
I have a question, I use prototype, but maybe this question could apply to native javascript as well. Which would be generally faster and more efficient to run: $(divElement).insert('<div>Hello</div'); or $(divElement).insert(new Element(div).ins
In JavaScript, how can I get the first and last words from an element's text? For example: <div class="content">this is a test</div>// output 'this' 'test' <p>This is another test</p>// output 'this' 'test' How can I do t
We're using JAXB to unmarshall a fragment of XML which looks a bit like this: <someRandomElement xmlns:foo="http://example.com/foo" xpath="//foo:bar" /> Our object model is: @XmlRootElement(name="someRandomElement") cla
Could please anybody recommend libraries that are able to do the opposite thing than these libraries ? HtmlCleaner, TagSoup, HtmlParser, HtmlUnit, jSoup, jTidy, nekoHtml, WebHarvest or Jericho. I need to build html pages, build the DOM model from Str
I have this html code: <marquee align="left" id="LatestNewsM" SCROLLAMOUNT="4" loop="infinite" direction="right"> <font dir="rtl" valign="top" class="StringTheme" sty
I am trying to extend the DOM. I "subclassed" from the Div element: var Subclass = function() {} Subclass.prototype = document.createElement('div'); Subclass.constructor = Subclass; var obj = new Subclass(); var obj.innerHTML = 'test'; document.
When I build a newsletter and send it to myself as a test, I would like to be able to analyze the resulting HTML in my email client (Thunderbird). Is there a tool similar to Firebug but for Thunderbird? I found one called "DOM Inspector" but it
I have installed xampp 1.7.3 and the php version is PHP 5.3.1.When iam using the function domxml_open_file() ,it throwing an error Call to undefined function domxml_open_file(). How i can enable DOM in php.Thanks in advance. I canot find 'extension=p
I have a problem with this fonction: function test(value){ var id = "'" + value + "'"; $(id).remove(); } It gets an "Id", add simple quotes and then call the remove function. The "value" is a generated id by php. Fo
Is there a way to create your own HTML element? I want to make a specially designed check box. I imagine such a thing would be done in JavaScript. Something akin to document.createHTMLElement but the ability to design your own element (and tag).Yes,
Is it possible to change the element's node name in GWT? I mean something like this: HTML h = new HTML(); h.getElement().setNodeName("mydiv") while there is no setNodeName() method for Element. I'd like to acquire <mydiv>some contents</
How do I make elements that are loaded via ajax, adopt the events associated with the same class on mootools 1.11? As far as I know, in jQquery, if your ajax response consists of something like <div class='button'>, if there is an event bind using l
How to add a comment node before the root <svg> element but after the xml prolog? Or will it be less resource expensive to insert the comment with a regexp on the serialized DOM?The root element (ie, exclusive of xml prologs and DTDs) is in document
By default I have 5 textboxes. When a user clicks on a button, one textbox should be added. How could I do this?If you replace the innerHTML, the previously entered values will be cleared, to avoid that, you can append the input elements programmatic
I'm wrestling with a ridiculous problem in IE6. I render a page full of data on the server-side, and then iterate through the results (rows of an HTML table) on the client side, updating each row in sequence with the results of an AJAX call on each r