473,667 Members | 2,548 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 2463
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
2668
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 query that will delete rows that have the same
34
7303
by: Mark Kamoski | last post by:
Hi-- Please help. I need a code sample for bubble sort. Thank you. --Mark
2
2650
by: Mark Kamoski | last post by:
Hi Everyone-- Please help. I need a code sample for exchange sort. Thank you. --Mark
2
4270
by: Mark Kamoski | last post by:
Hi Everyone-- Please help. I need a code sample for insertion sort. Thank you. --Mark
2
6873
by: Mark Kamoski | last post by:
Hi Everyone-- Please help. I need a code sample for merge sort. Thank you. --Mark
2
3387
by: Mark Kamoski | last post by:
Hi Everyone-- Please help. I need a code sample for quick sort. Thank you. --Mark
2
4764
by: Mark Kamoski | last post by:
Hi Everyone-- Please help. I need a code sample for heap sort. Thank you. --Mark
1
4877
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 runtime. If you have sample application or if you have free time please send me a sample application.
0
1664
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 i"\nunit. does anyone know what the problem here is? any pointers will be appreciated.
1
2878
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 USPS. I need sample code for unpack XML response for USPS tracking. Sample code should be in PHP language. If it is not available in PHP, other language like PERL, JAVA etc is acceptable. Thanks and regards Riyadh Hossain
0
8457
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8883
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8788
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
8646
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7390
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6203
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
1
2776
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
2013
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
2
1778
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 can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.