Results 1 to 2 of 2

Thread: BatchRequest, Firefox 3, and xmlns=""

  1. #1
    qkmadson is offline New Member
    Join Date
    Apr 2008
    Posts
    4
    Rep Power
    7

    Default BatchRequest, Firefox 3, and xmlns=""

    It appears as though Firefox 3 adds blank xmlns attributes to SOAP requests called from zimlets. It also appears that when using BatchRequest, the child requests have their xmlns overwritten to null.

    In this forum thread:
    Check out 'Contact Cleaner' Zimlet (deletes and merges duplicate contacts)

    mmorse mentions that the zimlets provided by Zimbra have been fixed to define the xmlns via the constructor instead of using setAttribute() later.

    I read the source of AjxSoapDoc.js to try and use the set() function to define the xmlns straight away but, I am missing something and can't get it to work.

    Would someone from Zimbra be so kind to share your solution to the BatchRequest issue or an example of using set() with the xmlns parameter?

    Thanks,

    Quinn Madson, Web Developer
    University Information Technology Services
    University of Wisconsin-Milwaukee
    qkmadson@uwm.edu

  2. #2
    rrao is offline Zimbra Employee
    Join Date
    Sep 2005
    Posts
    187
    Rep Power
    9

    Default

    In contactcleaner zimlet, the following lines
    var contactActionReq = soapDoc.set("ContactActionRequest");
    contactActionReq.setAttribute("xmlns", "urn:zimbraMail");

    were replaced to:
    var contactActionReq = soapDoc.set("ContactActionRequest", null, null, "urn:zimbraMail");
    Last edited by rrao; 08-19-2008 at 03:24 PM.
    Bugzilla - Wiki - Downloads - Before posting... Search!

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •