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 |
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 |
The toolbar xml:
Code:
<metadata name="vm" type="list" key="id" keyname="name" autoupdate="300"> 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 |
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> |
All times are GMT +2. The time now is 03:58 PM. |
Powered by vBulletin® Version 3.8.9
Copyright ©2000 - 2024, vBulletin Solutions, Inc.