cancel
Showing results for 
Search instead for 
Did you mean: 

double clicking an iframe

Former Member
0 Kudos

Hi Friends,

I am working on webdynpro application wherein i click a treeitemtype , it opens an iframe and

displays a url in it.My query is that ,when i double click the iframe it should open a biiger version of the url.

Can anyone heelp me on this .Please, its ASAP.

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

As per my knowlege, there is no double click event on Iframe. What you can do is, you can increase the width and height of your Ifram to make it large.

secondly there is another option, if you want to open the url in seperate window..with all minimize and max buttons. Pls refer to below code.

data lo_window_manager type ref to if_wd_window_manager.
data lo_api_component  type ref to if_wd_component.
data lo_window         type ref to if_wd_window.
lo_api_component  = wd_comp_controller->wd_get_api( ).
lo_window_manager = lo_api_component->get_window_manager( ).
CALL METHOD lo_window_manager->CREATE_EXTERNAL_WINDOW
  EXPORTING
    URL            = 'http://www.sap.com/'
  RECEIVING
    WINDOW         = lo_window.
 
lo_window->open( ).

Hope it works.