473,509 Members | 4,901 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Need sample - one-to-many data array

Hi!

I am looking into making a database application and to limit the
client<->server traffic I want to handle all entry/amendment of the data in
the browser and save it all once the entry is completed. The problem is that
I need to include a dynamic table where the user can add, amend and delete
rows. For the sake of illustrating what I mean I can use the person / pet
sample where you have one person with several pets, e.g.

Person name:
Phone:
----------------------------------
Name: Type: Colour:
Pet1: [Delete]
Pet2: [Delete]
Pet3: [Delete]
[Add pet]

I need sample code to show how to handle this array (or a similar situation)
in terms of adding rows and deleting rows etc. I have tried to look for info
on this, but cannot find a decent sample anywhere...

Thanks!
iv**@tda.no
Jul 20 '05 #1
2 2457
I think you need to be looking at multi dimentional arrays.

"IVer Erling Årva" <iv**@tda.no> wrote in message
news:3f********@news.broadpark.no...
Hi!

I am looking into making a database application and to limit the
client<->server traffic I want to handle all entry/amendment of the data in the browser and save it all once the entry is completed. The problem is that I need to include a dynamic table where the user can add, amend and delete
rows. For the sake of illustrating what I mean I can use the person / pet
sample where you have one person with several pets, e.g.

Person name:
Phone:
----------------------------------
Name: Type: Colour:
Pet1: [Delete]
Pet2: [Delete]
Pet3: [Delete]
[Add pet]

I need sample code to show how to handle this array (or a similar situation) in terms of adding rows and deleting rows etc. I have tried to look for info on this, but cannot find a decent sample anywhere...

Thanks!
iv**@tda.no

Jul 20 '05 #2
> Yes, I thought that might be it. I had however hoped that someone had a
ready made full fledged example with all the bells and whistles. It's so
much easier when you have some example code to look at. I am trying to get
going with a new database lanquage and find the combination of HTML,
JavaScript, SQL and the database object script (all of which are new to me)
a bit much, especially as I have to do it all by myself. So I thought that
rather than reinventing the wheel etc...


You probably want an array of objects. JavaScript is particularly nice for those
sorts of structures. Look at the examples at www.JSON.org. Also Check out
www.crockford.com/javascript/survey.html

Jul 20 '05 #3

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

Similar topics

5
2660
by: The Pig | last post by:
Got a table. Date Time Code 1/1/2003 1700 xbc 1/1/2003 1800 xbc 1/1/2003 1800 xbc 2/4/2004 1650 abc 2/4/2004 1700 abc The problem is I need a...
34
7273
by: Mark Kamoski | last post by:
Hi-- Please help. I need a code sample for bubble sort. Thank you. --Mark
2
2641
by: Mark Kamoski | last post by:
Hi Everyone-- Please help. I need a code sample for exchange sort. Thank you. --Mark
2
4256
by: Mark Kamoski | last post by:
Hi Everyone-- Please help. I need a code sample for insertion sort. Thank you. --Mark
2
6864
by: Mark Kamoski | last post by:
Hi Everyone-- Please help. I need a code sample for merge sort. Thank you. --Mark
2
3370
by: Mark Kamoski | last post by:
Hi Everyone-- Please help. I need a code sample for quick sort. Thank you. --Mark
2
4759
by: Mark Kamoski | last post by:
Hi Everyone-- Please help. I need a code sample for heap sort. Thank you. --Mark
1
4873
by: Arda Han | last post by:
Hi friends, I need a sample application for inserting,updating,deleting database rows. In this example I want learn creating MDI applications. Inserting,Deleting,Editing database rows on...
0
1648
by: Ray Tayek | last post by:
hi, getting a: .\Stdafx.cpp : fatal error C1192: #using failed on 'i: nunit\samples\cpp-sample"' 'The filename, directory name, or volume label syntax is incorrect.' nunit is installed in...
1
2870
by: Riyadh Hossain | last post by:
I am developing USPS shipping API for my site. All the work is going on testing phase. My site uses PHP/MySQL. Now I am working on USPS tracking/confirm. I can send request and get responses from...
0
7237
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
7137
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
7347
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,...
1
7073
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
1
5062
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...
0
3218
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
3207
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
779
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
443
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

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.