Hi there, I apologise in advance if my question seems a bit misleading, but I'm trying to wrap my head around this one.
I have a flash-based MP3 player (http://blog.lacymorrow.com/projects/xspf-jukebox) that exposes a Javascript API that is really handy for my situation. I am using jQuery and swfObject to embed the Flash player and tha...
Basically I have a silverlight web App that resides within an IFrame. and that IFrame resides within a Frame of its own. And i want to access Buttons in the dom within the outer Frame.. Here is kind of a map of how it looks.
-My Application
-Frame
-Button
-Iframe
-Silverlight web wrapper
-Silverligh...
Hi,
I have a pretty complex composite application (.NET/WPF/Prism). It runs on some kind of embedded devices (with full fledge window 7), let's call them "kiosks". I need to allow remote control for the applicaton. i.e. it should have an embedded web-server which will provide some information via http/html for remote control (checking st...
I am in the the each() loop of a given <tr> on my page. How do I loop through all the <th> within $(this) i.e. within the current <tr>:
$('#my_table > tbody > tr').each(function() {
// how to loop through all the <th>'s inside the current tr?
});
...
Hi, I want to remove all children from a XML Node using PHP DOM, is there any difference between:
A)
while ($parentNode->hasChildNodes()){
$parentNode->removeChild($parentNode->childNodes->item(0));
}
AND
B)
$node->nodeValue = "";
I prefer the second one, seems like I am getting the same result but I'm not sure.
Thanks,
Carl...
Hello! I've been away from web design/development for a long, long now and have recently begun to get back into it. I started off doing things just to make them work, and now that I'm getting back into it, I would like to understand things a bit more clearly - including when the DOM is requested by the browser to when it is fully loaded,...
i want to highlight the selection.I have gone through this solution suggested by Tim Down , which does the half job for me.
http://stackoverflow.com/questions/2582831/highlight-the-text-of-the-dom-range-element
I have web pages stored at local,now i need a way to highlight the text permanently.By permanently,i mean i highlighted some tex...
Some stupid question about DOM, please don't hate me
For some reasons I need to pass an anonymous function to addEventListener (mainly to "pass" context variables) but the listener once called can be removed so I want to understand if the code shown below is the correctly way to detach the listener.
var item = document.createElemen...
how to disable the scroll bars of the page.
and disable this button.
...
Hello!
I'm working on a small web application that changes the contents of a select drop-down.
I was wondering if appendChild() and add() both accomplish the same task on a select DOM object in JavaScript?
var someSelect = document.getElementById('select-list');
var newOption = document.createElement('option');
someSelect.appendChild...
If I try to load an HTML document into PHP DOM i get an error along the lines of :
Error DOMDocument::loadHTML() [domdocument.loadhtml]: ID someAnchor already defined in Entity, line: 9
I cannot work out why.
Here is some code that loads an html string into DOM.
First without containing an anchor tag and second with one. The second...
I have seen examples of usage of a getNodePath() method on PHP DOM objects.
see:
http://www.php.net/manual/en/class.domdocument.php#91072
However i cannot find the documentation for that method.
I have been going around in circles in the DOM Docs.
http://www.php.net/manual/en/book.dom.php
Any ideas?
...
hi everyone,
i have a litte probleme with CSS modification on Internet Explorer. When i add an new CSS style in , IE don't reload the page with the new CSS injected. But when I change CSS property of an element it's works ! (This code work perfectly on Firefox !!!)
do you have any idea to do that the head modification work ?
if(doc...
I want to dynamically add javascript to an existing script element something like:
var se = document.createElement('script');
se.setAttribute('type', 'text/javascript');
se.innerHTML = 'alert(1)';
document.getElementsByTagName('head').item(0).appendChild(se);
The interesting part is se.innerHTML = 'alert(1)'; and if it is valid? If no...
Would appreciate any pointers regarding which function to use for this:
Say I have something like this:
<div class="myTweet">Check out this awesome link <a href="http://bit.ly/uglylookinglink>http://bit.ly/uglylookinglink</a></div>
Which reads:
Check out my awesome link http://bit.ly/uglylookinglink
All I want to do ...
Coming from flash it was always necessary to drop bitmap data in my slideshows so that I wasn't just loading more and more data into memory and thus weighing the program down.
Now that I've started building these slideshows using jQuery, I'm wondering if I should be cognizant of the same issue.
For instance, it's easy to keep appendi...
I have a table where I select a row by clicking it.
On click, the class selected is added to the row.
Here is the code:
// Change row background color on click
jQuery('#rowList tr').live("click", function() {
jQuery(this).closest("tr").siblings().removeClass("selected");
jQuery(this).toggleClass('selected');
});
Now, cl...
Hello,
I'm trying to use jQuery to access a DOM object that appears earlier in the code from the DOM object that I am starting with. This would ordinarily be easy with jQuery's traversal methods, like .parentsUntil. However, in this case the object I am trying to find is not a parent or sibling of the object I am starting from.
For exa...
I'm trying to extract the exact selection and cursor location from a textarea. As usual, what's easy in most browsers is not in IE.
I'm using this:
var sel=document.selection.createRange();
var temp=sel.duplicate();
temp.moveToElementText(textarea);
temp.setEndPoint("EndToEnd", sel);
selectionEnd = temp.text.length;
selectionStart ...
Here's my issue: I need to set the font-size of an element to match the font-size of another element, dynamically (in javascript).
This works fine when the browser isn't zoomed in/out.
When the browser is zoomed out, however, this occures:
window.getComputedStyle(element, null).getPropertyValue('font-size'); // 14px
element.style.font...