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

psanjuanmelende
Champ in-the-making
Champ in-the-making
Hi Jan,

I have installed Alfresco since two weeks ago and now I´m trying to install your opsoro forge project which I consider is a great alfresco interface, very useful interface.
The problem I have, due to my lack of knowledge in web programming, is that I´m not able to install Webscripts as you indicate in this forum ("Extract the WebScript and install them: http://wiki.alfresco.com/wiki/Web_Scripts#Step_2:_Storing_a_Web_Script"). I have only copied webscripts files into webapps\alfresco\WEB-INF\classes\alfresco\bootstrap\webscripts folder… I don´t know what is the procedure to install these webscripts…

When I open Opsoro Alfresco Client, no data appear neither in folder browsing nor category browsing… I think this occurs because I haven´t installed webscripts correctly.

Could you help me?

Thanks in advance and sorry for my ignorance…
Pablo San Juan.

jmpe
Champ in-the-making
Champ in-the-making
Jan,

Thank you for sharing this work with the community. I am very interested an ExtJS front-end to Alfresco.

Trying to open the client for the first time I am getting the following error in Firebug. Any suggestions you might have would been very appreciated.

[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]

I put the opsoro_AMP.amp in the alfresco/amp directory and ran the apply_amps.bat from the command line.
I expanded the opsoro_WebApp.zip in tomcat/webapps/opsoro directory.
I put the webscripts in tomcat/webapps/alfresco/WEB-INF/classes/alfresco/extension/templates/webscripts/opsoro

Thanks,

John

jpfi
Champ in-the-making
Champ in-the-making
Hi John,
this sounds like your opsoro client is trying a cross-domain XML-request.
in webapps/opsoro is a config.js file. You have to specify your host there (default: var ROOT_URL = 'http://localhost:8080'Smiley Wink. For the moment opsoro isn't cross domain ready, so this should be the same host like your alfresco webapp where opsoro runs as a sibling webapp.
Cheers, Jan

jpfi
Champ in-the-making
Champ in-the-making
Hi Pablo San Juan,
if you list your webscripts via alfresco/service/package/ you should see an opsoro package if your webscripts are registered properly.
Cheers,
Jan
Hi Jan,

I have installed Alfresco since two weeks ago and now I´m trying to install your opsoro forge project which I consider is a great alfresco interface, very useful interface.
The problem I have, due to my lack of knowledge in web programming, is that I´m not able to install Webscripts as you indicate in this forum ("Extract the WebScript and install them: http://wiki.alfresco.com/wiki/Web_Scripts#Step_2:_Storing_a_Web_Script"). I have only copied webscripts files into webapps\alfresco\WEB-INF\classes\alfresco\bootstrap\webscripts folder… I don´t know what is the procedure to install these webscripts…

When I open Opsoro Alfresco Client, no data appear neither in folder browsing nor category browsing… I think this occurs because I haven´t installed webscripts correctly.

Could you help me?

Thanks in advance and sorry for my ignorance…
Pablo San Juan.

psanjuanmelende
Champ in-the-making
Champ in-the-making
Hi Jan,

Thank you for the answer… Opsoro Alfresco Client is appearing properly, but no data are neither in Folder Browsing nor in Category Browsing… What folder have I to put opsoro webscripts in? And then, when you restart Alfresco, are opsoro webscripts automatically registered? Sorry for the insistence in this subject, but I have doubts about if opsoro webscripts are working properly…

I have NTLM Passthru authentication activated. May be it a problem?

Thanks.
Pablo.

jpfi
Champ in-the-making
Champ in-the-making
Hi Pablo,
opsoro consists of two parts. The webinterface and the custom Alfresco webscripts. Opsoro webapp calls these webscripts to retrive JSON-data & display them.
So, please call http://youralfrescohostandport/alfresco/service/package/
You should then see a webpage which list all webscript packages, "opsoro" should be listed there.
But Pablo, opsoro isn't ready for a real life use, it is still more a prototype or an example application whcih shows how to build a custom interface using extjs.
I'm not sure if opsoro is what you're looking for.
Optaros has implemented an opsoro clone called docasu which is more production ready.
Cheers, Jan

psanjuanmelende
Champ in-the-making
Champ in-the-making
Thanks Jan…

Sorry and thank you again for your lost time.

Kind Regards,
Pablo

jmpe
Champ in-the-making
Champ in-the-making
Hi John,
this sounds like your opsoro client is trying a cross-domain XML-request.
in webapps/opsoro is a config.js file. You have to specify your host there (default: var ROOT_URL = 'http://localhost:8080'Smiley Wink. For the moment opsoro isn't cross domain ready, so this should be the same host like your alfresco webapp where opsoro runs as a sibling webapp.
Cheers, Jan

Jan,

Thank you for your reply. You were correct. I had installed opsoro on another machine and was attempting the visit the webpage from my browser. When I attempted to open the page on the host machine it worked fine. I then changed the ROOT_URL to the machine name vice localhost as you suggested and I can now access the page from my machine.

Thank you again for sharing this work and for continuing to reply to this thread.

Kind regards,

John

luisg
Champ in-the-making
Champ in-the-making
Hi there…
I'm new at Alfresco and Opsoro.
I've been trying to install opsoro but there's something I dont know how to do.
I unzip the opsoro.zip file, install the AMP file using Alfresco Module Manager and unzip the opsoro_WebApp.zip file in <Alfresco_dir>\tomcat\webapps;
Then, I unzip the opsoro_WebScripts.zip file. This file contains:
- An 'opsoro' folder;
- Another opsoro_AMP.amp file
- And a opsoro_WebApp.zip file
The thing is, I dont know what to do with this files!
I tryed to copy all the filme in opsoro folder to <Alfresco_dir>\webapps\alfresco\WEB-INF\classes\alfresco\bootstrap\webscripts, but when I access to http://myalfrescohostandport/alfresco/service/package/ I can see that the webscript is not workin…

Can you help me?

Thanks

jpfi
Champ in-the-making
Champ in-the-making
hi,
try to move webscripts to tomcat/shared/classes/alfresco/extension/templates/webscripts
cheers, jan