The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

JIRA connect plugin: JavaScript access parent page object

Volodymyr Krupach @BrizoIT
Atlassian Partner
May 17, 2014

JIRA on demand plugin is loaded into the iframe and since it's loaded from domain that differs from parent JIRA domain, I can not access the DOM parent object from the plugin:

parent.document.body.scrollTop

Is there any way to access the scroll positio of the parent window? I really need this to position the dialogs launched from the plugin.

1 answer

1 accepted

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

1 vote
Answer accepted
Daniel Wester
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Champions.
May 17, 2014
You can't access the parent window. You're explicitly sandboxed. How are you launching the dialog? Are you using AP.dialog?
Volodymyr Krupach
May 18, 2014

I am using AUI dailog: https://docs.atlassian.com/aui/latest/docs/dialog.html

Is the AP.dialog centered inside parent page viewable area?

Thank you Danial!

TAGS
AUG Leaders

Atlassian Community Events