Javascript permissions question.

I had an idea for making marking up text in posts on the board easier. I was going to make a small Javascript frame with all the smilies and UBB code in it in the form of handy buttons and fields and have the rest of the site in the other 90% of the screen as a second frame. People could then view the site, and when it came to post, easily add the formatting they wanted. Hopefully it would reduce the incidence of all bolded posts, n such.

However, while my test scripts work fine with local html, when I try to test it on the SDMB side, I get Javascript errors.
Can I only modify the values in the other frame if the content is coming from a local href?
An example of what I mean.
parent.SDMB.document.postthread.message.value += window.document.testfield.testtext.value;

Works with ./test.html but not with, say, http://boards.straightdope.com/sdmb/newthread.php?action=newthread&forumid=3

I hope that isn’t the case, Javascript n frames is the only way I can think of doing this without putting too much overhead on my server.

I haven’t tried this myself, but it’s quite possible that javascript in different frames will only be allowed to interact if the frames are from the same site.

On the other hand, there’s bound to be a way to do it, but that way will probably vary depending on which browser you’re using.

Here is the relevant document: JavaScript Security in Communicator 4.x

The important part is at the top:

One of those properties you cannot get or set is document.formname, which is what you’re trying to do. Sorry.

That doesn’t really surprise me. :frowning:
But I do know that one of the things you can do in Javascript is call functions to request greater priveleges from the browser. Does anyone know of functions to do that, for either IE or Netscape, that would work in this instance?