471,071 Members | 1,516 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,071 software developers and data experts.

Adding items to another frame

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?

Thanks!

Jul 23 '05 #1
1 1316
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

Jul 23 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

4 posts views Thread by Kai Grossjohann | last post: by
6 posts views Thread by Maheshkumar.R | last post: by
6 posts views Thread by Papa.Coen | last post: by
14 posts views Thread by Paul_Madden via DotNetMonster.com | last post: by
2 posts views Thread by =?Utf-8?B?TWFobW91ZCBTaGFiYW4=?= | last post: by
reply views Thread by leo001 | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.