ibmi-brunch-learn

Announcement

Collapse
No announcement yet.

What is application type for exbedding excel into browser

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • What is application type for exbedding excel into browser

    Hello,

    Im trying to embed an excel file into a html page. Ive done this with PDF's
    using the object tag. And it works correctly

    <object data="/reports/pdftest.pdf" type="application/pdf" width="100%" height="100%"></object>

    Im using:

    <object data="/reports/xlstest.xls" type="application/vnd.ms-excel" width="100%" height="100%"></object>

    But it's coming back with plugin not found. I believe that Im using the wrong version of applications type.

    Has anyone had any experience with this?

    Thank You

  • #2
    Re: What is application type for exbedding excel into browser

    You might look up and try the following:

    application/vnd.openxmlformats-officedocument.spreadsheetml.sheet
    Michael Catalani
    IS Director, eCommerce & Web Development
    Acceptance Insurance Corporation
    www.AcceptanceInsurance.com
    www.ProvatoSys.com

    Comment


    • #3
      Re: What is application type for exbedding excel into browser

      Same thing. No plugin found.

      I dont understand it, the ms.excel should make it open excel

      Comment


      • #4
        Re: What is application type for exbedding excel into browser

        <object> is for embedding an object in the middle of an HTML page, and it does require a browser plugin. It's NOT the way to launch a document in an application. To download into an application, you can just link directly to the Excel document on your HTTP server. Or have a CGI program dump the raw document with (the proper content-type header) with content-disposition: attachment

        Comment


        • #5
          Re: What is application type for exbedding excel into browser

          Im using jquery to produce a modal screen. I actually adding a <object> tag into the <div> parent via jquery to produce the modal.

          $("#pdf").empty();
          $("#pdf").append('<object data="/reports/pdftest.pdf" type="application/pdf" width="100%" height="100%"></object>')

          It works with pdf. I was hoping it would work with excel. I cant see why not.

          But, what type of content-disposition should I use.

          Comment


          • #6
            Re: What is application type for exbedding excel into browser

            Which browser / version are you attempting to use.
            Michael Catalani
            IS Director, eCommerce & Web Development
            Acceptance Insurance Corporation
            www.AcceptanceInsurance.com
            www.ProvatoSys.com

            Comment


            • #7
              Re: What is application type for exbedding excel into browser

              Mozilla and chrome. I use them first to get the bugs out, then I test in IE

              Im using cgidev2 and jquery to make an ajax call. Im actually using scotts POI class prototypes to create the xls file.

              I can use the ajax response to output to the div, but I dont know how to display it as excel

              Comment


              • #8
                Re: What is application type for exbedding excel into browser

                this looks like it may work -- maybe solution?
                I found a great domain name for sale on Dan.com. Check it out!


                Click image for larger version

Name:	Noname2.jpg
Views:	1
Size:	135.6 KB
ID:	126642

                Click image for larger version

Name:	Noname1.jpg
Views:	1
Size:	48.3 KB
ID:	126643
                Attached Files
                All my answers were extracted from the "Big Dummy's Guide to the As400"
                and I take no responsibility for any of them.

                www.code400.com

                Comment


                • #9
                  Re: What is application type for exbedding excel into browser

                  Looks cool. Right now Im not using php. Im using CGIDEV2.

                  But, thank you for the research

                  Comment


                  • #10
                    Re: What is application type for exbedding excel into browser

                    Davisty - You also on V5R3 maybe ?
                    Greg Craill: "Life's hard - Get a helmet !!"

                    Comment

                    Working...
                    X