?
Solved

security error code: "1000 ?

Posted on 2012-03-19
3
Medium Priority
?
392 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 2000 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

On Demand Webinar: Networking for the Cloud Era

Ready to improve network connectivity? Watch this webinar to learn how SD-WANs and a one-click instant connect tool can boost provisions, deployment, and management of your cloud connection.

Question has a verified solution.

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

When it comes to write a Context Sensitive Help (an online help that is obtained from a specific point in state of software to provide help with that state) ,  first we need to make the file that contains all topics, which are given exclusive IDs. …
When crafting your “Why Us” page, there are a plethora of pitfalls to avoid. Follow these five tips, and you’ll be well on your way to creating an effective page.
The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.
Any person in technology especially those working for big companies should at least know about the basics of web accessibility. Believe it or not there are even laws in place that require businesses to provide such means for the disabled and aging p…
Suggested Courses

765 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