Skip to Content
author's profile photo Former Member
Former Member

JavaScript Error


first of all I would like to express my hope that this SAPDN becomes rather populated... (counter++ 😉 )

Currently I'm trying to develop my first bsp with htmlb extension. The bsp is no big deal, mainly consists of one big form with some TextEdits and some InputFields. But I do have some problems with JavaScript:

1.) I would like to have the valueHelp for two InputFields. In the htmlb_samples BSP the Help for DateFields works fine. In my one BSP a click on the valueHelp-symbol throws a JavaScript-Error in IE ("Objekt erforderlich"). I can't find any differences between the htmlb_samples and my own bsp. Is there something I should have a look on?

2.) Clicking the submit-button in my form throws a JavaScript-Error, too. Same errormessage, same problem, I do not know where to look for the problem...

Current SupportPackage is SAPKB62023, htmlbDesign is CLASSIC...



Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • Posted on Sep 29, 2003 at 07:14 PM

    Hallo Alex,

    First, before kicking off with your "problem" the general reminder that problems should be reported via OSS/CSN. This allows us to help you at higher priority (support still comes before SDN!).

    But I suspect that you do not have a real "problem", just a configuration situation. What you describe usually happens when specific nodes in ICF tree that are used to load javascript files are not active. The browser will attempt to load the JS, and just silently fails if it could not find the file. Later you get the JavaScript errors. In SP27, we have added a proactive test for this, and then render directly out to the browser a message if we detect this situation. For the moment I would recommend transaction SICF and definitely read OSS/CSS note 517484.

    While you are at it, also read note 616900, and specifically the attachment. It is a BSP FAQ document. However, we will replace as much as FAQ information in better structured weblog articles. So, while reading answer, look at the top of the page for "Weblogs". There you will find also a BSP topic. Currently listed are 5 articles. Another 5 are in the pipeline over the next two weeks.

    Two final remarks:

    (1) When in doubt about your own programs, always check that ours work first! See HTMLB_SAMPLES, SBSPEXT_HTMLB and SBSPEXT_XHTMLB.(From SP30, you can also look at SBSPEXT_PHTMLB.)

    (2) Switch into DESIGN2002.

    Yes, we also hope that SDN becomes quite popular. At the the moment it is only quiet.


    Add a comment
    10|10000 characters needed characters exceeded

    • Hallo Alex,

      Now that you write it, I see it immediately! Yes, the problem is that we do not have validation code available that can check the complete document structure. (This is also difficult when using include files, as these compiled separately, and can only contain small sequences of a page that are invalid without the context of the parent page.)

      What I usually do, is automatically write the first three tags in sequence: <htmlb:content>, <htmlb:page> and then <htmlb:form>. Thus have not seen this error before.

      As this is does not seem to happen often, and can be considered an once-off error, we will for the moment not try to catch it. The development effort is relatively high to ensure that the form tag is outside of other things. (Also with our current approach of doing most of this at runtime, the overhead penalty increases, even during the full productive live time of the application.) But nevertheless, we have now added this onto our development plan (sometime in the next decade:).

      bye, brian

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.