Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Entering more than one row into table without refreshing page! 2

Status
Not open for further replies.

BeanDog

Programmer
Jul 15, 2000
60
US
I was working on this page for awhile. I'm not sure if I'm the first one to figure this out (probably not), but it's nice. I can enter in any number of values and hit the add button, then hit the submit button and upload them all at once. Check it out at:


It's just a trivial page, no real use yet, but ask me if you're interested in how it works, other than the obvious code in the page.

Happy coding! [sig][/sig]
 

I really like it!

Your sure good with vb script and java script.

I'm interested.

Also, since your a pro, could you lend me a hand with my problem, I think you would know how or if I could do it.

I posted it in the main forum here,

thread216-31943 Thanks and you script rules,

perlkid [sig][/sig]
 
this is a very beneficial concept, for example, In ASP I had to save the HTML of the first column, then output it later when I had the HTML I wanted for both columns, but this was for serverside scripting, I am pondering how it may be useful on the client side, also since it is clientside, it would bring up browser compatibility issues, especially when it concerts DHTML, or the Document Object Model. [sig]<p>Karl<br><a href=mailto:kb244@kb244.com>kb244@kb244.com</a><br><a href= </a><br>Experienced in : C++(both VC++ and Borland),VB1(dos) thru VB6, Delphi 3 pro, HTML, Visual InterDev 6(ASP(WebProgramming/Vbscript)<br>
[/sig]
 

I'd like to modify it so it adds form fields in the cells instead of the text. Would you let me do that?

perlkid [sig][/sig]
 
This is a nice script, except it only works in IE4+. Netscape doesn't support outerHTML and innerHTML.
With a little more work, it could support Netscape 4+ also, but your script would have to maintain all the values in an array, and do a document.write to rewrite the page each time with the full array including the latest value. [sig][/sig]
 
Beandog,

excellant script, how do you pick up the the columns, using asp, for updating into a database?

Thanks
[sig][/sig]
 
Quite simple, really. When I dynamically create the invisible text boxes, I name then txtdata1, txtdata2, txtdata3, txtdata4, etc. Plus I have one text box that holds data saying how many there are: txtnumber. So in the ASP(vbscript):

<%
for i = 1 to Request(&quot;txtnumber&quot;)
Response.Write Request(&quot;txtdata&quot; & i)
next i
%>

Clever, eh? [sig][/sig]
 
once again, awesome script. Your scripting techniques are well rounded, you seem to be very good at this stuff. curious, where did you learn js, and vbs? [sig]<p>theEclipse<br><a href=mailto:eclipse_web@hotmail.com>eclipse_web@hotmail.com</a><br><a href=robacarp.webjump.com>robacarp.webjump.com</a><br>**-Trying to build a documentation of a Javascript DOM, crossbrowser, of course. E-mail me if you know of any little known events and/or methods, etc.[/sig]
 
Well, I started learning HTML about June. I taught myself HTML, ASP in VBS and JS, and some client-side stuff, and SQL and ADO from these books:

Teach yourself Visual Interdev 6 in 21 days
Teach yourself database programming with Visual Interdev 6 in 21 days
Teach yourself SQL Server 7.0 in 21 days
Professional ASP Pages 3.0
Active Server Pages for Dummies
SQL: The complete reference
Visual Interdev 6.0 Unleashed

And probably some other ones I consulted. I learned the technology while building this huge web ASP project ( and the SQL database behind it. It's mostly server-side script (a few thousand lines), and some client-side validation and stuff. I just built that little thingy to demo an idea to the person in charge. This project's really quite the accomplishment :)

It's not like this is my first programming experience, though. I've been programming BASIC since the Commodore 128, up through QB, PDS, VB, and then I finally decided to move to C++ and Windows. Of course, my true love is programming games :) I curse MS daily for their buggy, confusing DX7.0a documentation.

It was all right during the summer, but once school and marching band started again... <ugh> [sig][/sig]
 
For your information people, the code dosen't work on Netscape!
user.gif
 
Of course not !! Nothing that cool could ever work on Netscape.

Great script BeanDog. I was just asking another member about that today and he did respond with a solution, however I like yours because it's ready for ASP on the other end.

Great job. I have a page that allows users to build an SQL statement for retrieving data. It starts with a single row with a field list, operand list and an evaluation text field. (Just like a QueryBuilder). Right now, we're making round trips to the server for every AND or OR request. Now, with this awesome script, no more round trips to the server.

How long are you going to keep that page up ?? I can't wait to grab the code off of it.

Great Work !! :)

ToddWW
 
Wow. People still read this after a year and more.

To answer someone, I'm not a pro. Well, now I am in C++ programming, but that turned out to be amateur work. I learned it over summer vacation. I'm a senior in high-school. But I work at Estari software ( as a main programmer.

Thanks for the interest! But I haven't coded VBScript and JavaScript in almost a year. It's just another thing for my resume.



~BenDilts( void );
 
Hmm.. I didn't notice that was a year 2000 post. I guess the real WOW!! is that you're still around to reply and even more of a WOW!! is that the page is still up and running. LOL

ToddWW
 
There is no reason to use anything other than simple javascript to do this. Using the CSS2 DOM, you can accomplish this in IE 5+ and NS6+ by placing the element(s) to be regenerated inside a div with an object ID and regenerating the content as you wish with javascript. Use document.getElementByID(&quot;objectid&quot;).innnerHTML to get and set the content.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top