[Logo] Enterprise Client Community
  [Search] Search   [Recent Topics] Recent Topics   [Members]  Member Listing   [Groups] Back to home page 
[Register] Register / 
[Login] Login 
iframe zoom function  XML
Forum Index -> Development
Author Message
kklasen

Power User

Joined: 19/11/2020 08:33:30
Messages: 66
Offline

Hello Björn,

I have a question is it possible to set the IFRAMINCLUDE die auto zoom? Because I us it to display different formats. Like PDf, image & text.

Something like cover/ contain in t:image tool or is the a tool how fits better?

Thank you for your expertise!

Best regards
Klas
[Thumb - FireFoxPictureZoom 2023-04-26 111622.jpg]
 Filename FireFoxPictureZoom 2023-04-26 111622.jpg [Disk] Download
 Description as it should be
 Filesize 60 Kbytes
 Downloaded:  88 time(s)

[Thumb - EdgePictureNOZoom 2023-04-26 111511.jpg]
 Filename EdgePictureNOZoom 2023-04-26 111511.jpg [Disk] Download
 Description without zoom, you can't see the whole picture
 Filesize 80 Kbytes
 Downloaded:  74 time(s)

CaptainCasa

Power User
[Avatar]

Joined: 21/11/2007 12:23:06
Messages: 5510
Offline

Hi Klas,

of course you can set the BROWSER component (this is the iframe-opener) into a SCALEPANE and then zoom it.

Buit auto-zoom is not possible because the iframe does not tell about the actual sized of its content.

Kind regards! Björn

Björn Müller, CaptainCasa GmbH
kklasen

Power User

Joined: 19/11/2020 08:33:30
Messages: 66
Offline

Thank you! But it didn’t solve my problem. I will look for a work around.

Best regards
Klas
kklasen

Power User

Joined: 19/11/2020 08:33:30
Messages: 66
Offline

Hello Björn,

Me again 😉

Does the fileuploadbutton give out information about data type? Because I want to make something like an everything reader, Which the tool changes when file type change. It should be a replacement for the browser tool.

Best regards
Klas

CaptainCasa

Power User
[Avatar]

Joined: 21/11/2007 12:23:06
Messages: 5510
Offline

Hi Klas,

me again ;-)

Yes the BaseActionEventUpload contains a property getClientFileName() - and you can then interpret the extension of the file name.

Kind regards! Björn

PS: please not: FILEUPLOADBUTTON only should be used for "small" files. "Small" meaning < 1MB. Otherwise use the FILEUPLOADBUTTONASYNCHRONOUS component, which does not embed the upload the file into the normal CC-roundtrip data exchange but which opens up a parallel connection to transfer the file - and significantly reduces the amount of memory during upload processing. Please check: https://www.captaincasa.com/docu/eclnt_risc_developersguide/all.html#fileupload

Björn Müller, CaptainCasa GmbH
kklasen

Power User

Joined: 19/11/2020 08:33:30
Messages: 66
Offline


Thank you!
I’ll give it a try

kklasen

Power User

Joined: 19/11/2020 08:33:30
Messages: 66
Offline

hi,

a new week a new Question.

Is the BaseActionEventUpload.getClientFileName() also available for the FILEUPLOADBUTTONASYNCHRONOUS component or is there a different class for asynchronous upload?

thanks

Best regards
Klas

CaptainCasa

Power User
[Avatar]

Joined: 21/11/2007 12:23:06
Messages: 5510
Offline

Hi,

the information comes through the UploadContent implementation.

Code:
     public class MyUploadContent extends DefaultUploadContent
     {
         public void beginPassing()
         {
             m_content = "Upload started.\n";
         }
         public void passClientFile(String fileName, byte[] bytes)
         {
             m_content += "File was passed: client name " + fileName + ", length " + bytes.length +"\n";
         }
         public void endPassing()
         {
             m_content += "Upload ended.";
         }
     }
 


Demo in Demo Workplace: Components => File up/download => Asynchronous Upload

Kind regards! Björn

Björn Müller, CaptainCasa GmbH
 
Forum Index -> Development
Go to:   
Powered by JForum 2.1.6 © JForum Team