Zimbra offers Open Source email server software and shared calendar for Linux and the Mac
Go Back   Zimbra :: Forums > Zimbra Collaboration Suite > Zimlets

Welcome to the Zimbra :: Forums!
Welcome, if you would like to post a comment please register. We also encourage you to explore all things Zimbra with our team and members of the community.

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 12-22-2008, 09:12 PM
Trained Alumni
 
Posts: 343
Default Invoking Zimlet JSP from Zimlet Javascript

I've got a bit of JS code that needs to make a call to a JSP file that is also in the Zimlet. The example I have from someone else did a call out to an external webpage instead of a file in the Zimlet. I need to modify this so that it calls to my ldap.jsp file in the Zimlet.

I tried something like this but it is returning me a 403 error....so it can't find the file via that url path. Besides the fact that this would have to be changed for every server I want to deploy it on. I need this path to work no matter where it's deployed....can that happen?

Code:
  //get ldap xml from JSP
  var url = [ZmZimletBase.PROXY, AjxStringUtil.urlComponentEncode("https://server.host.name/service/zimlet/_dev/edu_wiu_directory/ldap.jsp"), AjxStringUtil.urlComponentEncode(result[1])].join("");

  var result=AjxRpc.invoke(null, url, null, null, true);
If I'm authenticated, I can put that url in the browser and the ldap.jsp will return the XML I am testing with, so I know the URL works. I just don't know if this is how I should be trying to call out to it from the JS file.

Any thoughts?

Matt
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Similar Threads

Why Join?

Registering let's you ask questions, makes it easier to search, displays any files attached to posts, and notifies you about replies.

blog.zimbra.com




 

SEO by vBSEO ©2011, Crawlability, Inc.