cancel
Showing results for 
Search instead for 
Did you mean: 

Prototype: Alfresco Web Scripts + extjs ajax lib

jpfi
Champ in-the-making
Champ in-the-making
Hi,

Along with a colleague I played around with Web Scripts and extjs (a fabulous ajax lib).
After a couple of days we've finished a first prototype of a ajax-based Alfresco repository browser - we named it opsoro.

    feature overview:
    - ria-feeling (sortable & movable columns, view/hide components, async loading…)
    - live Search (search as you type)
    - folder browser
    - category browser
    - tag cloud browser
    - My Alfresco portal (draggable portlets)
    - document tagging
    - embedded preview (crop content & image preview)
    - inline view (text, pdf, images … IE only: ms office et. al.)
You find a flash screemcam here: http://opensource-ecm.com/opsoro/opsoro.html

This Web Script API is truly first-rate! It is impressive to find out how easy  and rapid to develop things can be;-)
71 REPLIES 71

jpfi
Champ in-the-making
Champ in-the-making
Hi,
ok, I'll insert the tag-root initialization and the webscripts to the amp-file.
I've forgotten to mention that there is a opsoro_config.js inside of the opsoro WebApp part which defines some base urls (default: http://localhost:8080).
Maybe You've to adjust this to your environment to avoid cross domain xmlHttpRrequest issues :!: Sorry…
Cheers, Jan

dmatejka
Champ in-the-making
Champ in-the-making
thank you for this info.. we are running at 10080.. so that was one of the isues we have..

unfortunatelly I can still see only pictures loaded (only top logo picture, LIVE SERCH box and text "Messages….")
We will try it tomorrow at clean alfresco instalation.. maybe we missed something obvious.

have a good night..

jpfi
Champ in-the-making
Champ in-the-making
Hi,
try using firefox with firebug extension: http://www.getfirebug.com/
It seems that you're having more path issues and using this plugin gives more debugging infos in a separate console.
It should work with 2008-03-31 nightly build…
Good night,
Jan

