cancel
Showing results for 
Search instead for 
Did you mean: 

Launching URL from Alfresco

mchernecki
Champ in-the-making
Champ in-the-making
I have a web app running on the same server as Alfresco. I want to gather details about the current document in Alfresco and pass it via url to this web app. I can gather the infomation fine, but having a problem launching the url. I can launch the browser by calling the command line from my java class, but it launches in the same browser as Alfresco, killing that session.
Is there any way I can launch my web app via url from in Alfreso (in a new window) from either java, javascript or whatever?
2 REPLIES 2

gavinc
Champ in-the-making
Champ in-the-making
Do you mean launching a new browser window from within the Alfresco server or from the client?

If you mean from the webclient you can either generate a href link with a target attribute of "new" or you can use window.open() in javascript.

If you mean from the server you can always execute some server side Javascript and output the window.open code as the return value, see http://forums.alfresco.com/viewtopic.php?t=5621

mchernecki
Champ in-the-making
Champ in-the-making
I want to launch a new browser window with the url of my web app from within Alfresco, either in javascript or a java class. I have been unsuccesful, do you have a working example?