Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

    Problems showing a window above a PDF with IE11 and SmartClient v9.1p_2014-05-13

    Hi Isomorphic,

    we want to show a window above a PDF, which is in a HTMLPane.
    It works fine in Firefox and Chrome but in IE11 the window is displayed behind the PDF.
    How can the window be displayed correctly with IE11?

    Greetings Benedikt
    Last edited by BenediktK; 7 Oct 2014, 23:40.

    #2
    Sounds like you will need to set useBackMask to true on the Window which sits above the HTMLPane in the page's z-order.

    Please let us know if this doesn't resolve your problem. It would also be helpful to see the problem in house so we can make sure there isn't anything else going on here. If you could post a little test case we could run on our end to reproduce the problem we'd be happy to take a look.

    Regards
    Isomorphic Software

    Comment


      #3
      Hi,

      if I set useBackMask to true on the Window it works perfectly. Now I have the same problem with the dialogs in IE11, if I try to execute the following code it doesn't work:

      Code:
      isc.HLayout.create({
          width: "40%",
          height: "100%",
          members: [
              isc.HTMLPane.create({
      	    width:"100%", 
                  height:"100%",    
                  contentsType:"page",
                  contentsURL:"http://westbus.at/sites/default/files/presse/testpdf.pdf"
                  })
              ]
      });
      isc.confirm("test", "answer.setContents(value ? 'OK' : 'Cancel')", {"useBackMask":true});
      I tried to execute my code in this form http://www.smartclient.com/docs/9.1/...r.html#dialogs

      Greetings Benedikt
      Last edited by BenediktK; 10 Oct 2014, 11:46.

      Comment


        #4
        How about just calling isc.Dialog.addProperties({useBackmask:true});

        Regards
        Isomorphic Software

        Comment


          #5
          Hi,

          I add the line and tried to execute the following code, but the change has no effect.

          Greetings

          Code:
          isc.Dialog.addProperties({useBackmask:true});
          
          isc.HLayout.create({
              width: "40%",
              height: "100%",
              members: [
                  isc.HTMLPane.create({
          	    width:"100%", 
                      height:"100%",    
                      contentsType:"page",
                      contentsURL:"http://westbus.at/sites/default/files/presse/testpdf.pdf"
                      })
                  ]
          });
          
          isc.confirm("test", "answer.setContents(value ? 'OK' : 'Cancel')");

          Comment


            #6
            Most likely the shared prompt/confirm dialog has already been created when you're setting the property.
            Try executing the call to set 'useBackMask' to true on dialogs at the top of your app (or immediately after loading SmartClient in the bootstrap, or similar)

            You can also verify whether the backmask is actually showing for the confirmation dialog by evaluating isc_globalWarn.useBackMask or checking the peers array of the globalWarn dialog for a backmask when the dialog is showing.

            Regards
            Isomorphic Software

            Comment


              #7
              Hi Isomorphic,

              I tried to set 'useBackMask' at the top of my app, but this change has also no effect.
              I checked the isc_globalWarn.useBackMask, it is set to 'false'. Where can I find the peers array?
              Please check my example above and send me a working example.

              Greetings Benedikt

              Comment


                #8
                If you create a new .isc suffixed file with the following content:
                Code:
                <script>
                isc.Dialog.addProperties({useBackMask:true});
                isc.HLayout.create({
                    width: "40%",
                    height: "100%",
                    members: [
                        isc.HTMLPane.create({
                	    width:"100%", 
                            height:"100%",    
                            contentsType:"page",
                            contentsURL:"http://westbus.at/sites/default/files/presse/testpdf.pdf"
                            })
                        ]
                });
                
                isc.confirm("test", "answer.setContents(value ? 'OK' : 'Cancel')");
                </script>
                This works for us - the confirmation dialog shows above the htmlPane as it should.

                Note: A *.isc suffixed file when running the SmartClient server is the same as a .jsp with the loadISC tag embedded in it -- basically an HTML page which loads the SmartClient libraries. You could also save the above in an HTML file and add the standard html tags (doctype, <HTML>, <head>, <script src=... tags to load the libraries and skin, and <body> tag) and achieve the same result.

                Regards
                Isomorphic Software

                Comment


                  #9
                  This works for me too, thanks

                  Greetings Benedikt

                  Comment

                  Working...
                  X