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

how can i remove all rows from n tables in one form?

kie
url explaining what i' trying to do @
http://www.kieran.f2s.com/remove_all...all_tables.htm

hi,

i want to create a function removing all rows from 3 tables. the
tables were created using the 'createElement' function, and can remove
rows one by one using a function attached to a button held within each
dynamic '<tr>'.

i'm not sure where to start on removing all rows in the table with one
button though, any advice would be greatly appreciated.

kie

p.s. the code for my example was too long, so i put a simple page at
http://www.kieran.f2s.com/remove_all...all_tables.htm
showing what i'm trying to do.
Jul 20 '05 #1
3 5379
DU
kie wrote:
url explaining what i' trying to do @
http://www.kieran.f2s.com/remove_all...all_tables.htm

hi,

i want to create a function removing all rows from 3 tables. the
tables were created using the 'createElement' function, and can remove
rows one by one using a function attached to a button held within each
dynamic '<tr>'.

i'm not sure where to start on removing all rows in the table with one
button though, any advice would be greatly appreciated.

kie

p.s. the code for my example was too long, so i put a simple page at
http://www.kieran.f2s.com/remove_all...all_tables.htm
showing what i'm trying to do.


Your code has many problems and issues which I honestly believe you
should address first. It's important to clarify, correct and simplify
your code first before going any further. Your code is already quite
long and complex: trying to fix first some basic issues will certainly
ease the process of finding a solution to your question along with
avoiding many future problems, headaches like crashes at runtime on the
user's system.

DU
--
Javascript and Browser bugs:
http://www10.brinkster.com/doctorunclear/
- Resources, help and tips for Netscape 7.x users and Composer
- Interactive demos on Popup windows, music (audio/midi) in Netscape 7.x
http://www10.brinkster.com/doctorunc...e7Section.html

Jul 20 '05 #2
kie
thanks, i'm looking through your web site now. especially the page
"Dynamic Table Formatting"
(http://www10.brinkster.com/doctorunc...rmatting.html),
is this the one you meant me to read to help me clean up the problems
in my code?

its a great bookmark to have, i'd like to eventually learn all the
techniques you've documented.

i firstly set out to make the page work in ie6, then start worrying
about cross browser compatibility, your web site is primarily
concerned with this. is my code still problematic and badly formatted
for ie6 only? even though it functions up to an extent?

harsh critisism will not be take offense, i'm still learning how to do
this.

thanks again, kie
Jul 20 '05 #3
DU
kie wrote:
thanks, i'm looking through your web site now. especially the page
"Dynamic Table Formatting"
(http://www10.brinkster.com/doctorunc...rmatting.html),
is this the one you meant me to read to help me clean up the problems
in my code?

No, not at all. This page has very little to do with the difficulties I
see in your code. In fact, that table formatting page is not well done
.... I refer to the visual display and its interactivity which requires a
high scr. res.
its a great bookmark to have, i'd like to eventually learn all the
techniques you've documented.

i firstly set out to make the page work in ie6, then start worrying
about cross browser compatibility, your web site is primarily
concerned with this.
Well, I already disagree with such policy. For starters, MSIE 6 for
windows is much more W3C web standards compliant (DOM 2 attributes and
methods) than many people think.
I personally code entirely according to W3C web standards and then, once
the code is working well with W3C web standards compliant browsers like
Opera 7 and Mozilla 1.5, I make relevant adjustements, if needed and
justified, for MSIE 6.
My policy is that a page must be both W3C web standards compliant (valid
markup code and CSS code) and work as best it can in MSIE 6, Mozilla 1.x
and Opera 7.x (in that order). So far, I have always achieved that goal
100% of the time.

is my code still problematic and badly formatted for ie6 only?
Yes, I think so.

even though it functions up to an extent?
You have to understand that you still need your code to be optimized, to
use the most efficient manners to achieve your goals and resort to the
best coding techniques.
E.g. 2 aspects:
- any code which is repetitive is a sign that a parametrized loop (for
or while) could execute better, more efficiently your goals. Your opt1
var is a good example of this. There are others.
- too many variables, too many functions, scripts, dynamic creation,
removal, etc... too much cpu-RAM-demanding page usually lead modest user
system to crash
harsh critisism will not be take offense, i'm still learning how to do
this.

thanks again, kie


Thank you for saying so. Sometimes people might misinterpret my choice
of words, the care/importance/emphasis I might give to this or that issue.

DU
--
Javascript and Browser bugs:
http://www10.brinkster.com/doctorunclear/
- Resources, help and tips for Netscape 7.x users and Composer
- Interactive demos on Popup windows, music (audio/midi) in Netscape 7.x
http://www10.brinkster.com/doctorunc...e7Section.html

Jul 20 '05 #4

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

Similar topics

2
by: Patrick G. | last post by:
Greetings all: ASP VB, SQL Svr 2000 I am pulling data from 3 tables. table1 holds item details table2 holds publication types and the item id from table1 table3 holds category types and...
8
by: L Major | last post by:
Hi Unfortunately, I am limited to using tables for part of my current project. I have a form that spans across a number of TR and TD in the shape of checkboxes. Doctype is XHTML 1.0...
3
by: Greg Neef | last post by:
I need to develop a Tab Form where selecting a particular key from an unbound combo listbox will resulting in the display one or many records from several tables, where each tab has the matching...
1
by: frank | last post by:
I have two DataTables, A and B. Both have the primary key "CID". How do I remove all entries in Table A from Table B (with the same PK)?
3
by: Niyazi | last post by:
Hi all, I have a dataTable that contains nearly 38400 rows. In the dataTable consist of 3 column. column 1 Name: MUHNO column 2 Name: HESNO Column 3 Name: BALANCE Let me give you some...
1
by: dallasfreeman | last post by:
I'm looking at a quick way to get results that are displayed as rows to display as columns. I have three tables:- - The Questions for the survey - The Results of the survey (Columns are listed...
7
by: Susan Mackay | last post by:
I have a data table that is connected to a database table with a data adapter in the 'standard' manner. However I want to be able to remove selected rows from the data table (i.e. no longer...
2
by: Mike P | last post by:
How do you remove all chars such as carriage return and new line from a particular field for all records in a dataset? *** Sent via Developersdex http://www.developersdex.com ***
11
by: Richard Maher | last post by:
Hi, I have read many of the copius entries on the subject of IE performance (or the lack thereof) when populating Select Lists. I don't mind the insert performance so much, (I get 100x120byte...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
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...

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.