two buttons on top of java popup alter popup content?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • pixiedust1120
    New Member
    • Jul 2014
    • 2

    two buttons on top of java popup alter popup content?

    User currently clicks button which opens "add record" java popup form. Would like to make the popup have two tabs so user could toggle between "add record" and "edit record". the default would be the add record that currently opens but have an edit tab at top of popup to allow the user to go to the edit record popup form without going back too main menu.

    need add button to process popup-form.php file and open the addlotblockpop. php file and the edit button to process the popup-form.php file and open the editloctblockpo p.php, all while in same pop up form screen.

    Is this possible? How do I assign the action and open the page
    Last edited by Rabbit; Jul 14 '14, 03:51 PM. Reason: Please use [code] and [/code] tags when posting code or formatted data.
  • pixiedust1120
    New Member
    • Jul 2014
    • 2

    #2
    I simplified the buttons now just need to require each to use popup-form.php and open the appropriate page.

    New simple buttons code for purposes of this question:

    Code:
            <input type="button" name="addlotblockbutton" id="add lot block button" value="Add Lot/Block">
             <input type="button" name="editlotblockbutton" id="editlotblockbutton" value="Edit Lot Block">
    Last edited by Rabbit; Jul 14 '14, 03:51 PM. Reason: Please use [code] and [/code] tags when posting code or formatted data.

    Comment

    • Dormilich
      Recognized Expert Expert
      • Aug 2008
      • 8694

      #3
      first, do you mean Java or JavaScript?

      for how to implement tabs in an HTML page you might want to employ a Framework (JS/CSS) to ease that, but then you would definitely have to merge the add/edit HTML code.

      Comment

      Working...