dom

What are the list of items that entering jQuery $.support into FireBug console return?

Hi, I was watching the Lullabot jQuery video and in it one of the teachers advises to use $.support command to check all of the available features that the current browser supports. So when I enter $.support into console I get this link Object { leadingWhitespace=true, more...} and when I click it FireBug opens up the DOM tab a...

Calling Javascript on web page from Java

Hi, My goal is to connect to an OWA page (Microsoft Office Outlook Web Access - basically an email client) and log-in, then read the new page loaded and find the inbox count. To login, I need to fill the username and the password fields and call a certain javascript function for which I know the name and header. How do I: Get the DO...

Sending an OWA logon form from Java

Hi, I am interested in a way to programmatically log into OWA (Microsoft Outlook Web Access - a web-based email client) from Java code and retrieve nothing more than the inbox unread count -- I can read this number from the inbox web page's HTML source - but the problem is getting there - logging in. Essentially, from looking at the HT...

Can I apply CSS to the elements within an iframe?

Hi folks, I often see sites using iframes containing an external site, and a top frame containing JavaScript functionality for the user. e.g. user analytics software, Digg bar, etc... Any tips for experimenting on something similar? =) Would be awesome to know ...

Is there a way to update the dom without effecting the Mouse Cursor?

For example, I'm using the following function: $('body').html( function(i,html) { var arr = html.split(". "); arr[arr.length-1]="<span class='findme' >"+arr[arr.length-1]+"</span>&nbsp;"; alert(arr) return arr.join(". "); }); The problem is it moves the cursor away from where the user was typing. Has anyone else seen t...

IE6 won't acknowledge new styling implications of dynamically added content

I have most of my page's content within <div id="ret">. At some point, this content is wrapped inside a <div id="_"> -- this has all sorts of CSS implications, as there is a stylesheet that has already loaded with the page full of rules beginning with the selector #_ #ret{}. However, the new styling implications are not acknowledged (I'...

Basic JS + WebDev help

Hello, I have a little Problem. I have seven <select>'s. The go from left to right counting up. <select id="sel_1" onchange="evalonsubmit('sel_1',1);"> <select id="sel_2" onchange="evalonsubmit('sel_2',2);"> That goes from 1 to 7 in this way. The logic is easy. On click check if the value is -1 if it is disable everything on the rig...

Merging XML documents with PHP

I have these two xml documents: XML 1: <outer> <foo> <foo-child name="fA" special="true"> content of fA </foo-child> <foo-child name="fB"> content of fB </foo-child> </foo> <bar> <bar-child name="bA"> content of bA </bar-child> <bar-...

How can I clone nodes between documents in PHP?

Possible Duplicate: DOMElement cloning and appending: Wrong Document Error I would like to copy all the child nodes of element foo in DOMDocument A into element bar in DOMDocument B. However, using appendChild to do so apparently throws a DOM_WRONG_DOCUMENT_ERR. Is there a right way of doing this? XML Document A <foo> <...

Flash ExternalInterface and function callbacks question

I'm about to write a spec for a Flash developer to build a player control that works similar to the HTML5 <audio> tag. One of the key points is how to add callbacks, for example, with the audio tag you would do something like: getElementById('flashAudioPlayer').addEventListener('timeupdate', function() { // Do stuff }); Is it possi...

How does one get or create a selection or range from a dom coordinate point in javascript?

Hopefully this is possible by invoking a method that gets executed by browser internal code. Given a point x,y in dom coordinates. (that is can get relative to any node) in an element containing text I want effectively charIndex = characterUnderPoint(textNode,nodex,nodey); I figure if there is some sort of facilty to do range = xx.c...

XML DOM conflicting namespace issues

Hi, I am using XML DOM documents with two namespaces. For example, consider the following document: <entry xmlns="http://www.w3.org/2005/Atom" xmlns:libx="http://libx.org/xml/libx2"&gt; <id>5</id> <title>Put Google Book results into Addison</title> <updated>2009-02-23T10:12:15Z</updated> <author> <name>LibX Team</name> ...

Aquiring specific characters surrounded to specific tag

A simple tool to store and display texts longer than a few lines. The search button<div id="xyz">will highlight all</div> the words matching the name of objects that are members of the classes listed in searchedClasses, itself a member of the KeySet class. The highlighted words are hypertext. I want to retrieve characters which are su...

Unique identifier for HTML elements

Besides of the ID, if you say, you want a unique identifier for an HTML element (let say a div). I browsed the DOM for something (like a number or string) that is unique for each element; but the DOM is big and I failed to find that in the Internet. Is there any property (in the DOM obviously) that is unique only to that element? (Othe...

How exactly javascript and DOM works .......

why DOM is required for javascript ...how exactly javascript works......I am new to this plz help Thanks ...

does DOM order determine the order of form parameters posted?

If I have a form like this: <form> <input name="param[]" /> <input name="param[]" /> <input name="param[]" /> </form> Can expect to receive these parameters in the same order when the form is submitted? I've noticed that Chrome, Rails, and Webrat preserve the order of the parameters, but that may be caused by implementation det...

Get a node's inner XML as String in Java DOM

I have an XML org.w3c.dom.Node that looks like this: <variable name="variableName"> <br /><strong>foo</strong> bar </variable> How do I get the <br /><strong>foo</strong> bar part as a String? ...

Misspellings in Microsoft Word

I am working with misspellings in Microsoft Word. With only just a few misspellings, accessing the SpellingErrors collection becomes gawdawful slow (at least with For/Next or For/Each loops). Is there a way to get the to the list (make a copy, copy the entries, stop the dynamic nature of the collection) quickly? I just need a list, a sn...

HTML 5 DOM Storage in IE6/7

Anyone knows a better way to storage data in IE6/7 using HTML DOM Storage? I found the ExDomStorage But it limits data to 64Kb. ...

Attaching Node with null value to a DOM document

Hi, I am trying to attach a node to a DOM document in the example code shown below. 1)I initialized the nodes "title, type" to null. 2)I tried to append these above nodes to the Document "child_doc" and then tried to set a new value to these nodes. But on doing the above, I am getting a java.lang.NullPointerException at this line: ...