NextDB.net

Class net.nextdb.Util

Object
   |
   +--net.nextdb.Util

class net.nextdb.Util


net.nextdb.Util is a collection of useful static functions for parsing forms and general web development.
Defined in api.docs.js


Constructor Summary
net.nextdb.Util()
           
 
Method Summary
<static> void addEvent( obj, type, fn )
           Standard cross browser compliant event registry.
<static> void buildForm(args)
           deprecated (see net.nextdb.html.Form)
<static> void c()
           For debugging, this will clear the debug console.
<static> Date convertFromServerDateFormat(<String> serverDateString)
           Converts the string representation of the date from the server to an instance of a JavaScript Date.
<static> String convertToServerDateFormat(<Date> pDate)
           If you are making your own date calls without the help of our calendar object, you must format the date object to the appropriate string date format for the server.
<static> void createCookie(<String> name,<String> value,<Number> days)
           In AJAX applications that consist of many different HTML pages, you can maintain state between pages using cookies to store and retrieve information.
<static> void eraseCookie(<String> name)
           Remove cookie by name.
<static> Object getAbsoluteLeft(obj)
           Gets the left of a dom element relative to page.
<static> Object getAbsoluteTop(obj)
           Gets the top of a dom element relative to page.
<static> void inspect(<object> n)
           quick single level alert of the contents of an object
<static> Boolean isServerDateFormat(d)
           Determines whether a given string has valid server date formatting.
<static> void p(<Object> txt, level)
           For debuggging, this static function will print out the a dynamically generated DIV on the page.
<static> Object parseForm(<Object> domNode)
           Use parseForm to extract an object from an HTML form, for the purpose of performing a Query, Update, Insert or Delete operation, the function returns an object of bound name/value pairs for children of a given DOM element, works with types

input[text] input[password] input[hidden] input[checkbox] input[radio] textarea select

where the name of the element becomes the column name and the value of the element becomes the new value for the row.
<static> void purge(<Object> d)
           Crockford purge for IE reference breaking.
<static> Object readCookie(<String> name)
           In AJAX applications that consist of many different HTML pages, you can maintain state between pages using cookies to store and retrieve information.
<static> void removeEvent( obj, type, fn )
           Standard cross browser compliant event registry.
<static> String shareDataModel(<net.nextdb.Connection> conn)
           Returns a URL to embed in your app to share your datamodel with the community.
<static> String shortDateFormat(<Date> date)
           Simple utility to format as Dec 16, 2008 8:30
<static> void sourceCaptchaImg(<HTMLElement> img, <String> fg, <String> bg)
           Pass in an img object reference and this function sources a fresh captcha image from the server.
<static> Object trim(<object> txt)
           Removes trailing spaces from this string.
<static> Object validateEmail(<Object> email)
           Validate email address.
<static> void visualizeQuery(<Array> rows,<HTMLElement> div)
           Uses Google visualization api to render rows from a NextDB Query into sortable table.

Constructor Detail

net.nextdb.Util

net.nextdb.Util()

Method Detail

addEvent

<static> void addEvent( obj, type, fn )

buildForm

<static> void buildForm(args)

c

<static> void c()

convertFromServerDateFormat

<static> Date convertFromServerDateFormat(<String> serverDateString)

convertToServerDateFormat

<static> String convertToServerDateFormat(<Date> pDate)

createCookie

<static> void createCookie(<String> name,<String> value,<Number> days)

eraseCookie

<static> void eraseCookie(<String> name)

getAbsoluteLeft

<static> Object getAbsoluteLeft(obj)

getAbsoluteTop

<static> Object getAbsoluteTop(obj)

inspect

<static> void inspect(<object> n)

isServerDateFormat

<static> Boolean isServerDateFormat(d)

p

<static> void p(<Object> txt, level)

parseForm

<static> Object parseForm(<Object> domNode)

purge

<static> void purge(<Object> d)

readCookie

<static> Object readCookie(<String> name)

removeEvent

<static> void removeEvent( obj, type, fn )

shareDataModel

<static> String shareDataModel(<net.nextdb.Connection> conn)

shortDateFormat

<static> String shortDateFormat(<Date> date)

sourceCaptchaImg

<static> void sourceCaptchaImg(<HTMLElement> img, <String> fg, <String> bg)

trim

<static> Object trim(<object> txt)

validateEmail

<static> Object validateEmail(<Object> email)

visualizeQuery

<static> void visualizeQuery(<Array> rows,<HTMLElement> div)

NextDB.net

Documentation generated by JSDoc on Mon Mar 29 20:15:50 2010