cancel
Showing results for 
Search instead for 
Did you mean: 

iframe setting

Former Member
0 Kudos

wishes to all,

Here the thing is how should i bind the source file to the iframe in wdModifyView()

see the code below

if(firstTime)

{

IWDIFrame frame=(IWDIFrame)view.createElement(IWDIFrame.class,"frame");

frame.setEnabled(true);

frame.setBorder(false);

}

I have html file is there in src->mimes->components

how should i bind that file.

KYAN...................

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi,

One way is u create a context "source" and bind it to the iFrame source.

iFrame.bindSource("source");

and set the context with the file name "page.html".

wdContext.currentContextElement.setSource("page.html');

or u can use

iFrame.setSource("page.html");

regards,

Piyush.