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

Notification

Icon
Error

Options
Go to last post Go to first unread
Profolio  
#1 Posted : Monday, March 12, 2012 2:38:48 AM(UTC)
Profolio

Rank: Member

Groups: Member
Joined: 7/9/2008(UTC)
Posts: 20

Hi evrybody, and sorry for my poor english... I'm french :'(

I Try to use Aurigma with a website using URL rewriting.

The URL of my page look's like that

Quote:
h**p://sites.xxx.local/admin/mod/mod_reportage/edit_chapitre?action=edit&idChapitre=1&idReportage=3

I require the php class

require_once "..//ImageUploader/PHP/PHPClasses/ImageUploaderPHP/Uploader.class.php";

but when I want to render the uploader

<?php

$uploader = new Uploader("Uploader1");

//configure Image Uploader

$uploader->render();

?>

the generated URL for JS files is wrong because of url rewriting. The generated URL is

Quote:
h**p://sites.xxx.local/admin/mod/ImageUploader/PHP/PHPClasses/ImageUploaderPHP/Scripts/aurigma.uploader.min.js

BUT it must be

Quote:
h**p://sites.xxx.local/ImageUploader/PHP/PHPClasses/ImageUploaderPHP/Scripts/aurigma.uploader.min.js

how can I set the root directory in php ?

thanks a lot.

Edited by user Monday, March 12, 2012 2:40:52 AM(UTC)  | Reason: Not specified

Profolio  
#2 Posted : Monday, March 12, 2012 3:17:29 AM(UTC)
Profolio

Rank: Member

Groups: Member
Joined: 7/9/2008(UTC)
Posts: 20

ok I found the solution

$uploader->getJavaControl()->setCodeBase ('../../../ImageUploader/Scripts/ImageUploader7.jar');

$uploader->getActiveXControl()->setCodeBase ('../../../ImageUploader/Scripts/ImageUploader7.cab');

Dmitry.Obukhov  
#3 Posted : Monday, March 12, 2012 7:06:02 PM(UTC)
Dmitry.Obukhov

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

I am glad that you have found the solution :) This topic describes how to set scripts, jar and cab files through codeBase property. If you have any additional questions or problems please let me know.

Best regards,

Dmitry Obukhov

Technical Support. Aurigma, Inc.

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.