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

Style applied to a jsp iView


In our jsp iView there are five dropdown buttons, which needs to be selected from left to right. So, when only first dd list box is selected then second list box will appear, and so on so forth. For this I am using jsp scriplets to extract and store the id's of the ddlist boxes which are generated dynamically. Then we are trying to use 'style' statements to 'hide' and 'visible' the ddl boxes. I am adding them after </hbj:group> closing and between </hbj:form> closing tags like here. 1844, 1845,<STYLE TYPE="text/css"> 1846,<!-- 1847,#<%= sales_off_ddl_box%> 1848,#<%= customers_ddl_box%>

#<%= sales_grp_ddl_box%> 1849,#<%= sales_district_ddl_box%>


</STYLE> 1850, 1851, <script defer language="JavaScript"> 1852,function test(){ 1853, var sales_org = document.getElementById('<%=sales_org_ddl_box%>').value; 1854, if(sales_org != "*"){ 1855, alert("Hi"); 1856, <%=sales_off_ddl_box%>.style.visibility='visible'; 1857, <%=customers_ddl_box%>.style.visibility='hidden'; 1858, <%=sales_grp_ddl_box%>.style.visibility='hidden'; 1859, <%=sales_off_ddl_box%>.style.visibility='hidden'; 1860, } 1861,} 1862,</script>

But style info. is not working.

I wonder why SAP didn't provide any 'onload()' event for the body tag. Is there a way I can make this work ?

Thank you so much for your help,

Prasad Nutalapati.

SAP America Inc.

Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • author's profile photo Former Member
    Former Member
    Posted on Feb 17, 2004 at 07:14 PM


    I found a way out.

    No need to use

    Hope this helps,

    Prasad Nutalapati

    Add a comment
    10|10000 characters needed characters exceeded

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.