The HTML DB Javascript Remix

When building applications or examples sometimes I run into issues that aren't covered in the standard HTML DB libraries but can be covered by extending an HTML DB Javascript object or with new generic functions. Much of this functionality will become part of the base HTML DB javascript libraries by Version 3.0

So to help myself out and hopefully everyone else as well I'm going to provide the file htmldb_remix.js

I will also be rewriting my examples where appropriate to move generic functionality into this file for better reuse.


There is no warranty or support (past what you can get out of me on the forums) provided for this file. If it breaks your application installation or your stereo speakers it's your fault not mine

Usage

To use the file just include in your page template or HTML Header region just make sure it loads after the built in HTML DB javascript libraries so that it properly overides/extends the built in functionality.

If you want to use this file on htmldb.oracle.com it can be added in using this tag
<script src="https://static.oracle.com/cdn/apex/24.2.6/carl/htmldb_examples/htmldb_remix.js" type="text/javascript"></script>

You can if you want just cut out the functionality you want instead of including the whole javascript file but your on your own at that point.

Extended / Overidden Functionality

Brief descriptions of the provided functionality and links to usage examples.

Objects

  • htmldb_Get.GetAsync(pVar) : Extends the htmldb_Get object to help with posting and processing asyncronous xmlhttp requests. Example
  • >
  • dhtml_ShuttleObject.move_all() and dhtml_ShuttleObject.remove_all() : Extends the dhtml_ShuttleObject to add move_all and remove_all methods Example

Functions

  • html_HideElement(pNd),html_ShowElement(pNd),html_ToggleElement(pNd),html_HideItemRow(pNd),html_ShowItemRow(pNd),html_ToggleItemRow(pNd) have been extended to allow for pNd to be a string id a dom node or an array or string id's or dom nodes

New Functionality

Functions

  • f_Hide_On_Value_Item : hides an item/array of items based on the value of another item Example
  • f_Hide_On_Value_Item_Row : hides an item/array of items row based on the value of another item Example