Rank: Member
Groups: Member
Joined: 7/16/2012(UTC) Posts: 18
Was thanked: 1 time(s) in 1 post(s)
|
Got the images. Your desk is a lot tidier than mine! Now we know that is running I can work on the back-end code to shift them to the DB Thanks ==================== EDIT ======================= I have now completed the back-end code to pick up the uploaded image and move it to the DB - a lot depends upon if the session ID is recognised. Any errors will be emailed back to me. The changes were made to the login section Thanks Edited by user Saturday, August 11, 2012 3:42:53 PM(UTC)
| Reason: Not specified |
Qui me amat, amet et canem meum
|
|
|
|
Rank: Advanced Member
Groups: Member
Joined: 5/29/2010(UTC) Posts: 1,310
Thanks: 8 times Was thanked: 111 time(s) in 111 post(s)
|
Hello Dave,
Thank you for your feedback :) If you have any additional questions or problems, please let me know. |
Best regards, Dmitry Obukhov
Technical Support. Aurigma, Inc.
|
|
|
|
Rank: Member
Groups: Member
Joined: 7/16/2012(UTC) Posts: 18
Was thanked: 1 time(s) in 1 post(s)
|
Finally got everything working. The javascript below works for the iPhone but not the iPad Code:
<h2><a id="applink" runat="server" >Upload Image</a></h2>
<script type="text/javascript">
var appstore = "itms-apps://itunes.apple.com//us/app/aurigma-up/id432611633";
function applink(fail) {
return function () {
var clickedAt = +new Date;
setTimeout(function () {
if (+new Date - clickedAt < 2000) {
window.location = fail;
}
}, 100);
};
}
document.getElementById("applink").onclick = applink(appstore);
</script>
Build the string with any variables, to launch Aurigma Up, in code behind and set the href attribute of 'applink' - session variables have to be set as fields and reapplied at the upload page. Redirecturl doesn't work and throws an upload failure (Redirect is not supported with this website) but using a server side redirect, once the code has run to save the image to the DB, works fine. If the app is installed it will run, otherwise it will load the apple store for the user to install it. Code:
Private Sub ApplePhone_Image_Init(sender As Object, e As System.EventArgs) Handles Me.Init
applink.Attributes.Add("href", UploadLink)
End Sub
Thanks again for your help in getting this sorted. Edited by user Wednesday, August 15, 2012 5:35:53 AM(UTC)
| Reason: Not specified |
Qui me amat, amet et canem meum
|
|
|
|
Rank: Advanced Member
Groups: Member
Joined: 5/29/2010(UTC) Posts: 1,310
Thanks: 8 times Was thanked: 111 time(s) in 111 post(s)
|
Hello Dave,
Thank you for these code snippets. It will be helpful for other our clients.
If you have any questions or problems, please let me know. |
Best regards, Dmitry Obukhov
Technical Support. Aurigma, Inc.
|
|
|
|
Forum Jump
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.