This shows you the differences between two versions of the page.
Both sides previous revision Previous revision | |||
public:tellmaps_url_and_seo [2014/05/05 07:15] honzik |
public:tellmaps_url_and_seo [2014/05/05 07:27] (current) honzik |
||
---|---|---|---|
Line 107: | Line 107: | ||
/** | /** | ||
- | * Manual call to path change | + | * Get proper URI string to be used in parts of the app |
* @param path - string, path component part | * @param path - string, path component part | ||
* @param get_params - get param collection in the form of { param_name : param_value } | * @param get_params - get param collection in the form of { param_name : param_value } | ||
* @param local_hash - string, local hash part | * @param local_hash - string, local hash part | ||
- | * @return true/false on success / fail | + | * @return string final string |
**/ | **/ | ||
- | function changeUri( path, get_params, local_hash ) { | + | function getUriString( path, get_params, local_hash ) { |
... | ... | ||
- | /** | ||
- | * Manual call to path-only change, get_params and local_hash remains the same | ||
- | * @param path - string, path component part | ||
- | * @return true/false on success / fail | ||
- | **/ | ||
- | function changeUriPath( path ) { | ||
- | ... | ||
- | |||
- | /** | ||
- | * Manual call to params-only change, path and local_hash remains the same | ||
- | * @param get_params - get param collection in the form of { param_name : param_value } | ||
- | * @return true/false on success / fail | ||
- | **/ | ||
- | function changeUriParams( get_params ) { | ||
- | ... | ||
- | |||
- | /** | ||
- | * Manual call to local_hash-only change, path and params remains the same | ||
- | * @param local_hash - string, local hash part | ||
- | * @return true/false on success / fail | ||
- | **/ | ||
- | function changeUriLocalHash( local_hash ) { | ||
- | ... | ||
</code> | </code> | ||