Solved

security error code: "1000 ?

Posted on 2012-03-19
3
386 Views
Last Modified: 2012-03-19
I am trying to set a value within a parent window from an iFrame:

parent.document.getElementById['filename'].value=document.form1.filename.value;

This is failing, throwing a security error code 1000.

How can I fix this?
0
Comment
Question by:pillmill
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 58

Expert Comment

by:amit_g
ID: 37740106
We are not allowed to set the value for input type file. This is due to security reasons and that is why you are getting this error. There is no way around it.
0
 

Author Comment

by:pillmill
ID: 37740180
Could the value be passed in $_SESSION?

Can $_SESSION data from an iframe be accessed within the parent window?
0
 
LVL 58

Accepted Solution

by:
amit_g earned 500 total points
ID: 37740446
For that a round trip to server would be required and by then the file has already been uploaded so that won't be useful at all.
0

Featured Post

MS Dynamics Made Instantly Simpler

Make Your Microsoft Dynamics Investment Count  & Drastically Decrease Training Time by Providing Intuitive Step-By-Step WalkThru Tutorials.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Because your company can’t afford for you to make SEO mistakes, you’ll want to ensure you’re taking the right steps each and every time you post a new piece of content. This list of optimization do’s and don’ts can help you become an SEO wizard.
The article shows the basic steps of integrating an HTML theme template into an ASP.NET MVC project
HTML5 has deprecated a few of the older ways of showing media as well as offering up a new way to create games and animations. Audio, video, and canvas are just a few of the adjustments made between XHTML and HTML5. As we learned in our last micr…
Video by: Mark
This lesson goes over how to construct ordered and unordered lists and how to create hyperlinks.

726 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question