Function Namespace AjaxSolr
A unique namespace for the AJAX Solr library.
Defined in: Core.js.
Constructor Attributes | Constructor Name and Description |
---|---|
AjaxSolr()
|
Field Attributes | Field Name and Description |
---|---|
<private> <static> |
AjaxSolr.booleanAttributes
From Ruby on Rails. |
Method Attributes | Method Name and Description |
---|---|
<static> |
AjaxSolr.compact(array)
Equivalent to Ruby's Array#compact.
|
<static> |
AjaxSolr.equals(foo, bar)
|
<static> |
AjaxSolr.extend()
A simplified version of jQuery's extend function.
|
<static> |
AjaxSolr.flatten(array)
A copy of MooTools' Array.flatten function.
|
<static> |
AjaxSolr.grep(array, callback)
A copy of jQuery's jQuery.grep function.
|
<static> |
AjaxSolr.inArray(value, array)
|
<static> |
AjaxSolr.isArray(obj)
Can't use toString.call(obj) === "[object Array]", as it may return
"[xpconnect wrapped native prototype]", which is undesirable.
|
<static> |
AjaxSolr.isRegExp(obj)
|
<static> |
AjaxSolr.isString(obj)
|
<static> |
AjaxSolr.optionValueSelected(value, selected)
From Ruby on Rails. |
<static> |
AjaxSolr.size(obj)
|
<static> |
AjaxSolr.tagOptions(options, escape)
From Ruby on Rails. |
<static> |
AjaxSolr.theme(func)
Define theme functions to separate, as much as possible, your HTML from your
JavaScript.
|
Field Detail
<private> <static>
AjaxSolr.booleanAttributes
Method Detail
<static>
AjaxSolr.compact(array)
Equivalent to Ruby's Array#compact.
- Parameters:
- array
<static>
{Boolean}
AjaxSolr.equals(foo, bar)
- Parameters:
- foo
- A value.
- bar
- A value.
- Returns:
- {Boolean} Whether the two given values are equal.
<static>
AjaxSolr.extend()
A simplified version of jQuery's extend function.
- See:
- http://ajax.googleapis.com/ajax/libs/jquery/1.2.6/jquery.js
<static>
AjaxSolr.flatten(array)
A copy of MooTools' Array.flatten function.
- Parameters:
- array
- See:
- http://ajax.googleapis.com/ajax/libs/mootools/1.2.4/mootools.js
<static>
AjaxSolr.grep(array, callback)
A copy of jQuery's jQuery.grep function.
- Parameters:
- array
- callback
- See:
- http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.js
<static>
{Boolean}
AjaxSolr.inArray(value, array)
- Parameters:
- value
- A value.
- array
- An array.
- Returns:
- {Boolean} Whether value exists in the array.
<static>
AjaxSolr.isArray(obj)
Can't use toString.call(obj) === "[object Array]", as it may return
"[xpconnect wrapped native prototype]", which is undesirable.
- Parameters:
- obj
- See:
- http://thinkweb2.com/projects/prototype/instanceof-considered-harmful-or-how-to-write-a-robust-isarray/
- http://ajax.googleapis.com/ajax/libs/prototype/1.6.0.3/prototype.js
<static>
{Boolean}
AjaxSolr.isRegExp(obj)
- Parameters:
- obj
- Any object.
- Returns:
- {Boolean} Whether the object is a RegExp object.
<static>
{Boolean}
AjaxSolr.isString(obj)
- Parameters:
- obj
- Any object.
- Returns:
- {Boolean} Whether the object is a String object.
<static>
AjaxSolr.optionValueSelected(value, selected)
- Parameters:
- value
- selected
<static>
{Number}
AjaxSolr.size(obj)
- Parameters:
- {Object} obj
- Any object.
- Returns:
- {Number} the number of properties on an object.
- See:
- http://stackoverflow.com/questions/5223/length-of-javascript-associative-array
<static>
AjaxSolr.tagOptions(options, escape)
- Parameters:
- options
- escape
<static>
AjaxSolr.theme(func)
Define theme functions to separate, as much as possible, your HTML from your
JavaScript. Theme functions provided by AJAX Solr are defined in the
AjaxSolr.theme.prototype namespace, e.g. AjaxSolr.theme.prototype.select_tag.
To override a theme function provided by AJAX Solr, define a function of the
same name in the AjaxSolr.theme namespace, e.g. AjaxSolr.theme.select_tag.
To retrieve the HTML output by AjaxSolr.theme.prototype.select_tag(...), call
AjaxSolr.theme('select_tag', ...).
- Parameters:
- {String} func
- The name of the theme function to call.
- ...
- Additional arguments to pass along to the theme function.
- Throws:
- Exception if the theme function is not defined.
- Returns:
- Any data the theme function returns. This could be a plain HTML string, but also a complex object.
- See:
- http://cvs.drupal.org/viewvc.py/drupal/drupal/misc/drupal.js?revision=1.58