cmte_souza
10-25-2002, 04:33 PM
I found this code to be very usefull.
If you are programming with SAP Internet Transaction Server, and want to improve your final HTML with some java scripts, you have to deal with some crazy element names like "~OKCode=SELECT" (that's a button name) or "ZFIITSE0001-USER.name" (that's a field name)
So, in your javascript code, you can't simply reference your element like
document.form.~OKCode=SELECT.focus();
because you'll get an error message.
But you can reference it like
document.form("~OKCode=SELECT").focus();
as some element inside the form (an element collection) object that can be referenced by its index or its name. In this case, by name.
That was very helpfull for me! :thumbsup:
If you are programming with SAP Internet Transaction Server, and want to improve your final HTML with some java scripts, you have to deal with some crazy element names like "~OKCode=SELECT" (that's a button name) or "ZFIITSE0001-USER.name" (that's a field name)
So, in your javascript code, you can't simply reference your element like
document.form.~OKCode=SELECT.focus();
because you'll get an error message.
But you can reference it like
document.form("~OKCode=SELECT").focus();
as some element inside the form (an element collection) object that can be referenced by its index or its name. In this case, by name.
That was very helpfull for me! :thumbsup: