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

Notification

Icon
Error

Options
Go to last post Go to first unread
vimala  
#1 Posted : Friday, January 7, 2011 6:16:01 AM(UTC)
vimala

Rank: Member

Groups: Member
Joined: 11/16/2010(UTC)
Posts: 11

Hi,

I am using the aurigma image uploader 6.0. It is displaying the image uploader well in my page. When i hit that page through ajax it is not displaying and error occurs.

I called the below function and assign the image uploader to the div through ajax. When i run the file in the browser it is running but when i assign it in the div html is assigning but the uploader is not running and showing the syntax error

as

Code:
'syntax error
[Break on this error] if (ImageUploader1_w.getControlType() == "Java")\n'

Please help me...

Code:
<script>
	function funTest() 
		{
			$.ajax({
				type : "POST",
				url	 : g_site_path+"/galleryupload/gallery/",
				data : 'rand='+Math.random(),
				dataType : 'script',
				success: function(script){
					alert(script);
					alert(document.getElementById('popDiv'));
					document.getElementById('popDiv').innerHTML = script;
					alert(document.getElementById('popDiv').innerHTML);
				}
			});
		}
</script>

Edited by moderator Friday, January 7, 2011 7:07:58 AM(UTC)  | Reason: Not specified

andreym  
#2 Posted : Monday, January 10, 2011 2:25:59 AM(UTC)
andreym

Rank: Advanced Member

Groups: Member
Joined: 6/16/2009(UTC)
Posts: 134

Was thanked: 8 time(s) in 8 post(s)
Hello!

If you want to insert Image Uploader into the popup div you should use getHtml method:

Code:

var iu = new ImageUploaderWriter("ImageUploader1", 650, 400);
...

document.getElementById('popDiv').innerHTML = iu.getHtml();
vimala  
#3 Posted : Tuesday, January 11, 2011 3:04:51 AM(UTC)
vimala

Rank: Member

Groups: Member
Joined: 11/16/2010(UTC)
Posts: 11

andreym wrote:
Hello!

If you want to insert Image Uploader into the popup div you should use getHtml method:

Code:

var iu = new ImageUploaderWriter("ImageUploader1", 650, 400);
...

document.getElementById('popDiv').innerHTML = iu.getHtml();

Hi,

The Url [g_site_path+"/galleryupload/gallery/"] displays the aurigma image uploder 6.0 and also write the image uploader in the php function.

I want to use the same uploader function in the popup div. So i call the url through ajax and assign the aurigma image uploader 6.0 in the div through the below function. But it is not assigning the aurigma image uploader to the div. Please help me.

<script>

function funTest()

{

$.ajax({

type : "POST",

url : g_site_path+"/galleryupload/gallery/",

data : 'rand='+Math.random(),

dataType : 'script',

success: function(script){

alert(script);

alert(document.getElementById('popDiv'));

document.getElementById('popDiv').innerHTML = script;

alert(document.getElementById('popDiv').innerHTML);

}

});

}

</script>

Thanks in advance,

Regards,

Vimala

Dmitry.Obukhov  
#4 Posted : Wednesday, January 12, 2011 4:53:36 AM(UTC)
Dmitry.Obukhov

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 Vimala,

Unfortunately, the way you want to implement is impossible. You can use the method offered by Andrey in the previous post.

Best regards,

Dmitry Obukhov

Technical Support. Aurigma, Inc.

superachei  
#5 Posted : Monday, January 24, 2011 1:05:54 PM(UTC)
superachei

Rank: Newbie

Groups: Member
Joined: 1/24/2011(UTC)
Posts: 1

Very interesting.

www.superachei.com.br

Users browsing this topic
Guest
Similar Topics
Aurigma Image Uploader Issue (Discussions – ActiveX/Java Uploader)
by vimala 1/8/2011 1:01:46 AM(UTC)
Aurigma Image Uploader issue in firefox (Discussions – ActiveX/Java Uploader)
by vimala 12/2/2010 11:54:37 PM(UTC)
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.