set a value in a form whin an iFrame

Hello Everyone,
   I am trying to set a value in a input text element within an iframe.....
   let me use expert-exchange JavaScript topic area as an example...

iframe:

<iframe id="objViewer" style="HEIGHT: 95%; LEFT: 17%; OVERFLOW: auto; POSITION: absolute; TOP: 5%; WIDTH: 85%"height="400" width="1000" scrolling="Yes" src="http://www.experts-exchange.com/Web/Web_Languages/JavaScript/" frameborder="1"></iframe>

            <select name="selLink" style="width: 136px" onchange="sendInfo(this.options[this.selectedIndex].value)">
                    <option value="Ace">ACE</option>
                    <option value="Image View">Image View</option>
                    <option value="value test">Value Test</option>
            </select>

script:

      function sendInfo(dText)
      {
        switch(dText)
        {
            case "value test":
                //////////////////////////// What do i place here to be able to access the form in the iframe to set the value
                                                    say for example: Form(SearchForm)
                                                                             Input Text(query)
                break;
        }
      }

thnx
tony_813
LVL 9
tony_813Asked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

pvginkelCommented:
Try this:

frames['objViewer'].document.getElementById('query').value = 'the value of the query';
0
tony_813Author Commented:
thns for the quick reponse...
I tried your suggestion and I got the following error message:

    Access is denied.
0
bubbledragonCommented:
For browse security, cannot access the frame that in different domain, you will get "Permission Denied" when Scripting Across Frames (at least in IE).

To Create Cross-Frame Scripting-Capable Web Pages with HTML Applications (HTAs) http://support.microsoft.com/default.aspx?scid=kb;en-us;241754
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
tony_813Author Commented:
errrrrrrrrrrr
    not the info I wanted to say..... but hey.. at leas i'm not going to be here all night trying to get it to work..

thank you for you info

tony_813
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
JavaScript

From novice to tech pro — start learning today.