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

This widget could not be displayed.

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
Community showcase
Posted Thursday in United States

Local Atlassian Research Workshop opportunity on Sep. 28th

We're looking for participants for another workshop at Atlassian! We need Jira admins who have interesting custom workflows, issue views, or boards. Think you have a story to sh...

35 views 0 0
View post

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