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
|
|
|
|
Rank: Advanced Member
Groups: 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();
|
|
|
|
|
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
|
|
|
|
Rank: Advanced Member
Groups: 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.
|
|
|
|
Rank: Newbie
Groups: Member
Joined: 1/24/2011(UTC) Posts: 1
|
|
|
|
|
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.