Delphide yazdığım bir programda Web Browser kullanıyorum..Web Browser de açtığım bir sayfada resim yükleme yeri var..
Web sayfasında resim yükleme butonunun onclick olayına :
Kod: Tümünü seç
<INPUT onclick=GoLoadImage() type=button value="Import Person Picture" name=b22>
Kod: Tümünü seç
if confirm("?? ???? ??????")=true then
if ImageFilename<>"" then
GetImageData()
form1.submit()
else
alert("?? ??? ????? ?????? ???????")
end if
end if
end function
dim ImageFilename
function GoLoadImage()
ImageFilename=""
fg =AddPic1.LoadPic()
if fg=0 then
ImageFilename=AddPic1.GetFileName()
document.all("pimage").src=ImageFilename
else
alert("Image Error")
end if
end function
function GetImageData()
data1=AddPic1.GetCode(ImageFilename)
document.all("idata").value=data1
end function
Daha önce de böyle bir iki problemim olmuştu ama halledememiştim maalsef..
Çözüm üretebilecek, yol gösterebilecek arkadaşlara şimdiden teşekkür ederim..