how do i pass a variable for file browsing from one domain to another?
when i use the code below i get several errors.
permision denied...
permision denied...
and
object dosnt suport property or method
but when i run the same file browse from where the page is called i dont recieve an error..
please help!
thanks
-paul
<SCRIPT language="javascript">
var sImagesPath = document.location.pathname.substring(0,document.location.pathname.lastIndexOf('/')+1) ;
function getDoc(fileName)
{
window.opener.setImage(fileName);
window.close();
}
</SCRIPT>
<A href="javascript:getDoc('#request.secureurl#/EM/#ThisDirectory#/Images/#Images.name#');window.close();">#Images.name#</A>
when i use the code below i get several errors.
permision denied...
permision denied...
and
object dosnt suport property or method
but when i run the same file browse from where the page is called i dont recieve an error..
please help!
thanks
-paul
<SCRIPT language="javascript">
var sImagesPath = document.location.pathname.substring(0,document.location.pathname.lastIndexOf('/')+1) ;
function getDoc(fileName)
{
window.opener.setImage(fileName);
window.close();
}
</SCRIPT>
<A href="javascript:getDoc('#request.secureurl#/EM/#ThisDirectory#/Images/#Images.name#');window.close();">#Images.name#</A>