Solved

security error code: "1000 ?

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

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

JavaScript can be used in a browser to change parts of a webpage dynamically. It begins with the following pattern: If condition W is true, do thing X to target Y after event Z. Below are some tips and tricks to help you get started with JavaScript …
This article explains how to prepare an HTML email signature template file containing dynamic placeholders for users' Azure AD data. Furthermore, it explains how to use this file to remotely set up a department-wide email signature policy in Office …
The viewer will learn how to create and use a small PHP class to apply a watermark to an image. This video shows the viewer the setup for the PHP watermark as well as important coding language. Continue to Part 2 to learn the core code used in creat…
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…

706 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

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now