Friday, March 7, 2008

JavaScript.com HTML Newsletter, Fri Mar 7 2008

JavaScript.com

Internet.com Network
Friday March 7, 2008

Auto-Select
This function, when called on a particular HTML element, will auto-select all of its inner text. It works on elements such as input, textarea, div, span, td, and pre.

Ajax Fast and Easy
A simple, easy tutorial that explains what Ajax is and how to use it.

Overriding IE's getElementById()
There is a well-known bug in the Internet Explorer implementation of the getElementById() method, which, contrary to the W3C standard, allows the method to return an element even if only the element's name attribute matches the requested id. This snippet will easily correct that problem.

Show/Hide a DIV
Showing and hiding a DIV using a link can be very useful when it's not necessary to always display information on the Web page. For example, this technique can be used for posting comments on a blog. That way you don't need to use a popup window or a separate page.

Generate a Table of Contents Using the DOM
It's often useful for a long page to contain a table of contents, to make it easy for people to jump to the section they want to read. This script will do the work automatically, generating a table of contents using the <h1> to <h6> tags.

JavaScript: Basic Date Display Script
Would you like to display the current date on your Web pages? One option is to use JavaScript. Here we use a basic date script, thanks to our friends at cgiscript.net. The script also comes with comments so you can understand how it works.

Jupiterimages - your search ends here
Jupiterimages offers online subscriptions and single image
downloads for clipart, Web graphics, photos, footage and music
(including flash versions) via a comprehensive network of
design-oriented Web sites for industry professionals and
individual consumers.
See what you're missing.
Go to: http://www.jupiterimages.com
Interested in placing your TEXT AD HERE? Click Here
 

How to Create a JavaScript Breadcrumb Script
A breadcrumb is a navigational tool used to display the path to the current page. There are several different ways of displaying a breadcrumb. One of them is by using JavaScript. This tutorial will show you how.

How to Populate Fields from New Windows Using JavaScript
Occasionally, filling out web page forms can be daunting. Fortunately, some forms display a question mark next to the form field, which opens a popup window containing additional information. This week, you'll learn how to enhance the functionality of those windows.

Universally Related Popup Menus AJAX Edition: Part 2
Last week we looked at a brief overview of Ajax, relevant JavaScript 1.3 enhancements, how to run the example and using the script within your own Web page. This week we look at additional functionality that you'd like to add to scripts and an in-depth explanation of the JavaScript code.

Universally Related Popup Menus AJAX Edition: Part 1
This week we look at a brief overview of AJAX, some relevant JavaScript 1.3 enhancements, how to run the example and using the script within your own Web page.

Forum query: recursive function + obj arg = infinite recursion
This is kind of a theoretical question. I'm hoping for general advice on techniques here. I am building a Javascript class to build a tree structure. It has a recursive method that lets you specify the structure of the tree called renderChildren. You call renderChildren with an argument,...

Forum query: [Help needed! Opacity Fade doesn't work in IE!
I have an old website (http://www.draxor.org/virtualsecurity/) that runs an opacity fade script for the navigation, and it works on Firefox, but not on IE (Internet Explorer). But at least, it loads the page in IE. And on my new site (http://www.draxor.org/new/), it won't even load using IE. The...

Forum query: Javascript variables
This code <a href="javascript:swap_main('351.jpg')"> <img src="images/galleries/somegallery/thmb_351.jpg" width="75" height="50" border="0"></a> is used to swap a thumbnail for a main image. The image tag in question has a name attribute of "fullsized". Here's the function: function...

Forum query: Form Validation (Contact Information Form)
Hey guys, thanks for help from last week (Image Swap) But anyways, this is what I have to do: Create a page with a form that has a name field, a phone number text field, email text field, address text field, city text field, postal code text field, and province select element, grouped together in...

Forum query: Memory issue?
I have a library designed as such: Class.Object1.method1 = function(){...} Class.Object1.method2 = function(){...} Class.Object2.method1 = function(){...} etc...






JupiterOnlineMedia

internet.comearthweb.comDevx.commediabistro.comGraphics.com

Search:

Jupitermedia Corporation has two divisions: Jupiterimages and JupiterOnlineMedia

Jupitermedia Corporate Info


Legal Notices, Licensing, Reprints, & Permissions, Privacy Policy.

Advertise | Newsletters | Tech Jobs | Shopping | E-mail Offers

All newsletters are sent from the domain "internet.com." Please use this domain name (not the entire "from" address, which varies) when configuring e-mail or spam filter rules, if you use them.

0 comments: