Hi,
I have an ASP page with following javascript client code to calculate height and width of a picture file
<script language="javascript">
function CalPictureSize(myUrl)
{
var myImage = new Image();
myImage.src=myUrl;
var imgHeight = myImage.height;
var imgWidth = myImage.width;
if (imgHeight > 300)
{
imgHeight=300;
}
else
{
imgHeight=imgHeight;
}
if (imgWidth > 500)
{
imgWidth=500;
}
else
{
imgWidth=imgWidth;
}
"<%session("height"=" + imgHeight + "%>"
"<%session("width"=" + imgWidth + "%>"
}
</script>
Iam able to calculate ht and width smoothly..But, I want ht and width to be carried to next page and So i am trying to fetch them to session variables..
But Iam getting put as just strings imgHeight, imgWidth
can anybody help to solve this problem
thanks
I have an ASP page with following javascript client code to calculate height and width of a picture file
<script language="javascript">
function CalPictureSize(myUrl)
{
var myImage = new Image();
myImage.src=myUrl;
var imgHeight = myImage.height;
var imgWidth = myImage.width;
if (imgHeight > 300)
{
imgHeight=300;
}
else
{
imgHeight=imgHeight;
}
if (imgWidth > 500)
{
imgWidth=500;
}
else
{
imgWidth=imgWidth;
}
"<%session("height"=" + imgHeight + "%>"
"<%session("width"=" + imgWidth + "%>"
}
</script>
Iam able to calculate ht and width smoothly..But, I want ht and width to be carried to next page and So i am trying to fetch them to session variables..
But Iam getting put as just strings imgHeight, imgWidth
can anybody help to solve this problem
thanks