Why does memory usage grow?
I use sIEve to find out why memory usage grows. "inUse" columns has no big changes. Why does memory usage grow? What can affect the growth of memory usage than the number of DOM elements? Thank you! ...
I use sIEve to find out why memory usage grows. "inUse" columns has no big changes. Why does memory usage grow? What can affect the growth of memory usage than the number of DOM elements? Thank you! ...
I am trying to insert HTML into the YUI rich text editor. The code works if I use simple HTML snippets, but if I use something more complicated (e.g. try to embed an object), then it fails. Edit Fails - only for FF browser For example - this works: var html = '<div><b><u>Hello world!</u></b></div>'; myEditor.execCommand('inserthtml'...
somewhat related to: http://stackoverflow.com/questions/3701265/libxml2-from-java yes, this question is rather long-winded - sorry. I kept is as dense as I felt possible. I bolded the questions to make it easier to peek at before reading the whole thing. Why is sax parsing faster than dom parsing? The only thing I can come up with i...
Hello, In a previous question, user helped me but i'm stuck of doing simple request : <?php $nodes = $xPath->query('//table[@class="some_class"]'); But it returns me the whole table datas instead of rows of the table, that's why i want to retrive only "td" of the table. I tryed (but it's not working) <?php $nodes = $xPath->query('...
I'm trying to build an XML representation of some data. I've followed other examples, but I can't get it working. I've commented code down to this basic bit, and still nothing. This code compiles and runs OK, but the resulting output is empty. A call to dDoc.getDocumentElement() returns null. What am I doing wrong? Please help me, Stack...
If I create a custom javascript Object using a constructor, Is it possible to persist the object between HTTP Requests? - like storing it in the DOM and use it conditionally ? Will the DOM Objects persist (all client side Objects) between the HTTP Requests ..? or will it get lost after every form submit..? Thanks ...
Hello I'm making RSS reader and I'm using DOM. Now I stuck, trying to reverse the order of the items in the DOMNodeList. I can make it with 2 cycles - one to make it as array and one for rsort(). Is there any way to reverse the order in the DOMNodeList or must be done with "the array way"? ...
This is my HTML: <h3>test 1</h3> <p>blah</p> <h4>subheading 1</h4> <p>blah</p> <h4>subheading 2</h4> <h3>test 2</h3> <h4>subheading 3</h4> <p>blah</p> <h3>test 3</h3> I am trying to build an array of the h3 tags, with the h4 tags nested within them. An example of the array would look like: Array ( [test1] => Array ( ...
Hi, I need to add some function that returns a value to a dom element. I tried to use jquery's bind method, but it seems that events always return a jquery collection. My goal is creating a flashcard application. So I created flashcard objects that contain methods and variables including the dom element representing the flashcard on the...
Hello! I have an SVG file with some math equations. Lets say I include this file into my html document. Now what I'd like to do is to make some simple modifications to the contents of the svg using javascript in the html document. A specific example My svg file contains a nicely formatted version of this equation: x^2 + 2x + 1 = ...
Hi, I want to store elements as the keys in my array and object as values,for example - var arr = []; arr[ document.getElementById('something') ] = { data: 'something' , fn : function(){ } }; But the problem is: If I will add another element with the key of : document.getElementById('otherthing'). And later will try to get the value ...
I'm getting images from directories dynamically for some slideshows in a WordPress site I'm building. Sometimes they show up on pages, sometimes they don't. Looking at this I'm sure I need some sort of preloader to initialize my images into the DOM before the cycle plugin does what it does, but I just don't know where to shoehorn the pe...
What is the difference between value and defaultValue for text inputs in Javascript? And what are the implications of using one instead of the other? Are they free interchangeable? i.e., does changing one change the other? ...
Hi.. On twitter (new twitter) and facebook they now have the the ability to load new tweets and posts when you hit the bottom of the page.. Is there a JavaScript / jQuery event that you can call / add to a div so when the browser hits the bottom it does some ajax call to get the new data? Thanks Daniel ...
Something should trigger, no? I get not supported in IE8 and nothing happening in Fx 3.6.10 <html> <head> <script src="http://code.jquery.com/jquery-1.4.2.js"></script> <script> // modified from http://pragmatec.blogspot.com/2009/06/google-toolbar-style-and-tooltip.html jQuery(function($){ $.fn.dommodhandler = function(opt...
I have the following code: curl_setopt($ch, CURLOPT_URL, $host); curl_setopt($ch, CURLOPT_HEADER, 1); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); curl_setopt($ch, CURLOPT_USERAGENT, $user_agent); curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, 0); curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, 0); $html = curl_exec($ch); preg_match...
Hi all, my task is to get (updating) data from a GMail page with Greasemonkey's injected scripts. I want to get each object of HTMLHtmlElement (<html>) type from an opened page. What is a best way to enumerate all <something>.document instances existing in Firefox's currently open tab? Greasemonkey has unsafeWindow, but don't know what ...
I am interfacing with an existing API (from Garmin) that is very poorly documented and I need some help. The function I am calling is expecting a parameter that I don't know how to initialize properly. The code in the API looks like this, where activities is the parameter I supply: if (activities != null && activities.length > 0) { ...
I do the following steps: I load a webpage that initiates an ajax call before the page is loaded. The pages is some time afterwards loaded. The ajax call finishes 5 seconds after the page is loaded and inserts a new element. 10 seconds after the page is loaded I want to change the colour of this new element. Is that possible? and ho...
Hi there. I have a problem setting value of an hidden input element. I've tried using jQuery and $("#SomeHiddenElement").val(sSomeValue) function, and plain JS document.getElementById("SomeHiddenElement").value = sSomeValue; but nothing works... When I set the element to text type it works just fine... The problem persists both in FF ...