I know about getElementById, getElementByNames ... and getElementsByTagName
What other methods are available to select an element or elements from the DOM ? What if an item does not have an Id or Name.
I have heard that I can use XPath expression to select a range of HTML elements. How do i do that using JavaScript? Is there a library ...
Using jquery, how can I iterate through all elements in a given class?
...
I'm looking for some comprehensive list of web browser compatibility with various versions of standards like javascript, CSS, DOM, HTML..
I know about quirksmode.org, but I'm hoping there are other good resources as well.
...
I have a HTML page that contains a search box containing a number of textboxes.
The first part of the search box is a SELECT dropdown list that contains a variety of report types. Each report type requires 1 or more of textboxes to be filled in to filter the query results. My goal is hide the textboxes that are not required by the cur...
I think I wrote a simple DOM cache mechanism to be more efficient, avoiding multiple $('blah') calls, e.g.:
if ($('foo').length) {
$('foo').bar();
}
So I created a DomCache child object under my project main object:
MyLib.DomCache = {};
When I need a jQuery object of an element, I look in the DomCache and if I found it I use it...
Hi Guys
I want Element by using class name
Now I am using GWT 2.0
Please help me
Thanks
...
I have a SOAP Response which I want convert to a DOM Document. I am using loadxml() for that, but it returns an empty object.
<?xml version='1.0' encoding='UTF-8'?><S:Envelope xmlns:S="http://schemas.xmlsoap.org/soap/envelope/"><S:Body><ns2:getResponse xmlns:ns2="http://api.sponsoredlistings.ask.com/api/v5/"><rval xmln...
I have the following JavaScript code:
function addRowToTable()
{
var tbl = document.getElementById('tblSample');
var lastRow = tbl.rows.length;
// if there's no header row in the table, then iteration = lastRow + 1
var iteration = lastRow;
var row = tbl.insertRow(lastRow);
// left cell
var cellLeft = row.insertCell(0);
...
Im trying to cause a canvas element to be added to the DOM and then removed after a set time. The killbox() function gets called, but the element is not removed. I believe I have the syntax right, and that there is some underlying issue with removing dynamically added DOM elements.
//con is short for console.log()
function spawnCanvas(...
I am trying to use simple_html_dom to extract some data from a website. Unfortunately somehow in the middle of the data to be analyzed it cuts off a part which means the data that I want to extract is or is not part of the string that I can analyze.
This is my code:
<?php
include_once('../../simple_html_dom.php');
function mouser(...
I recently tested a Cappuccino app I was working on with Chrome and Safari. I get the error:
INVALID_STATE_ERR: DOM Exception 11: An attempt was made to use an object that is not, or is no longer, usable.
The lack of information is frustrating. What object and where did I attempt to use it? Chrome tries to answer the second question b...
I have a page that sends emails to customers. It has a send all button at the bottom of the page to provide the convenience of being able to send all the emails at once. Problem is it works badly or not at all. It either isn't redrawing the page or isn't managing to process all the Ajax calls.
Here is the JavaScript...
function aj...
I neeed to convert a SimpleXML object to a DOMDocument, to use it with DOMXPath. I need DOMXPath for it's method registerPHPFunctions. Can this be done?
With dom_import_simplexml I get a DOMElement, not DOMDocument.
...
I'm looking for a solution to keep an element in view, while scrolling the rest of the page.
I don't want to re-invent the wheel so i'm reaching out to see if the community knows of a canned solution already.
I want to apply this to a huge table that I have, and I would like users to be able to continue seeing the table headers as they...
I have a horizontal menu, some of the Items have expandable subItems and all this is built with scripts that I do not have access to, I can only add and remove items through the dashboard and style and interact with the html templates (BigCommerce). I would like to reuse one of this menu Items and it's subItems as an additional side navi...
I have a web service I'm exposing with CXF and I need to work directly with the XML passed in and then need to assign XML from an external source into the response. If I user Object as the parameters and return type I do get a DOM representation which I can work with. If I user Element however I'm informed I can't use it as there are n...
The exception NS_ERROR_DOM_INVALID_EXPRESSION_ERR is being thrown in the web application when the network cable is removed. The web app constantly sends and receives message from the server.
Can anyone tell what could be causing this error and how to fix this issue?
...
I want to edit some HTML I get from a var I saved. like:
var testhtml = $('.agenda-rename').html();
console.log($('input',testhtml).attr('name'));
Also tried
console.log($(testhtml).find('input').attr('name'));
But i get undefined? I figured it'd work like an $.ajax, $.get, $.post? How else can i do it?
...
I have a c program which outputs a number of lines to another c program which stuffs them in a PHP page which is loaded with AJAX. The problem is that the output is a number of lines, which is fine to look at, but which, when viewed as HTML, lack line breaks.
The initial thought I had was obviously to put line breaks in with the output....
I am writing an IE plugin that wrap phone numbers in a link that connects to a phone system and dials that number when clicked. I am accomplishing this by using DocumentComplete event.
//using SHDocVw.WebBrowser
webBrowser.DocumentComplete += new DWebBrowserEvents2_DocumentCompleteEventHandler(this.OnDocumentComplete);
The problem is ...