Accessing a custom repository webscript from the Browser
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-17-2009 08:57 AM
I am using Share to deploy custom YUI widget. From the browser I am calling a custom repository webscript to access categories and nodes. The browser prompts for authentication. I assume the right way is to pass the login ticket. How do I get the ticket and pass it to my YUI widget from the Share webscript?
Labels:
- Labels:
-
Archive
2 REPLIES 2
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-17-2009 09:03 AM
You need to use the proxy servlet provided by Surf. Look at any of the existing Share code for examples, e.g.
Thanks.
Mike
Alfresco.constants.PROXY_URI + "api/node/" + record.getData("nodeRef").replace(":/", "") + "/content/thumbnails/doclib?c=queue&ph=true"
Thanks.
Mike
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-17-2009 10:27 AM
That did the trick.
Thanks!
Thanks!
