[pmwiki-users] jumpbox Javascript guru needed
marc
gmane at auxbuss.com
Sat Jan 27 10:11:35 CST 2007
The Javascript used for the jumpbox input tag is as follows:
http://www.pmwiki.org/wiki/Test/JumpBox
$InputTags['jumpbox'] = array(
'name' => 'n',
':html' =>
"<form action='{$PageUrl}' method='get'>
<select onchange='window.location.href=this.options
[this.selectedIndex].value'
\$InputSelectArgs>\$InputSelectOptions</select>
<input type='submit' value='$[Jump to page]' /></form>");
The problem is that when using this to jump to a page in a different
group, the URL displayed is of the form:
http://www.example.com/SomeGroup/JumpFormHerePage?n=Main.HomePage
This causes problems in some circumstances.
Can anyone help in amending the JS to produce, in the above example:
http://www.example.com/Main/HomePage
Or, if this can't be done via JS, how this might be achieved via
Redirect or some such.
Thanks.
--
Cheers,
Marc
More information about the pmwiki-users
mailing list