The way this is typically handled is:- Enter user data in an <input> field
- "Submit" the data back to the same wiki page
- Check for the presence of the arg data in the URL. If it's there, execute the desired code.
So, for your case, let's call the argument "pageuri". Let's start with #3:
Code:
if (__request.arg.pageuri is not nil) {
// DekiScript using pageuri, e.g.: mytemplate(pageuri);
}
else {
// This gets executed when you first load the wiki page, *without* the argument
}
Here's a super-simple way of implementing #1 and #2:
Code:
<form>
<input type="text" name="pageuri"/>
<input type="submit"/>
</form>;
Of course, you're welcome to do something fancier with JEM, input validation, whatever. But this should get you started.
[/code]