From OrganicDesign
(Redirected from
19 June 2007)
Ajax links
Here's another example of using SimpleForms ajax inputs. This example shows how to use inputs with the link parameter which renders the input as a normal hyperlink which is independent of any form. The link parameter is set to either a URL or an article title. The first two example links below use an article title, the first exists and the second doesn't. The third example has link set to a relative URL and sends content to be rendered directly without any associated article title.
Click the links in the second column to dynamically load the result into the third column:
| Wikitext | Rendered link | Response |
{{#input: type = ajax
| format = link
| update = example1
| title = foo
| ONE
}}
|
ONE
|
this is a div with id set to example1 |
{{#input: type = ajax
| format = link
| update = example2
| title = no-such-article
| TWO
}}
|
TWO
|
this is a div with id set to example2 |
{{#input: type = ajax
| format = link
| update = example3
| content = <nowiki>[[foo]]</nowik1>
| THREE
}}
|
THREE
|
this is a div with id set to example3 |
| |
|
|