Good community introduction: I'm dumb.

    Date: 07/30/05 (Javascript Community)    Keywords: php

    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?

    Source: http://www.livejournal.com/community/javascript/71692.html

« to print or not to print. || Popup woes »


antivirus | apache | asp | blogging | browser | bugtracking | cms | crm | css | database | ebay | ecommerce | google | hosting | html | java | jsp | linux | microsoft | mysql | offshore | offshoring | oscommerce | php | postgresql | programming | rss | security | seo | shopping | software | spam | spyware | sql | technology | templates | tracker | virus | web | xml | yahoo | home