HTML Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsWeb DesignHTML Programming

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old August 16th, 2000, 02:24 PM
sachin sachin is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Aug 2000
Location: San Jose, CA, US
Posts: 3 sachin User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Hi!

I'm having a problem inserting a row in a table with form elements inside it. The problem is "identifying the table". The ID arttribute works fine with IE, does anyone has any idea as to how to do it in Netscape without using layers?

The following code works fine in IE

document.all(tableid).insertRows();

any idea about how to achieve the same in NS?

Reply With Quote
  #2  
Old August 23rd, 2000, 09:47 AM
pieux pieux is offline
Seņor Member
Dev Shed Beginner (1000 - 1499 posts)
 
Join Date: Aug 2000
Posts: 1,156 pieux User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 h 17 m 59 sec
Reputation Power: 10
document.all[] is specifically an IE 4+ property (probably why it doesn't work in Navigator ).

Have you tried document.forms[] (an array of FORM objects)?

Actually, I just looked up insertAdjacentHTML() to see if that could help you, but that's IE-specific as well. It could be that the actual property you are trying to use is specific to IE only. I don't know whether or not you have investigated doing it server-side, but that would be a relatively simple task in comparison.

[This message has been edited by pieux (edited August 23, 2000).]

Reply With Quote
  #3  
Old August 23rd, 2000, 08:52 PM
sachin sachin is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Aug 2000
Location: San Jose, CA, US
Posts: 3 sachin User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Hi! Pieux

Thanks for the reply ..
U cannot use the document.forms[] as well as a table is not a form element..

Actually what i'm trying to achieve is giving the fuctioanlity of editing mutiple rows of data at the client side without submitting the page( actually dynamically altering the content of the page at client side..) and this cannot be achieved by any server side code.

Anyways thanks for ur reply


Reply With Quote
  #4  
Old August 24th, 2000, 07:39 AM
pieux pieux is offline
Seņor Member
Dev Shed Beginner (1000 - 1499 posts)
 
Join Date: Aug 2000
Posts: 1,156 pieux User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 h 17 m 59 sec
Reputation Power: 10
Ah. Well, rather than actually editing the data, how about giving the illusion of doing such, by hiding/showing layers.

Reply With Quote
  #5  
Old August 24th, 2000, 12:40 PM
sachin sachin is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Aug 2000
Location: San Jose, CA, US
Posts: 3 sachin User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Actually a good idea, but the only problem is for each row i will need a layer.. this might make the page a bit heavy.

Thanks anyway..

Reply With Quote
Reply

Viewing: Dev Shed ForumsWeb DesignHTML Programming > Dynamically inserting Row in tables


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 5 hosted by Hostway