Welcome Guest! You need to login or register to make posts.

Notification

Icon
Error

Options
Go to last post Go to first unread
RogerBL  
#1 Posted : Tuesday, January 15, 2013 6:57:51 AM(UTC)
RogerBL

Rank: Newbie

Groups: Member
Joined: 1/15/2013(UTC)
Posts: 1

Hi,

I'm developing a web applications with ASP.NET. I've integrated Aurigma uplader with ActiveX/JAva and it wors fine.

Now I would like that my application works with HTML5/Flash Aurigma uplader too.

Is it possible to have both versions of aurigma uploader in the same page?

Is there any example in the documentation?

Thx!

jmarcv  
#2 Posted : Tuesday, January 15, 2013 10:37:05 AM(UTC)
jmarcv

Rank: Member

Groups: Member
Joined: 2/6/2012(UTC)
Posts: 27

Thanks: 1 times
I bet you can set up 2 uploaders and do this:

$uploader1 = new ImageUploaderFlash("Uploader1");

$uploader2 = new ImageUploader("Uploader2");

Edited by user Tuesday, January 15, 2013 10:37:55 AM(UTC)  | Reason: Not specified

vitaly  
#3 Posted : Tuesday, January 15, 2013 11:43:57 PM(UTC)
vitaly

Rank: Advanced Member

Groups: Member
Joined: 12/19/2012(UTC)
Posts: 164

Was thanked: 8 time(s) in 8 post(s)
Hello RogerBL,

Quote:
Is it possible to have both versions of aurigma uploader in the same page?

Yes, it is possible. You can add both ASP.NET controls to the same page.

This code will work:

Code:

<%@ Page Title="Home Page" Language="C#" MasterPageFile="~/Site.master" AutoEventWireup="true"
    CodeBehind="Default.aspx.cs" Inherits="WebApplication4._Default" %>
<%@ Register Assembly="Aurigma.ImageUploaderFlash" Namespace="Aurigma.ImageUploaderFlash"
    TagPrefix="cc2" %>
<%@ Register Assembly="Aurigma.ImageUploader" Namespace="Aurigma.ImageUploader" TagPrefix="cc1" %>

<asp:Content ID="HeaderContent" runat="server" ContentPlaceHolderID="HeadContent">
</asp:Content>
<asp:Content ID="BodyContent" runat="server" ContentPlaceHolderID="MainContent">

    <cc1:Uploader ID="Uploader1" runat="server" Height="400" Width="600">
    </cc1:Uploader>

    <cc2:ImageUploaderFlash ID="ImageUploaderFlash1" runat="server" Height="400" Width="600">
    </cc2:ImageUploaderFlash>
</asp:Content>

Please use this code as example.

I hope it helps.

Best regards,

Vitaly Kustov

Aurigma Technical Support

Best regards,

Vitaly Kustov

Aurigma Technical Support

Carmine  
#4 Posted : Monday, December 8, 2014 3:25:31 AM(UTC)
Carmine

Rank: Member

Groups: Member
Joined: 12/1/2007(UTC)
Posts: 11

Thanks: 1 times
Hi, I would like to do the same thing with php in a tabbed page is it possible? Thank you for the support
Andrew  
#5 Posted : Friday, December 19, 2014 12:46:20 AM(UTC)
Andrew

Rank: Advanced Member

Groups: Member, Administration
Joined: 8/2/2003(UTC)
Posts: 876

Thanks: 2 times
Was thanked: 27 time(s) in 27 post(s)
Hi Carmine,

If you are using JavaScript API, you can do it as described in this article:

https://www.aurigma.com/upload-s...e-Java-to-HTML5-uploader

If you rather use a PHP library, it should be possible to do in the way mentioned by jmarcv (include both libraries and create ImageUploader and ImageUploaderFlash instances). Do you have any problems with it?

thanks 1 user thanked Andrew for this useful post.
Carmine on 2/8/2015(UTC)
Carmine  
#6 Posted : Sunday, January 18, 2015 11:15:10 AM(UTC)
Carmine

Rank: Member

Groups: Member
Joined: 12/1/2007(UTC)
Posts: 11

Thanks: 1 times
Hi Andrew thanks for the tip, excuse me if I reply only now, I had not seen your answer, I use the libraries php and if I try to insert the two instances it doesn't work. the code that I try to use is:

//code

<div tabber>

<php

require "ImageUploaderPHP/Uploader.class.php";

$uploader = new Uploader("Uploader1");

$uploader->setHeight('700px');

$uploader->setWidth('90%');

etc etc

?>

</div

<div tabber>

