Try to trigger nasty virtual click, to activate and use the real/default Tasks box, instead of the current iframe, to have more features available, such as live updates when converting emails to tasks with shift+t.