Answer the question
In order to leave comments, you need to log in
Image change in Windows and Windows Phone?
Good evening. I'm developing a Windows Phone app using WinJS (HTML) and I've come across three issues. Using the picker.pickSingleFileAndContinue function, I call the file selection dialog.
After the file is selected, the following function is called:
function continueFileOpenPicker(eventObject) {
var files = eventObject[0].files;
var filePicked = files.size > 0 ? files[0] : null;
if (filePicked !== null) {
document.getElementById("CamPageCont").removeChild(document.getElementById("sendpostfile"));
var DivShowCamCont = document.createElement("div");
DivShowCamCont.setAttribute("align", "center");
var ShowCamCont = document.createElement("img");
ShowCamCont.setAttribute("id", "ShowCamCont");
ShowCamCont.setAttribute("align", "center");
var imageBlob = URL.createObjectURL(filePicked);
ShowCamCont.src = imageBlob;
DivShowCamCont.appendChild(ShowCamCont);
document.getElementById("CamPageCont").appendChild(DivShowCamCont);
var ButtEditPost = document.createElement("div");
ButtEditPost.setAttribute("id", "ButtEditPost");
ButtEditPost.innerHTML = "Edit";
document.getElementById("CamPageCont").appendChild(ButtEditPost);
document.getElementById("ButtEditPost").onclick = function (eventInfo) {
// TODO: Вызов функции редактирования
}
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question