Top.Mail.Ru
? ?
Javascript's Journal
 
[Most Recent Entries] [Calendar View] [Friends View]

Saturday, July 30th, 2005

Time Event
2:14a
Good community introduction: I'm dumb.
I THOUGHT I posted here a week ago looking for some help... and only noticed today that I forgot to select the journal to post to. Whoops. (I swear I usually check that.) Luckily, that problem has been fixed, but now I have another one.

I have a frameset page. In the frameset are two frames: a screen-sized one called Interface, and a hidden one called Backend. The frame Backend contains some PHP which interacts with the shell somehow, depending on input, and prints output. Interface, amazingly enough, provides a user interface for this.

The idea is, Interface uses DOM to set some form values in Backend and submit the form (whose action is also Backend). Backend then has some text in an element from which Interface can grab it, using DOM again, and inform the user appropriately.

My problem is in accessing Backend at all from Interface. While I tend to have trouble pinpointing the correct way to refer to elements, I THINK I should be using something like this:

parent.Backend.contentDocument.anyPropertyOfBackend

However, whenever I try to access anything matching that pattern, I get the error that parent.backend.contentDocument.whatever has no properties. I can alter the frame itself okay, so it gets as far back as the frameset, but no farther. I've tested Backend and it works fine.

Am I just totally wrong about how I should be going about this? If not, any ideas?

<< Previous Day 2005/07/30
[Calendar]
Next Day >>
About LiveJournal.com
Image