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.