Class jQuery.fn
jQuery Library (http://jquery.com/)
Defined in: jtemplates.js.
Constructor Attributes | Constructor Name and Description |
---|---|
See (http://jquery.com/)
|
Method Attributes | Method Name and Description |
---|---|
<static> |
jQuery.fn.hasTemplate()
Check it HTML Elements have a template.
|
<static> |
jQuery.fn.processTemplate(d, param, options)
Process template using data 'd' and parameters 'param'.
|
<static> |
jQuery.fn.processTemplateStart(url, param, interval, args, options)
Start 'Live Refresh!'.
|
<static> |
jQuery.fn.processTemplateStop()
Stop 'Live Refresh!'.
|
<static> |
jQuery.fn.processTemplateURL(url_, param, options)
Process template using data from URL 'url_' (only format JSON) and parameters 'param'.
|
<static> |
jQuery.fn.removeTemplate()
Remote Template from HTML Element(s)
|
<static> |
jQuery.fn.setParam(name, value)
Set to parameter 'name' value 'value'.
|
<static> |
jQuery.fn.setTemplate(s, includes, settings)
Add a Template to HTML Elements.
|
<static> |
jQuery.fn.setTemplateElement(elementName, includes, settings)
Create a Template from element's content.
|
<static> |
jQuery.fn.setTemplateURL(url_, includes, settings)
Add a Template (from URL) to HTML Elements.
|
Method Detail
<static>
{number}
jQuery.fn.hasTemplate()
Check it HTML Elements have a template. Return count of templates.
- Returns:
- {number} Number of templates.
<static>
{jQuery}
jQuery.fn.processTemplate(d, param, options)
Process template using data 'd' and parameters 'param'. Update HTML code.
- Parameters:
- {object} d
- data
- {object} param Optional
- parameters
- options
- Returns:
- {jQuery} chainable jQuery class
<static>
{Updater}
jQuery.fn.processTemplateStart(url, param, interval, args, options)
Start 'Live Refresh!'.
- Parameters:
- {string} url
- A destination URL
- {object} param
- Parameters (for template)
- {number} interval
- Time refresh interval
- {object} args
- Additional URL parameters (in URL alter ?) as assoc array.
- {object} options
- options and callbacks
- Returns:
- {Updater} an Updater object
<static>
{jQuery}
jQuery.fn.processTemplateStop()
Stop 'Live Refresh!'.
- Returns:
- {jQuery} chainable jQuery class
<static>
{jQuery}
jQuery.fn.processTemplateURL(url_, param, options)
Process template using data from URL 'url_' (only format JSON) and parameters 'param'. Update HTML code.
- Parameters:
- {string} url_
- URL to data (in JSON)
- {object} param Optional
- parameters
- {object} options
- options (over ajaxSettings) and callbacks
- Returns:
- {jQuery} chainable jQuery class
<static>
{jQuery}
jQuery.fn.removeTemplate()
Remote Template from HTML Element(s)
- Returns:
- {jQuery} chainable jQuery class
<static>
{jQuery}
jQuery.fn.setParam(name, value)
Set to parameter 'name' value 'value'.
- Parameters:
- {string} name
- {object} value
- Returns:
- {jQuery} chainable jQuery class
<static>
{jQuery}
jQuery.fn.setTemplate(s, includes, settings)
Add a Template to HTML Elements.
- Parameters:
- {Template/string} s
- a Template or a template string
- {array} includes Optional
- Array of included templates.
- {object} settings Optional
- Settings (see Template)
- Returns:
- {jQuery} chainable jQuery class
<static>
{jQuery}
jQuery.fn.setTemplateElement(elementName, includes, settings)
Create a Template from element's content.
- Parameters:
- {string} elementName
- an ID of element
- {array} includes Optional
- Array of included templates.
- {object} settings Optional
- Settings (see Template)
- Returns:
- {jQuery} chainable jQuery class
<static>
{jQuery}
jQuery.fn.setTemplateURL(url_, includes, settings)
Add a Template (from URL) to HTML Elements.
- Parameters:
- {string} url_
- URL to template
- {array} includes Optional
- Array of included templates.
- {object} settings Optional
- Settings (see Template)
- Returns:
- {jQuery} chainable jQuery class