05-15-2015, 05:17 PM | #1 |
Junior Member
Join Date: Jan 2015
Posts: 28
|
Redirect on function exit
Hello,
I have defined new toolbar button, which triggers custom function. I would like to redirect to external url, once the function execution is finished. I tried following function return: Code:
<?xml version='1.0'?><doc><url>http://example.com</url></doc> Code:
<?xml version='1.0'?><doc><ok type='blank'>http://example.com</ok></doc> Code:
<?xml version='1.0'?><doc><redirect>location='http://example.com'</redirect></doc> Thanks, -Maciej |
05-18-2015, 11:47 AM | #2 |
ISPsystem team
Join Date: Jun 2013
Posts: 233
|
Hello,
Could you please show your xml with button description. If you need to add any certain url, you need to add url to button description. Please see the documentation |
05-18-2015, 12:06 PM | #3 |
Junior Member
Join Date: Jan 2015
Posts: 28
|
The toolbar xml:
Code:
<metadata name="vm" type="list" key="id" keyname="name" autoupdate="300"> <toolbar> <toolbtn func="uh.console" name="console" img="t-go" type="edit"/> </toolbar> </metadata> BTW: Is there any recent documentation about user interface development? It would be very helpful to have description of how to build xml interface, supported function return values, etc. Thanks, -Maciej |
05-19-2015, 01:33 AM | #4 |
Junior Member
Join Date: Feb 2015
Posts: 3
|
Hello.
Try second way, but without <?xml version='1.0'?> . It's should work. Code:
<doc><ok type='blank'>http://example.com</ok></doc> If you want to open url in current tab of browser, try this: Code:
<doc><ok type='url'>http://example.com</ok></doc> |
|
|