View RSS Feed

All Blog Entries

  1. Compact Cookie Unit

    Cookies are often confusing. Much of the confusion can be eliminated if you know that all cookies are strings. If you want to store an array, function, number, or an object in a cookie, you must convert it to a string before storage and upon retrieval change it back into the object/array/function/number that it was. Cookies are therefore best used for string storage and retrieval. This unit doesn't pretend to eliminate all of the possible confusions that can arise from "when and where in ...

    Updated 07-10-2010 at 03:59 PM by jscheuer1

    Categories
    Post a JavaScript
  2. Dynamically minimizing a DHTML Window

    Original Script: DHTML Window

    By default the DHTML Window script can only be minimized by clicking on the "minimize" icon located on the upper right of the opened window. Someone asked on the forums if there's a way to do this dynamically, such as via a link instead. Well, certainly. Given the below example DHTML Window:

    Code:
    var googlewin=dhtmlwindow.open("googlebox", "iframe", "http://images.google.com/", "#1: Google Web site",
    ...
    Categories
    DD Scripts Mods
  3. "Operation Aborted" error in IE when inserting new elements into the DOM, and fix

    The DOM lets you dynamically create and add elements to the page, such as the following, which creates an image on the fly and adds it to the end of the document:

    Code:
    var img=document.createElement("img")
    img.setAttribute('src', 'dd.gif')
    document.body.appendChild(img)
    Ideally such an operation should be done after the document has loaded, though in most browsers, I noticed you can get away with it. In IE6 and IE7, however, things get a lot more ...

    Updated 06-04-2009 at 12:45 AM by ddadmin

    Categories
    Web Design issues
  4. Document.write issues

    The Ajax Includes Script given at http://www.dynamicdrive.com/dynamici...axincludes.htm uses document.write for including external content. Advantage: you don't have to explicitly bring the js belonging to the external file(s) to the main page. But beware the results in certain cases! In IE, (external) scripts added to the page using document.write are not run until after the document.write that adds them has finished. Non-IE browsers will run them straight away. So
    Code:
    <script type="text/javascript">
    ...

    Updated 05-16-2009 at 11:55 PM by molendijk (Forgot to mention category)

    Categories
    JavaScript & Ajax
  5. Randomizing Fading Scroller

    The script does not have a randomizing option on the scroller, and due to a recent thread I made. (http://www.dynamicdrive.com/forums/s...70&postcount=2).

    Your new code should look like this:
    Code:
    <script type="text/javascript">
    
    /***********************************************
    * Fading Scroller-  Dynamic Drive DHTML code library (www.dynamicdrive.com)
    * This notice MUST stay intact for legal use
    * Visit
    ...
    Categories
    Uncategorized
Page 14 of 19 FirstFirst ... 41213141516 ... LastLast