Page 2 of 2

Uploading pic issue

Posted: Tue Feb 12, 2013 2:25 pm
by Maryna Brodina

Hello! On page INFO you have incorrect JS

codebackground()$('div[dsid="asd2"]').css('background-image',
'url("http://25.media.tumblr.com/tumblr_lvucueZJQ61qgnud8o1_500.jpg")')/code

delete background() to make it look like this

code$('div[dsid="asd2"]').css('background-image',
'url("http://25.media.tumblr.com/tumblr_lvucueZJQ61qgnud8o1_500.jpg")')/code

There is one more thing - on page startScreen there is a Label component with name mobilelabel1_38 (it should be fileName like in tutorial)


Uploading pic issue

Posted: Tue Feb 12, 2013 10:11 pm
by Latchezar Mladenov

I do not want the label(image name) and I deleted it. But when I load a picture and dont press the upload button and then press select picture button and select a pic there is nothing to show. When I do it again it shows me the picture. But this is only in the Mobile Preview on my PC. On the Androdid phone when I choose an image the choosen image is a "no image" image. Please support.

http://project.tiggzi.com/mobile-fram...


Uploading pic issue

Posted: Tue Feb 12, 2013 10:21 pm
by Kateryna Grynko

We are working on it..


Uploading pic issue

Posted: Wed Feb 13, 2013 7:00 am
by Maryna Brodina

In file Upload.js edit previewFile function

codefunction previewFile() {

Code: Select all

 var previewContainer = $('table[dsid=preview]'); 
 // make the preview container visible once a file was selected 
 previewContainer.show(); 

 // display image in preview container 
 if (file.type.indexOf("image") == 0) { 
     var reader = new FileReader(); 
     reader.onload = function(e) { 
         var image = $('[name=image]'); 
         image.attr('src', e.target.result); 
         $('[class=mobileimage1_div]').show(); 
     } 
     reader.readAsDataURL(file); 
 } 

}/code