-
Personalise
getEditionValue("urlParams");
// it returns a params variable if exists. If no params are declared you will get undefined value.
Example:
// This feature allows clients to send personalised publications to their readers. This is achieved with adding a parameter to the URL.
Reserved name is: params.
Add params at the end of the publication link: ?params=Peter+Dragarhttp://public.edition-on.net/links/1340_presentation_params.asp?params=Peter+Dragar
The params are now stored in our global container and can be accessed as API get command in your flash document: getEditionValue(‘urlParams’); If no params are declared you will get undefined value.
There are some global URL rules which need to be applied carefully.
URL parameters should have only a limited subset of the US-ASCII. All special (UTF8) characters need to be URL encoded. For example: Tomaž must be converted into Toma%C5%BE
Here are some examples with different names:
// get params variable
var my_params = getEditionValue(‘urlParams’);
// or we can check if variable exists, if not get the default text. (notice ? and : character. It’s shortcut for IF / THEN )
var my_params = getEditionValue(‘urlParams’) ? getEditionValue(‘urlParams’) : ‘Sir or Madam’;http://public.edition-on.net/links/1340_presentation_params.asp?params=Peter+Dragar
http://public.edition-on.net/links/1340_presentation_params.asp?params=Grega+Erzen
http://public.edition-on.net/links/1340_presentation_params.asp?params=Goran+Makovec
http://public.edition-on.net/links/1340_presentation_params.asp?params=Toma%C5%BEHow to send more than one parameter
If you are sending more than one parameter use string separator like *** or any other split technique. Here is an ActionScript:
// first we add a parameter at the end of publication link
?params=Peter+Dragar***eDition+on+net
// get params variable if exists, if not get the default text
var my_params = getEditionValue(‘urlParams’) ? getEditionValue(‘urlParams’) : “Peter Dragar***eDition”;
// split params with *** and get first node
var my_name = my_params.split(‘***’)[0];
// split params with *** and get second node
var my_company = my_params.split(‘***’)[1];




