Well, to have an easier and shorter upload operation to the user, here is what I need to do:
After google/stackoverflow a lot, I still do not have an solution to it.
The first idea to me is:
But the next page doesn't load in. The chrome dev tools is ok with touch events enabled. Is anything wrong with my usage?
HTMl code:
<a class="detail-page" href="detail.html" data-transition='slide-out'>Load Detail</a>
<input class="photoInput" type="file" name="photo" />In javascript:
$('.photoInput').asyncUpload().on('success', function(data) {
// do something with data
// this page slide out, detail page slide in
$('.detail-page').trigger('touchstart')
// even tried touchend and click
// $('.detail-page').trigger('touchend')
// $('.detail-page').trigger('click')
})