Solved

security error code: "1000 ?

Posted on 2012-03-19
3
383 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
  • 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

Master Your Team's Linux and Cloud Stack!

The average business loses $13.5M per year to ineffective training (per 1,000 employees). Keep ahead of the competition and combine in-person quality with online cost and flexibility by training with Linux Academy.

Question has a verified solution.

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

Suggested Solutions

This article discusses four methods for overlaying images in a container on a web page
An enjoyable and seamless user experience can go a long way on an eCommerce site. While a cohesive layout and engaging copy play roles in creating a positive user experience, some sites neglect aspects that seem marginal but in actuality prove very …
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)
The is a quite short video tutorial. In this video, I'm going to show you how to create self-host WordPress blog with free hosting service.

822 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