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 page contains a couple of tables, one of them contain...
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 = d.createElement("tab...
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 legacy data.  Some steps in the simulation require that we...
In IE, I can just call element.click() from JavaScript - how do I accomplish the same task in Firefox?  Ideally I'd like to have some JavaScript that would work equally well cross-browser, but if necessary I'll have different per-browser Ja...
There are some attributes in HTML which are "boolean" - browsers treat them as "true" if they are present, regardless of the value. An example of such an attribute is selected on the <option> tag. Another is checked on <input...
I'm trying to figure out the most performant way of deep-cloning a DOM tree within the browser.  If I start out with  var div = document.getElementById("source"); var markup = div.innerHTML;   What will be faster,  var target = div.cloneN...
I'm currently trying to create a tweet button with the horizontal count feature dynamically:  JavaScript  var twitter = document.createElement('a'); twitter.setAttribute('href', 'http://twitter.com/share'); twitter.setAttr...
So I have a couple of divs overlaid on eachother 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.  Ie I have multiple onclicks one for each div but only the top one...
In this simple script i get the error "obj.parentNode.getElementById is not a function", and I have no idea, what is wrong.   <script type="text/javascript">          function dosomething (obj) {          sibling=obj.parentNode....
I want to have a javascript function such as this:  function isUsernameAvailable(username) {    //Code to do an AJAX request and return true/false if   // the username given is available or not }   How can this be accomplished using Jquery or Xajax?...

Tags

Recent Questions

Top Questions

Home Tags Terms of Service Privacy Policy DMCA Contact Us

©2020 All rights reserved.