Adding items to another frame

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Ashish

    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!

  • kaeli

    #2
    Re: Adding items to another frame

    In article <1114034667.877 178.240530@o13g 2000cwo.googleg roups.com>,
    googleartist@ya hoo.com enlightened us with...[color=blue]
    > 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?
    >[/color]

    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.formn ame.fieldname.v alue = "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.formn ame.fieldname.v alue = "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.



    Comment

    Working...