Namespace Alphagov
Defined in: geo.js.
Constructor Attributes | Constructor Name and Description |
---|---|
A set of resuable methods for setting, changing and removing cookies
|
Method Attributes | Method Name and Description |
---|---|
<static> |
Alphagov.cookie_domain()
|
<static> |
Alphagov.delete_cookie(String)
|
<static> |
Alphagov.get_display_place_name(String, String)
|
<static> |
Alphagov.read_cookie(String)
|
<static> |
Alphagov.write_permanent_cookie(String, String)
|
Namespace Detail
Alphagov
A set of resuable methods for setting, changing and removing cookies
- Requires:
- core.js
Method Detail
<static>
Alphagov.cookie_domain()
Alphagov.cookie_domain()
- Returns:
- A string with the entire host path
<static>
Alphagov.delete_cookie(String)
Alphagov.delete_cookie("qwerty")
- Parameters:
- String
- name Name of the cookie
- Returns:
- The value found for the matching cookie
<static>
Alphagov.get_display_place_name(String, String)
Alphagov.get_display_place_name("foo", "bar")
- Parameters:
- String
- locality_name Locality name
- String
- council_name Council name
- Returns:
- Result
<static>
Alphagov.read_cookie(String)
Alphagov.read_cookie("qwerty")
- Parameters:
- String
- name Name of the cookie
- Returns:
- The value found for the matching cookie
<static>
Alphagov.write_permanent_cookie(String, String)
Alphagov.write_permanent_cookie("foo", "bar")
- Parameters:
- String
- name Name of the cookie
- String
- value Value of the cookie
- Returns:
- The value found for the matching cookie