English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

the parrent frame gets data from a get form submission. and I want to make that data avail to the child frames. now I got a function that will take the data from the form submission and dump it into javascript varables and I can use the data in the parent frame. I tested that. but I can't get the child frames to also see the data. how do I do this?

btw my attempt:
http://home.cfl.rr.com/kitramos/f1.htm

2006-11-17 15:14:19 · 2 answers · asked by snowcloud_dreamer 2 in Computers & Internet Programming & Design

2 answers

variables like everything else in the frames world, each is separate for each frame

top.x is different from x. (var x in the top frame, usually a frameset page.

use top.x to work in all your frames. (it's just x in the top frame(the frameset))

of course, this won't work with foreign (different host) frames!

2006-11-17 15:28:14 · answer #1 · answered by jake cigar™ is retired 7 · 1 0

You could declare the data as public, but its usually better design to use accessor functions class MyClass { private int i; public void setInt( int new_i) { i = new_i; } public int get_i() { return i; } } roughly....

2016-05-22 00:10:35 · answer #2 · answered by Anonymous · 0 0

fedest.com, questions and answers