require 'ImageUploaderFlashPHP/ImageUploaderFlash.class.php';

$uploader = new ImageUploaderFlash("Uploader2");

$uploader->setWidth("650px");

$uploader->setHeight("480px");

etc etc

?>

</div>

thank you

Andrew  
#7 Posted : Monday, January 19, 2015 6:01:46 AM(UTC)
Andrew

Rank: Advanced Member

Groups: Member, Administration
Joined: 8/2/2003(UTC)
Posts: 876

Thanks: 2 times
Was thanked: 27 time(s) in 27 post(s)
You may need to insert Uploader.class after ImageUploaderFlash.class. Please let me know if it helps.
Carmine  
#8 Posted : Monday, January 19, 2015 9:14:47 AM(UTC)
Carmine

Rank: Member

Groups: Member
Joined: 12/1/2007(UTC)
Posts: 11

Thanks: 1 times
Hi Andrew thanks for the help, I've tryed to invert the classes but no, it doesn't works, commenting the code of one of the two, the other works but not together

Edited by user Monday, January 19, 2015 9:16:07 AM(UTC)  | Reason: Not specified

Andrew  
#9 Posted : Tuesday, January 20, 2015 4:53:10 AM(UTC)
Andrew

Rank: Advanced Member

Groups: Member, Administration
Joined: 8/2/2003(UTC)
Posts: 876

Thanks: 2 times
Was thanked: 27 time(s) in 27 post(s)
Oh, I have tried to reproduce the problem with your code and now I see what is the problem. There is a confict of PHP base classes in both libraries.

As far as I remember, 90% of PHP library for Java/ActiveX and HTML5/Flash share the same code. You can try to merge both libraries together to the same folder and most likely it will work (I would recommend copying Java/ActiveX library over HTML5/Flash one). It is not guarantied though, but you can try it. It would be nice if you post about the results here. :-)

Meanwhile I will open a ticket for our developers so that they could see if it is safe to combine both libraries or if it is possible to solve this problem in some alternative manner.

Carmine  
#10 Posted : Tuesday, January 20, 2015 11:58:24 AM(UTC)
Carmine

Rank: Member

Groups: Member
Joined: 12/1/2007(UTC)
Posts: 11

Thanks: 1 times
Hi Andrew, I think that is very tricky to merge the two classes, if I have well understood you mean that I must copy and paste all the code of the file uploader.class.php in the file ImageUploaderFlash.class.php and to put all the files required in one folder, is it right?
Andrew  
#11 Posted : Wednesday, January 21, 2015 6:29:57 AM(UTC)
Andrew

Rank: Advanced Member

Groups: Member, Administration
Joined: 8/2/2003(UTC)
Posts: 876

Thanks: 2 times
Was thanked: 27 time(s) in 27 post(s)
You can just copy (and overwrite files with the same names) the content of ImageUploaderPHP folder to ImageUploaderFlashPHP. I just tried to do it and it seems to work fine. However we will do more tests during the preparation of the next release.
Carmine  
#12 Posted : Wednesday, January 21, 2015 12:04:10 PM(UTC)
Carmine

Rank: Member

Groups: Member
Joined: 12/1/2007(UTC)
Posts: 11

Thanks: 1 times
Hi Andrew, I've tryed, doesn't works, and doesn't works not even just one for time, can you pass me the example of your code you use to make it work?

Edited by user Wednesday, January 21, 2015 12:09:38 PM(UTC)  | Reason: Not specified

Andrew  
#13 Posted : Thursday, February 5, 2015 4:48:16 AM(UTC)
Andrew

Rank: Advanced Member

Groups: Member, Administration
Joined: 8/2/2003(UTC)
Posts: 876

Thanks: 2 times
Was thanked: 27 time(s) in 27 post(s)
I am sorry for a late answer. I have merged libraries and created a small code example. Please find it attached.
File Attachment(s):
both-uploaders-php.zip (10,892kb) downloaded 7 time(s).
Carmine  
#14 Posted : Friday, February 6, 2015 2:02:46 AM(UTC)
Carmine

Rank: Member

Groups: Member
Joined: 12/1/2007(UTC)
Posts: 11

Thanks: 1 times
Hi Andrew thanks for the help, I'll try this afternoon and I'll make you know
Carmine  
#15 Posted : Sunday, February 8, 2015 1:12:38 PM(UTC)
Carmine

Rank: Member

Groups: Member
Joined: 12/1/2007(UTC)
Posts: 11

Thanks: 1 times
Hi Andrew, I've tested it and it works, I just have to adjust it for the tabs but is ok, I can do it. I want to thank you for the precious help
Users browsing this topic
Guest
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.