Accessing Macro parameters values with javascript (Atlassian Connect)

Hi Friends, i would like to make a search field in my confluence page such as this input is in an iframe and the content to search is in an other iframe !! :disappointed_relieved:
I know that browser block access to iframe content. So is there any solution to do that ??
Regards.
Samer Sboui

1 Like

Dear Samer,

did you check the Events from the JavaScript library? You can use those to talk cross iframes and let e.g. iframe2 update its data once it receives an event from iframe1 to do so.

Kind regards

Andreas

1 Like

thnx @andreas1 , can i send the same event from macro to many macros at the same time ?!
Regards.

Yes you can do that.

@andreas1 any suggestion ??
I posted another question, can you help me plz ?
https://community.developer.atlassian.com/t/ac-image-ri-attachment-can-not-be-shown-as-a-part-of-my-macro-body/22213