473,320 Members | 1,930 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,320 software developers and data experts.

Popups or callouts for simple data entry

I am working on an application that includes a screen with a list of
people on the right and a list of groups they can be involved in on the
left. The user can drag-and-drop people from the right to groups on
the left and visa-versa.

I would like to be able to have a quick way for the user to add a new
person in the right-hand list. Preferrably the user could click a
"new" link, a popup or callout would appear and user could enter the
person's name and contact info, click "save" and never leave the screen
through all this. I'm not too concerned about the AJAX code to
dynamically update the list of people - I'll be using prototype.js for
that.

I'm simply looking for a primer on creating that callout code. Does
anyone know of a good starting place?

Thanks,

Barry

Sep 6 '06 #1
2 7159
ASM
bj****@gmail.com a écrit :
I would like to be able to have a quick way for the user to add a new
person in the right-hand list. Preferrably the user could click a
"new" link, a popup or callout would appear and user could enter the
person's name and contact info, click "save" and never leave the screen
through all this.
JS :
function showNew() {
var n = document.forms['new'].style;
n.display = n.display==''? 'block' : '';
}
function saveNewMember(Form) {
var memberName = Form.name.value;
var memberContact = Form.contact.value;
// job to add to list(s)
showNew(); // hidde adding form
}

HTML :
<a href="#" onclick="showNew();return false;">Add member</a>
<form
name="new"
style="display:none"
onsubmit="saveNewMember(this);return false;">
<p>Name <input name="name">
<p>Contact <input name="contact">
<p>input type=submit value="Add">
</form>

--
Stephane Moriaux et son [moins] vieux Mac
Sep 6 '06 #2
Thanks for the reply. This did work for the most part (change noted
below). However, I'd also like to create a version where a callout
appears as a layer above the rest of the page rather than inline with
the page. Does anyone have another tip for that type of situation?

Thanks.
ASM wrote:
JS :
function showNew() {
var n = document.forms['new'].style;
n.display = n.display==''? 'block' : '';
}
I changed that last line to:

n.display = n.display=='none' ? 'block' : 'none';

Sep 7 '06 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: | last post by:
Hi, I am an intermediate computer science student and I am in need of a "macro type" tool/language that will let me automate a data entry process. The data entry is rather simple but requires...
2
by: JC Mugs | last post by:
I have a form that when you tab from field to field that the entry point is blank, but if you point and click in the field it brings up a 0 and data entry is started to the left of the zero. ...
3
by: intl04 | last post by:
Is it possible to create a Word form as the data entry form for an Access database? I didn't see any reference to this possibility in my Access books, so I'm sorry if this is a question that is...
6
by: Wayne | last post by:
I am designing a database which needs approximately 50 fields per record. The database user requires data entry to be via a single screen. If I follow good database design practice and split the...
0
by: tamilan71 | last post by:
Can anyone tell me a simple method of creating an application in Access 2003 that uses "Double data entry"? For me double data entry is defined as the ability to have data entered twice. The first...
2
by: filbennett | last post by:
Hi Everyone, I'm generally unfamiliar with Access form design, but have programmed Cold Fusion applications for a couple of years. I'd like to build a data entry form in Access that allows the...
2
by: Stephan (Germany) | last post by:
Hello, maybe this qustion sounds silly but in VS2005, I'm looking for the same possibilty to entry data for a predefined XML schema in grid view. In VS2003, you were able to do it if you...
0
by: sram | last post by:
Hi, Problem statement: We have some amount of data stored in various excel sheets and we generate a few reports from these data. We are in the process of consolidating all data to reside in a...
5
by: SRAM | last post by:
Hi, Problem statement: We have some amount of data stored in various excel sheets and we generate a few reports from these data. We are in the process of consolidating all data to reside in a...
0
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you

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.