Passing information to javascript resource

Hi,
I created a web-item which opens an AUI dialog. The javascript of the dialog is added with a web-resource. This is working as expected.
Now I would like to show some additional (custom) information about the page inside the dialog. Following your guidelines (https://developer.atlassian.com/display/CONFDEV/Confluence+UI+Guidelines#ConfluenceUIGuidelines-PassingdynamicvaluestoJavascript(before4.0)), I thought it would be nice to add these information via fieldset as shown.

I tried to create a web-panel and a context-provider (which should provide the additional information), but there are no data about the current page (e.g. pageId) neither in the web-panels velocity nor in the context-provider available to load my additional page information.

Is there another way to pass data to my javascript-resource without mixing javascript with velocity?

Any help is appreciated!

1 answer

Hi @Theresa,

Can you please tell me how did you open and action page to a dialog in confluence plugin.

Thanks,

Vikash

Suggest an answer

Log in or Sign up to answer
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Posted Tuesday in Uncategorized

Friday fun: how many celebrates Midsummer holiday or is this a Swedish tradition only?

Any other country that celebrates Midsummer holiday (this friday 22 June)?  

40 views 3 1
Join discussion

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you