/    Sign up×
Community /Pin to ProfileBookmark

frames in childwindow

hai,
i have a parent page called a.aspx from where i am popping a child window to fill a textarea which is in parent window. child window consists of frames head n main, in which head frame is pointing to one aspx page n main frame pointing to html page. There is a submit button in main frame, on clicking the button i need to refer a value from head frame n fill it in the parent window.i tried referring like

eval(parent.window.header.document.forms[0].hidAdd.value);

to call a function, where in the hidAdd will be having some fn as the value.

The above statement works in windows IE and is not working in Mac netscape. If anyone knows the alternative, kindly let me know.

Thanks

to post a comment
JavaScript

4 Comments(s)

Copy linkTweet thisAlerts:
@eviljoker7075Jan 06.2004 — what's a child window please?
Copy linkTweet thisAlerts:
@KorJan 06.2004 — Let's see if I understood well

You want:

  • 1. refere to a value from head to main?


  • try

    top.frames[name_of_frame].document...blabla

    2.pass the value to the parent page?

    try

    window.opener.document...blabla

    or

    window.opener.a_function(param)
    Copy linkTweet thisAlerts:
    @KorJan 06.2004 — 
    what's a child window please?
    [/quote]


    a second page open from within another page (called parent) using a simple HTML a href line or a javascript window.open() method. In this case is a pop-up window (child which contain 2 frames) opened from another page (parent).
    Copy linkTweet thisAlerts:
    @sivasankariauthorJan 08.2004 — thans a lot KOR, problem is solved
    ×

    Success!

    Help @sivasankari spread the word by sharing this article on Twitter...

    Tweet This
    Sign in
    Forgot password?
    Sign in with TwitchSign in with GithubCreate Account
    about: ({
    version: 0.1.9 BETA 5.19,
    whats_new: community page,
    up_next: more Davinci•003 tasks,
    coming_soon: events calendar,
    social: @webDeveloperHQ
    });

    legal: ({
    terms: of use,
    privacy: policy
    });
    changelog: (
    version: 0.1.9,
    notes: added community page

    version: 0.1.8,
    notes: added Davinci•003

    version: 0.1.7,
    notes: upvote answers to bounties

    version: 0.1.6,
    notes: article editor refresh
    )...
    recent_tips: (
    tipper: @AriseFacilitySolutions09,
    tipped: article
    amount: 1000 SATS,

    tipper: @Yussuf4331,
    tipped: article
    amount: 1000 SATS,

    tipper: @darkwebsites540,
    tipped: article
    amount: 10 SATS,
    )...