Page 1 of 1

File Upload for Master/Detail Page

Posted: Sun Jul 21, 2013 7:15 am
by Deon

Hi

I need to use a master/detail page to upload images.

I cannot open an image file from disk if the upload page is opened as a detail page in a master/detail page situation. I can select the image from disk but it does not display when clicking the Open button.

Uploading works perfectly if you open the Upload page as a single page.

Thank you


File Upload for Master/Detail Page

Posted: Sun Jul 21, 2013 5:09 pm
by maxkatz

When you say Master/Detail -- are you using the iPad page template?


File Upload for Master/Detail Page

Posted: Sun Jul 21, 2013 7:27 pm
by Deon

Yes


File Upload for Master/Detail Page

Posted: Mon Jul 22, 2013 1:20 pm
by Kateryna Grynko

Hi Deon,

Could you please show us screen shots and description of what you want to achieve?


File Upload for Master/Detail Page

Posted: Mon Jul 22, 2013 3:32 pm
by Deon

All I want to do is Use the Master/Detail Page to upload images.

I can use your Upload Files Tutorial Perfectly with a single page scenario but not in a Master/Detail Page scenario.

See Image displayed

Image

If you have a Master IPAD Page (Master) and your content Page (Content) contains the content of your "Upload Files Tutorial", the images do not display in the content page when you select them.

See No Image after clicking Select Image and choosing image from disk.

Image


File Upload for Master/Detail Page

Posted: Mon Jul 22, 2013 6:02 pm
by Maryna Brodina

Hello! The problem is that no listener has been created for change for fileselect event. To get it working:
1) delete from html panel code<script type="text&#47;javascript">
&#47;&#47; set event listener for call preview after select file
var fileselect = $('#fileselect');
fileselect&#46;bind("change", fileSelectHandler);
<&#47;script>/code
2) on page Show event (Detail page) run the following code:
codevar fileselect = $('#fileselect');
fileselect&#46;off()&#46;on("change", fileSelectHandler);/code


File Upload for Master/Detail Page

Posted: Sat Jul 27, 2013 6:20 am
by Deon

Just to clarify. Do I remove the whole html panel?


File Upload for Master/Detail Page

Posted: Sat Jul 27, 2013 2:15 pm
by Igor

Hello,

Not whole panel, only part of code.


File Upload for Master/Detail Page

Posted: Sun Jul 28, 2013 7:29 am
by Deon

Ok great, thank you