Click to See Complete Forum and Search --> : Hiding content on load


djc11
05-01-2007, 11:00 PM
I have a script that when called will toggle certain parts of a page (rows of a table to be specific) to hidden or unhidden. The problem is that when the page loads initially everything is visible. I want it to start out hidden.

I thought I could call a certain function that would do it and i could call window.onload=somefunction(); but the names and IDs for the tablerows are created dynamically. If I could search for a substring within the IDs or names while calling document.getElementsfromName(substring) that would work too. But I don't know how to do that :confused:

I'm sure this is simple but I am new. What else can I say.

Padonak
05-02-2007, 03:12 AM
i would make it this way: every row is hidden but onload certain rows become visible. why not?

djc11
05-02-2007, 09:56 AM
Well I thought that would be the easiest way too, but I don't know how to do that : )

djc11
05-02-2007, 10:33 AM
NEVERMIND! Brain was fried on javascript last night. That's all I could think of. forgot about my HTML styles :/

Padonak
05-02-2007, 10:34 AM
lets take a look @ the page