‎2011 Mar 08 9:56 AM
Hi all,
I want call a abap method via a javaScript function in a view of a bsp application.
Does someone know how it works?
regards Alex
‎2011 Mar 08 1:40 PM
Hi,
You can either change the location of the page to a target URL usinng "document.location.href = 'targeturl'. So targeturl is the fully qualified url necessary to call the method.
Or you can take a look at XMLHttpRequest object (http://www.w3.org/TR/XMLHttpRequest/) which can create requests to a given URL. You can parse and use the data returned by the target url.
Hope it helps,
Regards.
Ozcan.
‎2011 Mar 08 1:40 PM
Hi,
You can either change the location of the page to a target URL usinng "document.location.href = 'targeturl'. So targeturl is the fully qualified url necessary to call the method.
Or you can take a look at XMLHttpRequest object (http://www.w3.org/TR/XMLHttpRequest/) which can create requests to a given URL. You can parse and use the data returned by the target url.
Hope it helps,
Regards.
Ozcan.