cancel
Showing results for 
Search instead for 
Did you mean: 

webdynpro

Former Member
0 Kudos

hi,

Dear brothers and sisters

where should i put javascript code any other

option not iframe control tell me some other option

waiting for ur reply

ravi

Accepted Solutions (1)

Accepted Solutions (1)

thomas_szcs
Active Contributor
0 Kudos

Hi Ravi,

The reasons for not allowing custom javascript are security concerns and maintaining the client independness of the Web Dynpro technology. There is as well a so called SmartClient (available as sneak preview for download) that is able to display Web Dynpro applications and since it is not a browser does not understand javascript.

Best regards,

Thomas

Former Member
0 Kudos

Hi,

Webdynpro as a framework doesnt support javascript. There has been so many discussions on this

see this thread for more details

hope this helps you

Regards

Rohit

eddy_declercq
Active Contributor
0 Kudos

Hi,

Pls don't forget to reward points and close the question if you find the answers useful.

Eddy

Former Member
0 Kudos

You cannot execute the JavaScript as part of Web Dynpro application. Instead you can create a temporary url.

WDWebResource.getWebResource(linebytes,WDWebResourceType.HTML).getUrl();

Here linebytes is the javascript converted into bytes.

Now you may execute this as a new window.

wdcomponentApi.getWindowmanager().create....();

I am not sure if that would suit your requirement.

Noufal

Answers (1)

Answers (1)

eddy_declercq
Active Contributor
0 Kudos

Hi,

If I understand you well, you want to provide own javascript in you webdynpro app?

Own Javascript is not allowed in WD.

Check this for doing iframe URL handling in WD:

Eddy