Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 2 Next »

 

 

Navigation

In order to avoid future issues with links, and to facilitate better navigation around answerSpaces, it would be desirable to implement a unified scheme for hyperlinks.

Currently, users are coached to build links that work in the static client, and these links are (sometimes clumsily) converted into JavaScript calls in the dynamic client.

 A more future-proof, maintainable, and easier scheme would look like:

<a keyword="k1" ...>link to K1</a> // for backwards compatibility only

<a interaction="i1" ...>link to I1</a>

<a category="c1" ...>link to C1</a>

<a masterCategory="m1" ...>link to M1</a>

<a back>go back</a>

<a home>go home</a>

<a login>go to login</a>

When encountered, these links should be post-processed so that they perform as expected when the user clicks them.

Here's an example with an $args[0] being passed:

<a interaction="nextInteraction" _0="myArgument">Next Interaction</a>

Note that you don't actually type "args" in the link, you just type an underscore (_) and anything after that will be the key in the $args array.

Note that you do need to be careful with quotes, but then you always had to be careful with quotes. If there are double-quotes in your argument string, then enclose the argument in single-quotes, and vice versa.


  • No labels