Click to See Complete Forum and Search --> : SSL access denied error when using frames
gort79
03-20-2003, 02:07 PM
I am using a simple frameset to automatically log into a particular Web based system. I have a script on my server that access the remote server, log the user in, then tries to pull a form value so I can navigate the user to a particular page. When I try to do this, I received an Access Denied error. I am assuming this is due to the fact that I have a script running in a page without SSL and one with SSL. Is there a way I can pull that form value from my frameset? Thanks!
Are you just trying to get form values from a frame and put it into a different frame?
gort79
03-20-2003, 02:28 PM
That's correct. I am trying to pull a form element value from a frame that's connecting to a remote server using SSL and place it into a second frame that is not using SSL. Any ideas?
Oh sure. Use this in the left frame with the SSL:
<script>
function foo(){
var info = parent.leftFrameName.formName.elementName.value;
document.formName.textboxName.value=info; }
</script><body onload="foo()">
gort79
03-20-2003, 02:36 PM
I would love to be able to do that, but this remote server is under some one else's control -- they would never let me insert this code. Any other ideas?
Not true. If you want to put the SSL-less page's form value into your SSL's form value, the above code will work.