dmatejka
Champ in-the-making
Champ in-the-making
hallo jan,
firebug is displaying this error
[Exception… "'Permission denied to call method XMLHttpRequest.open' when
calling method: [nsIDOMEventListener::handleEvent]" nsresult: "0x8057001e
(NS_ERROR_XPC_JS_THREW_STRING)" location: "<unknown>" data: no]

seems it does not have a permission .. do we have to set up some access rights? -we have EVERYONE as a consumer in Data dictionary.

moreover, when we have an issue in alfresco log

Caused by: java.io.FileNotFoundException:
./alf_data/lucene-indexes/indexbackup_temp/indexbackup_temp/index
backup_temp/indexbackup_temp/indexbackup_temp/indexbackup_temp/indexbackup_temp/indexbackup_temp/indexbacku
p_temp/indexbackup_temp/indexbackup_temp/indexbackup_temp/indexbackup_temp/indexbackup_temp/indexbackup_tem
p/indexbackup_temp/indexbackup_temp/indexbackup_temp/indexbackup_temp/indexbackup_temp/indexbackup_temp/ind
exbackup_temp/indexbackup_temp/indexbackup_temp/indexbackup_temp/indexbackup_temp/indexbackup_temp/indexbac
kup_temp/indexbackup_temp/indexbackup_temp/indexbackup_temp/indexbackup_temp/indexbackup_temp/indexbackup_t
emp/indexbackup_temp/indexbackup_temp/indexbackup_temp/indexbackup_temp/indexbackup_temp/indexbackup_temp/i
ndexbackup_temp/indexbackup_temp/indexbackup_temp/indexbackup_temp/indexbackup_temp/indexbackup_temp/indexb
ackup_temp/indexbackup_temp/indexbackup_temp/indexbackup_temp/indexbackup_temp/indexbackup_temp/indexbackup
_temp/indexbackup_temp/indexbackup_temp/indexbackup_temp/indexbackup_temp/indexbackup_temp/indexbackup_temp
/indexbackup_temp/indexbackup_temp/indexbackup_temp/indexbackup_temp/indexbackup_temp/indexbackup_temp/inde
xbackup_temp/indexbackup_temp/indexbackup_temp/indexbackup_temp/indexbackup_temp/indexbackup_temp/indexback
up_temp/indexbackup_temp/indexbackup_temp/indexbackup_temp/indexbackup_temp/indexbackup_temp/indexbackup_te
mp/indexbackup_temp/indexbackup_temp/indexbackup_temp/indexbackup_temp/indexbackup_temp/indexbackup_temp/in
dexbackup_temp/indexbackup_temp/indexbackup_temp/indexbackup_temp/indexbackup_temp/indexbackup_temp/indexba
ckup_temp/indexbackup_temp/indexbackup_temp/indexbackup_temp/indexbackup_temp/indexbackup_temp/indexbackup_
temp/indexbackup_temp/indexbackup_temp/indexbackup_temp/indexbackup_temp/indexbackup_temp/indexbackup_temp/
indexbackup_temp/indexbackup_temp/indexbackup_temp/indexbackup_temp/indexbackup_temp/indexbackup_temp/index
backup_temp/indexbackup_temp/indexbackup_temp/indexbackup_temp/indexbackup_temp/indexbackup_temp/indexbacku
p_temp/indexbackup_temp/indexbackup_temp/indexbackup_temp/indexbackup_temp/indexbackup_temp/indexbackup_tem
p/indexbackup_temp/indexbackup_temp/indexbackup_temp/indexbackup_temp/indexbackup_temp/indexbackup_temp/ind
exbackup_temp/indexbackup_temp/indexbackup_temp/indexbackup_temp/indexbackup_temp/indexbackup_temp/indexbac
kup_temp/indexbackup_temp/indexbackup_temp/indexbackup_temp/indexbackup_temp/indexbackup_temp/indexbackup_t
emp/indexbackup_temp/indexbackup_temp/indexbackup_temp/indexbackup_temp/indexbackup_temp/indexbackup_temp/i
ndexbackup_temp/indexbackup_temp/indexbackup_temp/indexbackup_temp/indexbackup_temp/indexbackup_temp/indexb
ackup_temp/indexbackup_temp/indexbackup_temp/indexbackup_temp/indexbackup_temp/indexbackup_temp/indexbackup
_temp/indexbackup_temp/indexbackup_temp/indexbackup_temp/indexbackup_temp/indexbackup_temp/indexbackup_temp
/indexbackup_temp/indexbackup_temp/indexbackup_temp/indexbackup_temp/indexbackup_temp/indexbackup_temp/inde
xbackup_temp/indexbackup_temp/indexbackup_temp/indexbackup_temp/indexbackup_temp/indexbackup_temp/indexback
up_temp/indexbackup_temp/indexbackup_temp/indexbackup_temp/indexbackup_temp/indexbackup_temp/indexbackup_te
mp/indexbackup_temp/indexbackup_temp/indexbackup_temp/indexbackup_temp/indexbackup_temp/indexbackup_temp/in
dexbackup_temp/indexbackup_temp/indexbackup_temp/indexbackup_temp/indexbackup_temp/indexbackup_temp/indexba
ckup_temp/indexbackup_temp/indexbackup_temp/indexbackup_temp/indexbackup_temp/indexbackup_temp/indexbackup_
temp/indexbackup_temp/indexbackup_temp/indexbackup_temp/indexbackup_temp/indexbackup_temp/indexbackup_temp/
indexbackup_temp/indexbackup_temp/indexbackup_temp/indexbackup_temp/indexbackup_temp/indexbackup_temp/index
backup_temp/indexbackup_temp/indexbackup_temp/indexbackup_temp/indexbackup_temp/indexbackup_temp/indexbacku
p_temp/indexbackup_temp/indexbackup_temp/indexbackup_temp/indexbackup_temp/indexbackup_temp/indexbackup_tem
p/indexbackup_temp/indexbackup_temp/indexbackup_temp/indexbackup_temp/indexbackup_temp/indexbackup_temp/use
r/alfrescoUserStore/c7e94c0d-ff3f-11dc-9c6d-e7e769b1ee62/IndexInfoDeletions
(File name too long)

any idea what we do wrong?

we are not a web developers by any means… . so probably missing something basic.. Smiley Sad

jpfi
Champ in-the-making
Champ in-the-making
Hi Daniel,
the first Error seems to be a cross domain issue.
1. Make sure that your tomcat/webapps folder have two folders inside: alfresco and opsoro (extract opsoro-webapp.zip here)
2. Make sure that your webapps/opsoro/opsoro_config.js defines the URLs:
If your alfesco webclient is running under http://yourhost:9090/alf your URLs should be defined as following:
var ROOT_URL = 'http://yourhost:9090;
var ALFRESCO_URL = ROOT_URL +'/alf/';
Ext.BLANK_IMAGE_URL = ROOT_URL + "/opsoro/lib/ext/resources/images/default/s.gif";

The second error is another issue with your alfesco installation. There is somewhere a path entry in your properties which seems to be recursive.
if you have further probs with opsoro just drop me a line via skype: fme.jpfitzner
cheers, Jan

jpfi
Champ in-the-making
Champ in-the-making
Hi,
I've just built the first version of opsoroAIR - opsoro as an Adobe AIR application.
It is here available for download: http://forge.alfresco.com/frs/download.php/358/opsoroAIR.zip

To run it:
Cheers, Jan

janvg
Champ in-the-making
Champ in-the-making
When I install opsoro air and browse the alfresco repository, the application is showing only questionmarks in front the folders.
it seems to me I'm missing some images ?

flm
Champ in-the-making
Champ in-the-making
Hi Janvg,

Make sure you edit the port in opsoro_config.js in the installed air application path. Jan left it at :9090 and your alfresco is probably running at :8080. I had the same effect with the blue question marks before changing that.

Bye,
Florian

jpfi
Champ in-the-making
Champ in-the-making
Hi,
there is another 'bug':
Ext.BLANK_IMAGE_URL in opsoro_config.js points to your alfresco-appserver too. Thats uggly… I'll include the s.gif file in the air package.
So long, there is a workaround:
This should work.
Cheers, Jan

janvg
Champ in-the-making
Champ in-the-making
thx, this did it