expand and collapse data in jsp

expand and collapse data in jsp

<a href="javascript:fun('none')">Hide</a>
<a href="javascript:fun('block')">Expand</a><br>
<br><br><br><br>
<div id=div name=div style="overflow:hidden;display:none">
<a href="javascript:fun1('none')">Hide</a>
<a href="javascript:fun1('block')">Expand</a>
<div id=div1 name=div1 style="overflow:hidden;display:none">
<center>
<h2>Personal Details:</h2></center>
<form name="form" method="post" onsubmit="return validate();">
<center>
<table>
<tr><td>First Name:</td><td><input type="text" name="fname"></td></tr>
<tr><td>Last Name:</td><td><input type="text" name="lname"></td></tr>
<tr><td>Date Of Birth:</td><td><input type="text" name="dob"></td></tr>
<tr><td>Address:</td><td><input type="text" name="address"></td></tr>
<tr><td>Contact No:</td><td><input type="text" name="contact"></td></tr>
<tr><td>Email:</td><td><input type="text" name="email"></td></tr>
</table>
</div>
<br><br><br><br><br>

<a href="javascript:fun2('none')">Hide</a>
<a href="javascript:fun2('block')">Expand</a>
<div id=div2 name=div2 style="overflow:hidden;display:none">
<center><h2>Educational Details:</h2>
</center>
<center><table>
<tr><td>Highest Qualification(With University):</td><td><input type="text" name="qua1"></td></tr>
<tr><td>Marks:</td><td><input type="text" name="marks1"></td></tr>
<tr><td>Second Highest Qualification(With University:</td><td><input type="text" name="qua2"></td></tr>
<tr><td>Marks:</td><td><input type="text" name="marks2"></td></tr>
<tr><td>Intermediate(Mention Board):</td><td><input type="text" name="inter"></td></tr>
<tr><td>Marks:</td><td><input type="text" name="marks3"></td></tr>
<tr><td>Highschool(Mention Board:</td><td><input type="text" name="hschool"></td></tr>
<tr><td>Marks:</td><td><input type="text" name="marks4"></td></tr>
</table>
</center>
</div>
<br><br><br><br><br>
<a href="javascript:fun3('none')">Hide</a>
<a href="javascript:fun3('block')">Expand</a>
<div id=div3 name=div3 style="overflow:hidden;display:none">
<center><h2>Project and Experience Details:</h2></center>
<center>
<table>
<tr><td>No of Projects done:</td><td><input type="text" name="projects"></td></tr>
<tr><td>Technologies Used:</td><td><input type="text" name="technologies"></td></tr>
<tr><td>Work Experience:</td><td><input type="text" name="experience"></td></tr>
</table>
</form>
</center>
</div>
</div>
</html>

but HOW do we make it dynamic? Here we hardcoded the values and field names. But when we get the data dyanamycally ,how do we rewrite this functions?

When click on + sign,it fetches the data and dispaly it. it can be nay number of data ,it will be in arraylist. how do we rewrite the function in that case?

View Answers









Related Tutorials/Questions & Answers:
expand and collapse data in jsp
expand and collapse data in jsp   function fun1(h) { var tbl... and field names. But when we get the data dyanamycally ,how do we rewrite this functions? When click on + sign,it fetches the data and dispaly it. it can be nay
Expand and collapse for the entire form
Expand and collapse for the entire form  i have a jsp with multiple sections. i have implemented expand and collapse for all the sections. now i want... the sections wil be in collapse mode. once i click on expand all, all the section
Advertisements
Expand / Collapse form div when click on button
Expand / Collapse form div when click on button  Hi, I have a form integrated from Wufoo with iFrame code. If the user misses a field an error... formbox expand once the form gets higher? Thanks <div class="formbox
jsp data in excel - JSP-Servlet
jsp data in excel  i have create jsp page which has button for excel.this calls jsp which contains code which has and then code for present data in jsp using table. and getting this data from servlet which has query
data grid - JSP-Servlet
to implement data grid in jsp Thanks varun kumar  Hi friend, I... information. http://www.roseindia.net/jsp/data-grid.shtml Thanks...data grid  how can we implement data grid (we have data grid
data grid - JSP-Servlet
data grid  i am trying to do the example in the following link http://www.roseindia.net/jsp/data-grid.shtml but i am not able to find... this example  Hi friend, To visit again http://www.roseindia.net/jsp/data
ModuleNotFoundError: No module named 'cmsplugin-collapse'
ModuleNotFoundError: No module named 'cmsplugin-collapse'  Hi, My... named 'cmsplugin-collapse' How to remove the ModuleNotFoundError: No module named 'cmsplugin-collapse' error? Thanks   Hi, In your
ModuleNotFoundError: No module named 'mdx_collapse'
ModuleNotFoundError: No module named 'mdx_collapse'  Hi, My Python... 'mdx_collapse' How to remove the ModuleNotFoundError: No module named 'mdx_collapse' error? Thanks   Hi, In your python
ModuleNotFoundError: No module named 'cmsplugin-collapse'
ModuleNotFoundError: No module named 'cmsplugin-collapse'  Hi, My... named 'cmsplugin-collapse' How to remove the ModuleNotFoundError: No module named 'cmsplugin-collapse' error? Thanks   Hi, In your
Data fetching from JSP or HTML - JSP-Servlet
Data fetching from JSP or HTML  Hi Deepak, Can u pls help me as i have a problem with jsp/html frameset. my question is how can i fetch the data from frameset which is in html format.pls help me. Thanks
JSP data base validation
JSP data base validation  please explain how to validate form input string with database n also how its notify that entered data exists already... bol = ps.execute(); out.println("Data Added Successfully
ModuleNotFoundError: No module named 'expand'
ModuleNotFoundError: No module named 'expand'  Hi, My Python... 'expand' How to remove the ModuleNotFoundError: No module named 'expand'... to install padas library. You can install expand python with following command
read excel data from jsp - JSP-Servlet
read excel data from jsp  Hi how to read excel file from jsp? Excel file is created manually entered data having many sheets? and read the entire sheet and also edit with jsp? pls suggest me?   Hi Friend, 1
Problem in inserting clob data in jsp
Problem in inserting clob data in jsp  how to insert any rich text editor data (which have more than 32766 characters) in a clob type column of oracle database with jsp
passing data between the jsp pages ?
passing data between the jsp pages ?  i developed a project... of the marks. from the previous jsp page the data needs to pass.i use for that.when... the roll number and when we press submit button on that page it moves a jsp page
saving data - JSP-Interview Questions
to save the data in JSP and using crimson editor? Thank u very much. rodmel  Hi friend, I am sending you data store code into the database. Insert into database Insert Data
Data Redundancy - JSP-Interview Questions
Data Redundancy  Sorry for disturbing you again but there's redundancy of the selected data on this jsp u gif me. The selected data will appear twice...); } Use of Select Box in JSP Select items from select box
jsp with excel sheet data uploading into database
jsp with excel sheet data uploading into database  how to upload data in excel sheet with jsp into oracle 10g database
data are not display in JSP from database - JSP-Servlet
data are not display in JSP from database   i want to finding some data through a SQL query from SQL server database to a JSP page based on some... of this jsp page. like.. School Result and three request parameters 'class', 'from
retrieving of data from one jsp to another jsp - JSP-Servlet
retrieving of data from one jsp to another jsp  using jsp i m displaying a table ,in table i m displaying a radio button then values like id,name etc... that is used for different jsp please help me sir... thanks in advance   Hi
project in JSP and XML(to store data)
project in JSP and XML(to store data)  I need to complete an assignment in JSP and using XML as Database ,Please help me to complete... of JSP Web Application demonstrating web technology concepts? Create n
how to display data from database in jsp
how to display data from database in jsp  how to display data from database in jsp
ModuleNotFoundError: No module named 'sphinx-collapse-admonitions'
ModuleNotFoundError: No module named 'sphinx-collapse-admonitions'  ...: No module named 'sphinx-collapse-admonitions' How to remove the ModuleNotFoundError: No module named 'sphinx-collapse-admonitions' error? Thanks
ModuleNotFoundError: No module named 'sphinx-collapse-admonitions'
ModuleNotFoundError: No module named 'sphinx-collapse-admonitions'  ...: No module named 'sphinx-collapse-admonitions' How to remove the ModuleNotFoundError: No module named 'sphinx-collapse-admonitions' error? Thanks
ModuleNotFoundError: No module named 'django-collapse-whitespace-templatetag'
ModuleNotFoundError: No module named 'django-collapse-whitespace-templatetag...: ModuleNotFoundError: No module named 'django-collapse-whitespace-templatetag' How to remove the ModuleNotFoundError: No module named 'django-collapse-whitespace
multipart/form-data - JSP-Servlet
multipart/form-data  When we are uploading a file we are using the encoded type of form of type multipart/form-data. When we are using... with the example available in http://www.roseindia.net/jsp/file_upload/Sinle
for store data in data base - JSP-Servlet
for store data in data base  i want to a job site, in this site user..... and on 3rd form i use submit button... data of form 1 and 2 can also be store... Friend, We have created 4 jsp files: 1)login.jsp: A:hover
JSP Servlet update patient data - JSP-Servlet
JSP Servlet update patient data  Hi Friend, I'm attaching my inserting patient data servlet as requested. I tried your posted code, its... that the data from the form doesn't disappear which I requested last time. 3
How to display the data column on jsp
How to display the data column on jsp  My requirements: Display total... .. in table of each database having two columns: description, error. but data..."; } jsp code: <form id
retrive data from oracle to jsp
retrive data from oracle to jsp  i am a beginer in jsp so please help... cost and manager name and storing it in the data base. in search proj fiel... connected to data base
reading data using struts and jsp java
reading data using struts and jsp java  how can i read data entered by user into a textbox (jsp page) into struts action class ex emp id,so... employee related data
To save table format data in pdf/excel in jsp
To save table format data in pdf/excel in jsp  Hello, I am doing web application project in jsp. In webform ,I am displaying database data in html table. So my question is ,I want so save this html format data in pdf/excel format
JSP and XML .data store nd retrieve
JSP and XML .data store nd retrieve  I have made a form in jsp having emp id, projectname and emp name.I want to store data related to employee in xml file.How can i store data entered by user in XML file and later retrieve data
get data between date using jsp with msaccess
get data between date using jsp with msaccess  hi, urgently i need program for get data between date using jsp with MsAccess database.plz any one can help me.thanks for anyone replay with regards c.b.chellappa
ModuleNotFoundError: No module named 'genre-expand'
ModuleNotFoundError: No module named 'genre-expand'  Hi, My Python... 'genre-expand' How to remove the ModuleNotFoundError: No module named 'genre-expand' error? Thanks   Hi, In your python
ModuleNotFoundError: No module named 'ifsc-expand'
ModuleNotFoundError: No module named 'ifsc-expand'  Hi, My Python... 'ifsc-expand' How to remove the ModuleNotFoundError: No module named 'ifsc-expand' error? Thanks   Hi, In your python environment
Dynamic table data to Excel in JSP
Dynamic table data to Excel in JSP   Iam trying to export dynamic data to excel . But it is displaying only static data .Kindly help viewtrial.jsp <%@page import="java.sql.*"%> function des_setEnable
data (image ,audio) inserting to data base (oracle 10g) and retriving the same data from jsp
data (image ,audio) inserting to data base (oracle 10g) and retriving the same data from jsp   data (image ,audio) inserting to data base (oracle 10g) and retriving the same data from jsp with script of data base plz help me
How to retrieve data by using combo box value in jsp? - JSP-Servlet
How to retrieve data by using combo box value in jsp?  I am using a single jsp form.. i did not get from another form.. i do not use 2 jsp form.. all.... Note: I am using only this jsp form.. i do not use
expand the row out line
expand the row out line     ...;create out line for rows and columns. Finally we expand the row outline. ..., boolean collapse) This method is used to collapse the row with it value. You
Data displaying with limited records in jsp
Data displaying with limited records in jsp  How to display table with limited 10 records , after clicking next button another 10 records from database upto last record please help me
how to get data in jsp page - Framework
how to get data in jsp page  Hi List[], I to get the data in jsp page by calling mxml file using FDS. Please give example to me... to enclose a set of MXML tags in a JSP page. You can set any number
how to retrive data grom database in jsp pages.
how to retrive data grom database in jsp pages.  sir, i have problem to retrieve data from table of the database on the html web pages , so would... immediately. i want sample code of jsp to retrieving data from table of database to html
Upload Exce Data into MySql Using Jsp and Servlet - JSP-Servlet
Upload Exce Data into MySql Using Jsp and Servlet  now i am doing a project my concept is to insert the Excel File Data is uploaded and inserted... the following link: http://www.roseindia.net/jsp/upload-insert-csv.shtml Hope
Accessing Jqxgrid data in Controller layer using JSP
Accessing Jqxgrid data in Controller layer using JSP  I am using Keyboard Navigation jqxgrid. I am able to bind the grid by passing data from controller layer using JAVA. What i actually require is to fetch the data which
How to retrieve data by using combo box value in jsp? - JSP-Servlet
How to retrieve data by using combo box value in jsp?  For example, In Employee.jsp form, When i click employee id value in combo box ,the related employee name will be displayed in text field
How to retrieve data using combo box value in jsp? - JSP-Servlet
How to retrieve data using combo box value in jsp?  Hi freind, I already post this question. I need urgent help from u. pl response me... the following link: http://www.roseindia.net/jsp/comboSelect.shtml Hope
problem on jsp, inserting data into table(mysql).
problem on jsp, inserting data into table(mysql).  hello friends, I have a problem in jsp.I want to insert data, which is given by user through... is in mysql.I want to use placeholder("?") to insert data into table.Plsssss help
Exporting data from mysql into csv using jsp
Exporting data from mysql into csv using jsp  Hi friends.... I want to export the data from mysql to csv file using... i am having 30 columns in my database.. Eg- text1,text2,text3,....,upto text30... i want to export this data
Fetch the data using jsp standard action
Fetch the data using jsp standard action  I want the code of fetch the data from the database & show in a jsp page using jsp:usebean in MVC model... that retrieves the data from the database through java bean and display it in jsp page

Ads