Forum Moderators: open
Slow learner, with a problem.
I have a page on which there will be a choice of multiple divs of styled text, each approx 4KB.
Each div is to appear in the same position within the window; and each is triggered from two different links. And the links are not <a> tags, or forms, but other divs, using 'onclick'.
Already the page, without the extra text divs is around 60KB. I can in add all the text divs, but this will take the size to > 300KB.
Q1:
Should this size be a worry in terms of loading time?
I can go this route, because I can do the fairly crude javascript needed to hide and show the text divs as needed. Stress is on "crude".
Q2 etc:
But is there some relatively simple way to import the texts as required, using javascript? An ajax library with some tutorials, maybe?
Am I correct in thinking that PHP needs a form in order to do this sort of replacement, of one text by another?
cheers
[edited by: tedster at 7:08 pm (utc) on Feb. 18, 2008]
But is there some relatively simple way to import the texts as required, using javascript? An ajax library with some tutorials, maybe?
I can't think of any more at the moment