Advanced Search

View RSS Feed

JavaScript & Ajax

  1. The YouTube version3 player

    The player used on http://www.youtube.com/watch?v=VIDEO_ID is YouTube's version3 player. If you want to use it directly (without the watch?v= part) you can do, for instance: http://www.youtube.com/v/EUSsXdhxFIM?version=3. (You may have to press CTRL if you want this to work in IE).

    The advantage of the version3-player over other versions is that a click on a playing video doesn't open a new YouTube window containing all sorts of information that you may not be interested in. The click ...

    Updated 11-29-2010 at 01:57 PM by molendijk

    Categories
    JavaScript & Ajax
  2. Some Remarks about Ajax-includes using document.write

    Some Remarks about Ajax-includes using document.write

    I. Why document.write?
    Including external content with the help of document.write brings in external html AND external code (js, css). This is a clear advantage of document.write over other inclusion-methods, like innerHTML (does not execute scripts) and appendChild (does not automatically import all the external js and/or css when IE, Chrome or Opera are used). To see this, create a file external.html with some js in it, ...

    Updated 02-27-2010 at 06:32 PM by molendijk

    Categories
    JavaScript & Ajax
  3. 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
Page 2 of 2 FirstFirst 12