Discussions

Web tier: servlets, JSP, Web frameworks: Problem jsp and javascript

  1. Problem jsp and javascript (2 messages)

    I'am working with JSP to generate dynamically ComboBoxes say 1 to 10.Now i use JavaScript to validate these ComboBoxes.I java it is referenced as combobox[i] and in javascript it is referenced as combobox.i and hence i get Object not found error....

    Please help me
    Srinivasulu Thalla


  2. Problem jsp and javascript[ Go to top ]

    hello Srinivas,

    There is an element array which is part of the forms objects in Javascript. The elements array contains the list of all the elements in the form. For each element you can check the type attribute and check whether it is a combobox. Thus you wouldnt have to refer to the combobox by name ( since the name is dynamically generated ) instead you navigate through the elements array. This is one way to solve the problem.

    Thanks

    -U
  3. Respected sir,

      ihave three comobox for entering date one for entering date,one for month and lastly for year.

      How can I concate them and store in a database(in SQL)?



    yours
    kalyan.