I know that onload event waits for page resources to load before firing - images, stylesheets, etc.
But does this include IFrames inside the page? In other words, is it guaranteed that all the child Frames' onloads will always fire before the parent's does?
Also, please let me know if behavior varies between browsers.
...
Hi,
I'm developing a webpage (using jquery) where the user can add new graphical controls to the DOM (for example, the user clicks on a link and a new DIV is created). How can I change the background color of this new element for a few seconds (and then it will revert back to its original color)? I want to change the color to give a vis...
I'm trying to serialize some data to xml in a way that can be read back. I'm doing this by manually building a DOM via xml.dom.minidom, and writing it to a file using the included writexml method.
Of particular interest is how I build the text nodes. I do this by initializing a Text object and then setting its data attribute. I'm not su...
Hi I'm new to dom parsing on php:
I have an html file that I'm trying to parse.
It has a bunch of div's like this:
<div id="interestingbox">
<div id="interestingdetails" class="txtnormal">
<div>Content1</div>
<div>Content2</div>
</div>
</div>
<div id="interestingbox">
......
I'm trying to get the contents of ...
http://richarcade.com/play/gunrun
I'm using swfobject.js (richarcade.com/swfobject.js) to display Flash content, and wz_tooltip.js (richarcade.com/wz_tooltip.js) to display hovered tooltips. The problem is that the 'similar games' tooltips show up behind the flash game. Any ideas?
...
Hello,
I don't want to use styles from style.css, so I decided to remove style.css from DOM. This work just fine in Firefox and IE8, but not in IE6:
$("LINK[href='http://www.example.com/style.css']").remove();
Any other solution, with jQuery?
Here is example:
HTML:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" ...
I am sure this has been discussed repeatedly, but I am stumped. I am using jQuery to make an AJAX call to an ASP.NET Web service which returns some HTML. That part is working fine.
I want to do some calculations on the height of the HTML returned, but when the the call happens for the first time I am getting a height of 0. I know my cal...
I want to detect the height of the viewable area using Javascript. I have this DIV of height 550px which I want to display on the browser. However, this height might cause the vertical scrollbar to appear on some browsers (depending on how many toolbars the user has installed). In that case I want to detect that, and alert the user about...
I'm have a web page where I have a div within which there is a somewhat complex DOM tree. It displays fine across most browsers(IE 6-8, FF 2.x-3.5.x, Chrome, Safari) but when I try to print the page I'm having some cross-browser problems, some work half some of the time and others don't work at all.
I had the idea that if I could send o...
It seems like there should be, but I've looked over the API and nada. I don't see how it's done in 2.x. Currently, I store references with the elements to the tab and tabview objects via jQuery's data method.
The why: When I interact with the tabs via mouseovers and clicks, I need to be able to reference the YUI tab/tabview objects' pr...
I've written class to parse some xml into an object and it's not working correctly, when I try and get the value of a node I get a null rather than the contents of the node.
Here is a simplified version of my class that just does the xml parsing of a single node:
import java.io.File;
import java.io.IOException;
import java.util.ArrayLi...
Hi,
i have a table, and i did sorting of that. Its execution time bad. I guess this is because of DOM manipulation.
/* I m converting to array */
var rows = $table.find('tbody > tr').get();
$.each(rows, function(index, row){ /*then again to 2D array */
if(($(row).children('td').eq(0).attr('class').indexOf('collapse') != -1 ...
I am writing a simple image replacement script on a site I am working on and having a bit of trouble.
The code I have at the moment consists of:
$(function() {
// When a thumbnail is clicked
$(".zoom_thumbs a").click(function() {
// Get large image attributes
var largeImg = $(this).attr("href");
var largeTitle = $(thi...
I have some Java (5.0) code that constructs a DOM from various (cached) data sources, then removes certain element nodes that are not required, then serializes the result into an XML string using:
// Serialize DOM back into a string
Writer out = new StringWriter();
Transformer tf = TransformerFactory.newInstance().newTransformer();
tf.s...
There is no error while loading the page but if i click on the page after successful loading, the js error pop up comes up with "Object does not support this property or method" message. No errors encountered in IE7 or FF3, it is happening only with IE6
What could be the reason for this? Please help.
Thanks
...
Hi,
I have a table with expand and collapse of rows, with column sortable.
Below is my code, is there is any ways to improve its performance.
And read appending complete group of rows into dom improves performance, but if i do out of $.each() loop it throws error.
teble demo
var alt = true;
var altSub = true;
$.each(myData, function(...
Hi folks,
I have a table which have to sort with expanding and collapsing of row groups. Because this i am using 2D array. The way of DOM selection or some other regions its execution time is bad. I appreciate your response. Table image
$.each(myData, function(index, row) {
$.each(row, function(index1, row2) {
row2.sortKe...
My problem at the moment is specifically related to the jScrollPane scrollbar plugin, but the issue of concern is more general. Graphical artifacts can be a problem with any JS animation.
Certain types of positioning and use/abuse of CSS styles can make redrawing much more prone to graphical artifacts, even in the modern browsers.
I us...
I have markup in my page that includes the tag:
<body>
<object codebase="blah" codetype="text/blah">
<param name="name" value="value"/>
<div>Some Markup</div>
</object>
</body>
The idea is for browsers to display the content of the <div> by default, but if a special JS library is present, it will find all the elements an...
I used $(document).html(), but that threw an error... is there a way to get everything?
...