populating a form from a table ( edit button)

Posted on 2006-03-27
Last Modified: 2010-03-31

I have a table  with multiple rows ; each row has a edit button
and when someone clicks the edit button I want to populate a form to show him details about that row
The form is on the same page!!!!!!!!
Can someone pls refer me to some sample code

Thanks for all ur help!
Question by:royalcyber
    LVL 92

    Accepted Solution

    either have your edit button send a request to the server to populate the form
    or use javascript to populate it without sending a request

    Author Comment

    rather than reinventing the wheel can I folow an example

    thnakyou for all ur help
    LVL 30

    Assisted Solution

    >> The form is on the same page!!!!!!!!

    Keep invisible text-boxes on the form. When the edit button is clicked, make them visible and populate them with the initial data (which was otherwise displayed on the table). When the user updates it and clicks on some button, submit the request to the server.

    Featured Post

    What Should I Do With This Threat Intelligence?

    Are you wondering if you actually need threat intelligence? The answer is yes. We explain the basics for creating useful threat intelligence.

    Join & Write a Comment

    An old method to applying the Singleton pattern in your Java code is to check if a static instance, defined in the same class that needs to be instantiated once and only once, is null and then create a new instance; otherwise, the pre-existing insta…
    Java functions are among the best things for programmers to work with as Java sites can be very easy to read and prepare. Java especially simplifies many processes in the coding industry as it helps integrate many forms of technology and different d…
    Viewers learn about the third conditional statement “else if” and use it in an example program. Then additional information about conditional statements is provided, covering the topic thoroughly. Viewers learn about the third conditional statement …
    Viewers will learn how to properly install Eclipse with the necessary JDK, and will take a look at an introductory Java program. Download Eclipse installation zip file: Extract files from zip file: Download and install JDK 8: Open Eclipse and …

    734 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    21 Experts available now in Live!

    Get 1:1 Help Now