Passing information to javascript resource

resah
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 Leaders.
June 19, 2012

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

0 votes
Vikash Kumar
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 Leaders.
November 20, 2013

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
TAGS
AUG Leaders

Atlassian Community Events