What is a way to uniquely identify all DOM nodes in an HTML document. To illustrate what I mean, here is a (fictional) example:
Script X randomly selects a DOM node from document.html.
Script X needs to tell script Y which DOM node it has chosen.
How does script X uniquely identify the DOM node it has chosen so that script Y knows exac...
I have a JavaScript library that updates a hidden <textarea> HTML element with some data based on some things.
In my (JavaScript) application I'd like to know when these updates occur without having to go through the existing library code.
I was hoping there was an event for this, but apparently not.
How would I listen for changes of ...
Hello,
I searched for it a lot but probably I am searching wrong strings. A Java applet is feeding live bits into my pages, java applet accesses the input fields on my page and places the information
<input type="hidden" id="F1" value="Nothing Yet">
and then it calls a javascript functionon the page say LivePicker() and then i...
Hello,
I am trying to extract specific content(links, text, images) from an HTML page. Is there some program out there that I can use to produce a visual representation of the DOM model of the page? I know I could I write such a program in Java using an HTML parser, but before I do that, I thought I would see if there already exists such...
I need to learn web20 frontend. Javascript, jquery, dom, ajax, css.
A quick search reveals the best JS books which don't cover all of my goals. From reading the table of contents:
JavaScript-Good-Parts-Douglas-Crockford is the defacto JS intro book, but covers syntax only, no intermediate web
JavaScript-Definitive-Guide-David-Flanagan...
Actually I have an XML document. I would like to print the children of the root element of the document using a utility in org.w3c.Dom without printing the document headers.
So I need a utility in org.w3c.Dom to print a Node only. any help please ?
...
There is an iframe on the page.
Can the parent document (iframe parent) be accessed from this iframe?
What I want to do: when the user presses a button inside iframe something happens on the main page
Thanks!
...
Hello.
I lookong for some IE or Firefox extension, which allows to browse html source, corresponding to data, shown in browser window right now.
I have large web application with alot of code, generated by JavaScript. I need to extract real HTML code, which I see in browser window right now (View source function shows only code loaded f...
$('#container').append('<div id="theonly">tests</div>').find('#theonly');
and
$('#container').html('<div id="theonly">tests</div>').find('#theonly');
I'm worried sometimes the dynamically generated elements is not available at once,am I wrong or not?
If I'm not wrong,what's the solution to cover all cases?
EDIT
Can someone come u...
Hi, guys, I have the next HTML:
<div id="Dummy" class="video">
<div class="videoDummy">Video Dummy</div>
</div>
<div class="bd">
<ul class="items">
<li class="video">
<a href="#" class="launch-video vid_{{VAR:vid_contentId}}">
{{module:video_imagethumbnail/contentId={VAR:contentId}}·clippingWidth=68}}
</a...
How can I use jQuery to trigger a callback of a JavaScript function when I scroll down and see a picture? I wish to delay loading certain images until they actually appear on-screen... Ideally, I'd be able to do something like:
$('#img#').look_on() { ...
So no images are loaded apart from those I have seen.
...
I need to insert a DOM which is a complete SVG document into an <object> element. SO here's my code:
var svgDom = (new DOMParser()).parseFromString(streamedFile,'image/svg+xml');
var pagePics = document.querySelectorAll('#currentFiles figure object');
for (var i=0; i<pagePics.length; i++){
pagePics[i].contentDocument = svgDom.doc...
hi evenyone, im new to javascript.. im trying to create a page where when the user selects the colors the particular color should change but only the <table> and its <td> color should get changed on Click function any anyone pls help me in dis.. thanks in advance.
...
What function do you use to get innerHTML of a given DOMNode in the PHP DOM implementation? Can someone give reliable, checked solution?
Of course outerHTML will do too.
...
Hi
have a list generated with FBJS, now i need to 'attach' this element inside two div on the page, i tried:
div1=document.getElementById('div1');
div2=document.getElementById('div2');
empty(div1);
empty(div2);
// 1
div1.appendChild(ul);
div2.appendChild(ul);
// 2
div1.appendChild(ul);
ul2=ul;
div2.appendChild(ul2);
//3
div1.app...
I see some anchor elements on an html page like so
<a href="javascript:void(0);" class="clickable">Click me</a>;
The page assigns JavaScript event handlers to the anchor element on page load. After the page loads, I can click on the anchor element to fire a JavaScript operation.
I want to programmatically fire the anchor's event han...
Hi, I'm aware that this is kinda a hack but for reasons of simplicity I would like to replace the contents of an entire webpage with an answer received through Ajax. This includes possible HTTP headers. Is it possible to do so?
To clarify further, right now I added for debugging purposes:
alert(response);
and this produces:
For rea...
We wish to use jquery/javascript to add 'alternate link rss' elements in the section of a resulting html document, i.e. so the orange 'rss' icon shows up on the right side of the browser's url-bar (aka "awesome bar" in FF)
Such an approach simplifies adding the 'subscribe' links in the section. Each chunk of the page could add rss lin...
Is there a way to capture whether the user clicked OK or CANCEL?
I need to do something ONLY if the user is leaving the page....
...
I have a simple xml below:
<?xml version="1.0" encoding="utf-8"?>
<catalogue>
<category name="textbook" id="100" parent="books">
<product id="20000">
<author>Gambardella, Matthew</author>
<title>XML Developer's Guide</title>
<genre>Computer</genre>
<price>44.95</price>
<publish_date>2000-10-01</publis...