My code for the parent page and the hidden field is:-
!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<title>ajax2</title>
<!--<link rel="stylesheet" type="text/css" href="misc/styles.css" media="screen" />-->
<!-- Lytebox Includes //-->
<script type="text/javascript" src="lytebox.js"></script>
<link rel="stylesheet" type="text/css" href="lytebox.css" media="screen" />
<!-- Lytebox Includes //-->
<script language="javascript">
function hello(string){
var name=string
document.getElementById('CroppedImage').value=name;
}
function enableField()
{
document.fileupload.crop1.disabled=false;
}
function addInput()
{
document.getElementById('text').innerHTML += "<br />Image uploaded!.";
}
</script>
</head>
<body>
<br />
<br />
<a href="index.php" rel="lyteframe" title="" rev="width: 1100px; height: 600px; scrolling: auto;">Upload Image!</a>
<br />
<br />
<input type="hidden" name="product_full_image" id="CroppedImage" value="" onchange="addInput()" />
<div id="text">
</div>
</body>
</html>
any help would be much appreciated.
Thank you
Steven.

New Topic/Question
Reply



MultiQuote



|