View Single Post
Old 05-15-2015, 05:17 PM   #1
Junior Member
 
Join Date: Jan 2015
Posts: 28
mduh is on a distinguished road
Default 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>
but none of theme work. I receive 'The plug-in failed or returned invalid xml '. Could you please post me example of correct implementation of such redirect?

Thanks,
-Maciej
mduh is offline   Reply With Quote