Beautiful. Thanks so much andho and acoder. You have helped me immensely there are other ways I could have accomplished the functionality but none would be this elegant. Works like a charm.
I did look all over trying to find a script that would do this because it doesn't seem like it would be that uncommon. Is there someplace on here to post finished scripts so that others can find them. I didnt write any/much of the code but I am...
User Profile
Collapse
-
I got ahead of myself. I think something is wrong with the count. I cant figure out what. Using this template the first time you "add" the three rows the add button goes away like it should. If you then close Menu 3 the add button reappears and then disappears when you click it to re add the third button.
The problem occurs when you hide the first row or the second row and then re-add it. The add button does not get hidden...Leave a comment:
-
Ok some fiddling with it and combining my "hide" script with your show script has it working just the way I want it to. A big thanks for everyones help and here is the script if anyone comes along looking for it.
Code:<SCRIPT type="text/javascript"> function addmb() { var table = document.getElementById('monitorbank'); var noOfRowsShowing = 0; var addButton
Leave a comment:
-
Sorry i think we are in very different time zones. I will try it today and post back here to let you all know.
*Update*
The add button you posted works to add the next row but it does not get hidden when all the rows are shown. The remove rows button did not work. I will look at this a bit more in a little while. Having the add button show the next row is a BIG improvement however so thanks so much.Leave a comment:
-
What am I doing wrong that this is not working? I am using the same html code above. I have tried making a bunch of changes but cant seem to get it to work.
ACODER = Thanks for all your help with this so far. I dont understand how doing what you did will get this to work. So I dont really know where to start to add it it.
Code:<SCRIPT type="text/javascript"> var bk1 = document.getElementById(bank1);
Leave a comment:
-
Thanks so much for all the help. I am still stumped at how to do this after trying and trying. Here is the code I have so far and it all works great except I can not figure out how to combine the 3 add buttons at the bottom so that I only have 1 button. I know that I need to give more intelligence to the javascript. I am just not a programmer to figure it out. Could someone be so kind to give me an example?.
I would like the add button...Leave a comment:
-
Excellent idea.
Now how would I make a button to show the next hidden row instead of just showing the row I specify when creating the button. I am guessing there will need to be a variable in the JavaScript function but I am not a great javascripter, or perhaps there is an easier way and I am seeing it more difficult than it is.Leave a comment:
-
Show/hide rows of a table
I have been searching on this for awhile and cant find anything and playing around with it got me no where. I will start with what I am after and then explain what I have.
I have a table with 3 rows and 2 columns. I would like on page load to only have one row visible with the bottom two rows hidden. I would like to have an "add" button on the bottom most visible row. When you click the "add" button it adds a row... -
I thinking that I would have 1 button visible at the bottom of the last bank to add a new one. And then have a button at the top of each bank to delete it sort of like the standard "X" button in MS Windows applications.
That being said adding buttons to call the Javascript functions isn't too hard its writing the javascript and getting it to work thats my hardest challenge.
I have been playing with it a bit...Leave a comment:
-
Thanks for your help. Perhaps I am in over my head but I figure I will post what I have here and get your suggestions. This is what I am working with it displays best in Firefox and as this will only be used locally that will suffice for now.
Code:<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> <html> <head> <meta http-equiv="content-type"
Leave a comment:
-
Dynamically Adding Table Rows that contain IFrames with unique names.
I'm not much of a HTML or Javascript programmer but have a little experience just hacking away at it.
I am creating a HTML application and would like to be able to add or remove rows of a table. The row that gets added will need to contain 2 columns, 1 which contains an IFRAME, and the other will contain a Javascript Menu which will be used to select the content displayed in the IFRAME.
The purpose of the tool is...
No activity results to display
Show More
Leave a comment: