Skip to Content
Former Member
May 03, 2005 at 03:15 PM

Working with the DOM using JavaScript for Web Based BPS applications



I was trying to implement a JavaScript utility that was provided in a presentation by the Netweaver RIG.

The JavaScript error reports that the "elements" attribute/object bps-stat_roundtrip is empty. I would like to determine where within the BSP classes I can determine what attributes/objects of the DOM can be manipulated/used using JavaScript.

The script added to a TextElement is:

<SCRIPT LANGUAGE="JavaScript" type="text/javascript">
function ShowResponseTime()  {
  var bspForm = document['bspform'];
  alert ("Response time of last server roundtrip: " +
  bspForm.elements["bps-stat_roundtrip"].value +
  " ms");

 <input class="sapBtnStd"
   type = "button"
   value = "Response Time"
   onClick = "ShowResponseTime()">