dhtml Questions
35
Solved
How do I print the indicated div (without manually disabling all other content on the page)?
I want to avoid a new preview dialog, so creating a new window with this content is not useful.
The pa...
Litha asked 22/1, 2009 at 12:9
21
Solved
Is it possible to import css stylesheets into a html page using Javascript? If so, how can it be done?
P.S the javascript will be hosted on my site, but I want users to be able to put in the <h...
Immemorial asked 22/2, 2009 at 13:48
19
Solved
jQuery: how to change tag name?
For example:
<tr>
$1
</tr>
I need
<div>
$1
</div>
Yes, I can
Create DOM element <div>
Copy tr content to div
Remove tr from dom...
Caroleecarolin asked 8/8, 2010 at 20:3
29
Solved
So I have these checkboxes:
<input type="checkbox" name="type" value="4" />
<input type="checkbox" name="type" value="3" />
<input type="checkbox" name="type" value="1" />
<in...
Urgent asked 26/2, 2009 at 10:45
10
Solved
I am creating a photo gallery, and would like to be able to change the query string and title when the photos are browsed.
The behavior I am looking for is often seen with some implementations of c...
Beggary asked 10/6, 2012 at 15:48
15
Solved
I'm refactoring some old JavaScript code and there's a lot of DOM manipulation going on.
var d = document;
var odv = d.createElement("div");
odv.style.display = "none";
this.OuterDiv = odv;
var t...
Juicy asked 6/11, 2008 at 12:26
17
Solved
How can I calculate the width and height of a <div> element, so as to be able to center it in the browser's display (viewport)? What browsers support each technique?
Isham asked 16/11, 2008 at 19:15
18
Solved
How can JavaScript change CSS :hover properties?
For example:
HTML
<table>
<tr>
<td>Hover 1</td>
<td>Hover 2</td>
</tr>
</table>
CSS
table td:ho...
Etesian asked 7/7, 2012 at 1:27
4
Solved
in an html page i have got, i have a select box like this with values.
<select onChange="return filler(this.value);">
<option value="{'name':'rajiv',age:'40'}">a</option>
<op...
Fruin asked 4/7, 2011 at 14:5
7
Solved
If I have a form that is the main part of a page's content, will assigning focus to the first form field via JavaScript on page load have any negative effects on accessibility?
Daft asked 1/2, 2010 at 22:50
6
Solved
When you have more than one submit button in a form, is there a way to know which one fired the onsubmit event without adding code to the buttons themselves?
Edit: I need to do the check on the ...
Isla asked 21/8, 2010 at 17:54
6
Solved
DOMNodeInserted is known to make dynamic pages slow, MDN even recommends not using it altogether, but doesn't provide any alternatives.
I'm not interested in the element inserted, I just need to k...
Pierpont asked 9/8, 2011 at 14:30
6
Solved
I need to be able to convert dynamic HTML (html that is rendered on page load by javascript) to a PDF. I know there are plenty of HTML to PDF converters but none of the ones I have found thus...
Hardpressed asked 25/2, 2010 at 1:7
4
Solved
I am populating country dropdownlist from a database. I need to select a value from dropdown list and assign it to textbox by using Javascript.
Code:
var textboxId = document.getElementById("txt...
Firmament asked 9/3, 2010 at 11:59
6
Solved
In my code, I fairly frequently need to replace all children of a certain HTML container with a new list of children.
What is the fastest way to do this? My current approach is collecting all new ...
Emmett asked 14/2, 2011 at 10:31
14
Solved
What JavaScript do I need to use to redirect a parent window from an iframe?
I want them to click a hyperlink which, using JavaScript or any other method, would redirect the parent window to a new...
Footstool asked 24/2, 2009 at 6:24
6
Solved
Is there a way to capture when the contents of an iframe have fully loaded from the parent page?
Manymanya asked 29/6, 2010 at 16:47
7
Solved
Is there any way to get the collection of all textNode objects within a document?
getElementsByTagName() works great for Elements, but textNodes are not Elements.
Update: I realize this can be a...
Tonneau asked 5/4, 2010 at 16:58
10
Solved
I am writing a dhtml application that creates an interactive simulation of a system. The data for the simulation is generated from another tool, and there is already a very large amount of le...
Clothilde asked 9/10, 2008 at 12:47
5
Solved
Anyone have any ideas why scrollTop isn't working in IE?
It works in Chrome fine, and I don't know about firefox. (The idea of this script is to have an autoscrolling page that resets once it hits...
Pester asked 18/7, 2011 at 17:32
8
Solved
I'm relatively new to Javascript and was wondering if there's a quick way to shuffle content that is contained in multiple <div> tags. For example
<div id='d1'>
<span>alpha</...
Seclude asked 24/11, 2008 at 19:32
7
Solved
I've inherited a project I'm working on and I'm updating some jquery animations (very little practice with jquery).
I have a div I need to add and remove the style attribute from. Here is the div:...
4
Solved
How can I alert the id of the <li> item clicked?
<ul id='myid'>
<li id='1'>First</li>
<li id='2'>Second</li>
<li id='3'>Third</li>
<li id='4...
11
Solved
I want to create a simple bit of JS code that creates an image element in the background and doesn't display anything. The image element will call a tracking URL (such as Omniture) and needs to be ...
Everything asked 22/10, 2008 at 17:52
10
There are zillions of Java web application frameworks.
95% were designed before the modern era of AJAX/DHTML-based development, and that means these new methods are grafted on rather than designed...
Andri asked 16/9, 2008 at 15:41
1 Next >
© 2022 - 2024 — McMap. All rights reserved.