473,406 Members | 2,713 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,406 software developers and data experts.

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 editloctblockpop.php, all while in same pop up form screen.

Is this possible? How do I assign the action and open the page
Jul 14 '14 #1
2 1218
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:

Expand|Select|Wrap|Line Numbers
  1.         <input type="button" name="addlotblockbutton" id="add lot block button" value="Add Lot/Block">
  2.          <input type="button" name="editlotblockbutton" id="editlotblockbutton" value="Edit Lot Block">
Jul 14 '14 #2
Dormilich
8,658 Expert Mod 8TB
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.
Jul 15 '14 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

4
by: David Graham | last post by:
Hi I use an OnLoad event in the body tag to open a popup window. I would like to know how to go about only allowing the window to popup once i.e on subsequent visits to the parent page, the popup...
7
by: Jens Peter Hansen | last post by:
Hi From my main window I open a series of popup (one close - next opens) in a mockup for a registration proces. From the last popup, I want to click a buttom, so the popup closes and the URL in...
4
by: Daniel Fugmann | last post by:
Hello, I use popups to show small pieces of information. These texts vary much in their lenghts and I dislike fixed size popups here because when the text is short there is so much empty space....
4
by: Ashish | last post by:
Hi Friends, I am looking for an anti-popup blocker solution, which can open popup window, irrespective whether any popup blocker is on or off. Well, I have succeeded in creating the same...
1
by: tmp | last post by:
I want to have a 'help' popup on seveal key words on a page. I don't want to use a button... But would like to do it like a link... so the text on the page is the link to the Popup Window. ...
19
by: Davey | last post by:
I have a popup window that opens using the following function. Unfortunately when this function (or any other popup generating function) is called from *within* a popup, it opens it within the...
1
by: dapkniht | last post by:
Hello, Here's my situation... I have an ASP.NET 2.0 (C#) page with a link button. When a user clicks the button I need it to execute the code behind code for the link button on click event. At...
2
by: sangram | last post by:
i need a javascript for popup window and how to pass value to that new window from old window .
1
by: jyoti pandey | last post by:
i working in asp.net Express Edition ,i am using listbox control i want when i click ok button condition is checked that listbox is emply or not and result is displaied into popup menu that list box...
0
by: irkahs | last post by:
Hey all, Need some Java help here. This is a code fragment that does a few things. 1) Allows adding to a RAF file. 2) Searches for a match and displays related records. and
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.