In article <11**********************@o13g2000cwo.googlegroups .com>,
go**********@yahoo.com enlightened us with...
I am looking for javascript code, which can add items in another frame.
Scene:
I have 3 frames A, B and C.
A and C has links/queries that displays result items in B
Results are with checkboxes, so user can select items.
These items must be added in some variable in frame 'A'
A has a link to submit all the items which are added in variable A.
How I can do that?
What if A , B and C all are inside a frame D?
If you use a form and hidden fields, this is pretty easy to do. Assuming all
the pages are yours and in the same domain and all.
If the top level of the frameset is yours and A, B, and C are all on the same
level, you can use
top.frames['framename'].document.formname.fieldname.value = "some value";
If they are all in frame D or are contained on the same level in N level of
frames, just use
parent.frames['framename'].document.formname.fieldname.value = "some value";
Then just have the form submit as needed.
HTH
--
--
~kaeli~
Experience is something you don't get until just after you
need it.
http://www.ipwebdesign.net/wildAtHeart http://www.ipwebdesign.net/kaelisSpace