MobLink Example
Author: Hervé Ménager

# MobLink functionnality demo

`MobLinks` are a way to link a website to a Mobyle website using a HTML anchor or an HTML form. To do this you need to provide parameters that specify the value of each parameter for each form you want to prefill. For instance, if you want to link to a preloaded golden form that specifies the bank and the identifier, you will provide the corresponding parameters in the link or form:

- `load::golden::db`=`uniprot`
- `load::golden::query`=`104K_THEPA`

Each of the parameter names is composed of three parts:

- `load` which tells mobyle that it should load the following value into a form
- `[form name]` which is the name of the form where the value is to be loaded
- `[parameter name]` which is the name of the parameter where the value is to be loaded

The url which should be loaded (in the form's `action` attribute or in the anchor's `href` attribute) is the url of the mobyle portal where you want to load the forms (e.g. http://mobyle.pasteur.fr).

Please refer to the sourcecode of this page for more details.

## Form example

Forms require a little more HTML code than anchors, but should be easier to generate, and do not force you to use `GET` requests which generate long URLs.

Here is the db that has to be set in golden prefilled form
Here is the db that has to be set in golden prefilled form

## Anchor example

Anchors are more concise but are limited to `GET` requests, and the URLs can be harder to generate, because you need to concatenate the target URL and the encoded parameter values.

Open the golden form in Mobyle