Inserting an XFDL object into a Div


DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 1 of 1

Thread: Inserting an XFDL object into a Div

  1. #1
    Join Date
    Mar 2006
    Posts
    100

    Inserting an XFDL object into a Div

    Not 100% sure this is the proper area, however, here is my issue and mods feel free to move this whereever.

    Little background I am using Websphere v6 and Workplace Forms Server 2.6 and the form can be viewed fine using a simple get request from the servlet

    I have an ajax page that recieves a response from a servlet then writes the response to the innertext of a div tag. This response is in the form of an XFDL document. When the response is recieved it apears the response is of a MIME type and cannot be properly viewed the response that is shown is

    application/vnd.xfdl; content-encoding="base64-gzip" H4sIAAAAAAAAC+19bXPbVpLu582v4PVU3Zn5AOu8v2Qd7T0HOKfGM47jjTMzu3Vry0VLsMUVReqK...

    The servlet writes using the following code

    response.setContentType("application/vnd.xfdl");
    theForm.writeForm(response.getOutputStream(), null, 0);

    Now I pretty much know what the problem is, the browser is expecting an html document and the output is in a differant MIME type. Is there a way that anyone can think of to view the mime type on the page as well?


    ***** UPDATE******
    Ok forgive me for my lack of MIME knowledge I got rid of the DIV tag and made it an object tag so the insert command looks like this

    document.getElementById("objTest").data=xmlHttp.responseText;

    and the tag looks like this

    <object id="objTest" type="application/vnd.xfdl" data="" />

    still shows nothing (I was hoping I would get one of those plug in missing logos) any ideas?
    Last edited by partyk1d24; 01-03-2007 at 01:24 PM.

Similar Threads

  1. Objects disposed incorrectly
    By Osiris43 in forum .NET
    Replies: 1
    Last Post: 08-04-2006, 01:15 PM
  2. Even C++ had this much right...
    By Derek Mooney in forum .NET
    Replies: 94
    Last Post: 10-29-2001, 09:44 PM
  3. Validating XML
    By Jaco de Villiers in forum XML
    Replies: 1
    Last Post: 06-01-2001, 06:50 PM
  4. Replies: 0
    Last Post: 05-15-2001, 07:25 AM
  5. Re: COM object Password Security
    By Tom Shreve in forum Enterprise
    Replies: 0
    Last Post: 04-07-2000, 09:15 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center