G32 Ajax Include & Hijax Container

Definition

This compnent enables various ajax functionality into the page.


Usage

Used to either auto include content on page load, or control where hijaxed content is loaded on form submit or link click

v0 Ajax loadUrl Include Container

This component consist of a DIV and an A tag that refers to the URL of the remote page you want to use for your include. The URL must contain an anchor that refers to the ID of the DIV you wish to include. For example, href="/foo/bar.html#foo" will include the contents of the <div id="foo"> from the remote page, but it will NOT include the actual <div id="foo"> object. The only limitation of this component is that the remote URL MUST reside on the same server as the page that is using the g32.

The remote page can be a complete page with headers and footers or a simple pop up. The only restriction is that it must be a complete HTML page that can be viewed as a standalone document.

While this component is fairly simple to apply, one thing to note is the use of an ID in the g32 DIV. This ID, "myDiv," is optional and can be changed to any ID value. The ID is useful if the content you are including needs to reference or be a child of a specific ID, whether for css styling or further ajax interactions.

Although the text inside the link will not be visible to most users, it should be edited to describe what is going to be included, for example; "Get Contact Info," "Submit this Form," etc. This will enable users without javascript to be able to link directly to the content on another page--making it accessible to them.

Copy the code below and paste into your text editor.

No Templates Reference this

v1 Hijax Container

Copy the code below and paste into your text editor.

No Templates Reference this

Contact About Sun News & Events Employment Site Map Privacy Terms of Use Trademarks Copyright 1994-2006 Sun Microsystems, Inc.