Maryna Brodina
Posts: 0
Joined: Thu Apr 05, 2012 7:27 am

Uploading pic issue

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)

Latchezar Mladenov
Posts: 0
Joined: Thu Jan 10, 2013 11:19 pm

Uploading pic issue

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...

Kateryna Grynko
Posts: 0
Joined: Thu Nov 15, 2012 9:13 am

Uploading pic issue

We are working on it..

Maryna Brodina
Posts: 0
Joined: Thu Apr 05, 2012 7:27 am

Uploading pic issue

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

Return to “Issues”