Questions tagged [dhtml]

Dynamic HTML, or DHTML, is an umbrella term for a collection of technologies used together to create interactive and animated web sites by using a combination of a static markup language (such as HTML), a client-side scripting language (such as JavaScript), a presentation definition language (such as CSS), and the Document Object Model.

Dynamic HTML, or DHTML, is an umbrella term for a collection of technologies used together to create interactive and animated web sites by using a combination of a static markup language (such as ), a client-side scripting language (such as ), a presentation definition language (such as ), and the .

DHTML allows scripting languages to change variables in a web page's definition language, which in turn affects the look and function of otherwise "static" HTML page content, after the page has been fully loaded and during the viewing process. Thus the dynamic characteristic of DHTML is the way it functions while a page is viewed, not in its ability to generate a unique page with each page load.

By contrast, a dynamic web page is a broader concept — any web page generated differently for each user, load occurrence, or specific variable values. This includes pages created by client-side scripting, and ones created by server-side scripting (such as , , or ) where the web server generates content before sending it to the client.


Resources :

747 questions
11
votes
4 answers

Twitter Bootstrap 2 on collapse event

is there any way to catch when the collapse menu appears (or when collapse button is clicked by user) ? i'm using standard bootstrap twitter framework and classes.
itsme
  • 48,972
  • 96
  • 224
  • 345
10
votes
2 answers

How to make a click or double click on a word on a web page to trigger an event handler?

For a page like http://www.answers.com if the user double clicks on any word in the page, a pop up box will show up and shows the definition for that word. I can think of a way to use DOM scripting to break up all words in the page and then make…
nonopolarity
  • 146,324
  • 131
  • 460
  • 740
10
votes
1 answer

How can you check if your document is opened in an IFrame?

Is there a way to know if your page is opened inside of an IFrame? An idea I had was to see if the window object has a .parent property, but this apparently is also true of standalone windows which are opened by Javascript's window.open() function.
levik
  • 114,835
  • 27
  • 73
  • 90
10
votes
1 answer

html - selection range - getting the range + starting node + ending node + distance

From my previous question for selecting specific html text, I have gone through this link to understand range in html string. For selecting a specific text on html page. We need to follow this steps. Assumed HTML:

sagarkothari
  • 24,520
  • 50
  • 165
  • 235

10
votes
6 answers

"Endless scrolling" effect in a HTML table

I am displaying a scrolled data table in a web page. This table has several thousands of dynamic rows, so it is loaded from the server (via AJAX). The user can scroll up and down, so what I need is to detect when the user reaches the end of the…
Guido
  • 46,642
  • 28
  • 120
  • 174
9
votes
2 answers

How to create a modal popup using javascript and CSS

Actually, two questions: How can I create a modal popup with background color of gray? Also I need to create for a cover background color only to table itself. Not to overall page. How do I do this using javascript and css?
kumar
  • 1,117
  • 13
  • 34
  • 58
9
votes
8 answers

Why is my TinyMCE hidden textarea acting up?

I have about 7 textareas on a web page, all of them are rich text editors using TinyMCE. However at page load only 1 of them is visible and the rest of them hidden. The user can click a 'show' link which would display the remaining textareas one by…
Ali
  • 261,656
  • 265
  • 575
  • 769
9
votes
2 answers

What are best practices for designing JavaScript classes that represent UI objects in the DOM?

I am very familiar with JavaScript and OOP but am very unfamiliar with designing JS classes that are used for programming the UI (HTML). I have searched around a bit but have not come across any prevalent patterns. Let's say I wanted to dynamically…
skyline3000
  • 7,639
  • 2
  • 24
  • 33
9
votes
3 answers

IE is not submitting dynamically added form elements

I wrote some JavaScript to allow editing a list of items within an HTML form, including adding and removing items. Got it working in Firefox. When trying it in Internet Explorer, I found that any added items were not being submitted with the…
Jeremy Frank
  • 743
  • 1
  • 7
  • 10
9
votes
2 answers

mint.com javascript dropdown effect

I need to recreate an effect that mint.com has on another website. When you go to the transactions page and click on one of your transactions a tab pops up underneath that says edit details. When you click on that tab a div will drop down exposing…
Adam McMahon
  • 413
  • 2
  • 9
  • 20
8
votes
4 answers

insertRow vs. appendChild

Which method is preferred for adding a row to a table? var tr = tbl.insertRow(-1); or var tr = document.createElement('tr'); tbl.appendChild(tr); ?
erikkallen
  • 33,800
  • 13
  • 85
  • 120
8
votes
3 answers

Range slider / dual slider exist without using a framework

I'm looking for a JavaScript control that is a Range Slider (dual knob) that: does NOT use an existing JS framework (e.g. dojo, jQuery, etc.) - unless you can roll/create your own sub framework where I can compile in just the components I…
Hank892
8
votes
3 answers

How to find value of input field using name attribute?

How to access the value of this input field by its name attribute using Javascript document.querySelectorAll('input[name=hey]').value;
Shyam Sundar
  • 131
  • 1
  • 1
  • 7
8
votes
2 answers

z-index and Javascript events

I have a couple of divs overlaid on each other with differing z-index values. The default behaviour for browsers seems to be the event bound to the top-most z-index div gets fired. I.e. I have multiple onclicks one for each div but only the top one…
citronic
  • 9,868
  • 14
  • 51
  • 74
7
votes
4 answers

How to know when a user scrolls past a

I'm building something where I show users items that they haven't seen. Each item is in a
, so when the user scrolls past a div, or views the div, I want that item to be marked as having been seen. Google reader does this, if you scroll past an…
Ali
  • 261,656
  • 265
  • 575
  • 769