Jump to content

How to change Uni Javascript


david_navigator

Recommended Posts

I'm trying to allow the pdf viewer to support files that are remote to the UniGUI server.
Stack Overflow suggests that the HOSTED_VIEWER_ORIGINS array (in viewer.js) needs to list the remote domain, so I thought I'd do some experiments to see if that does in fact work. It doesn't, but I also discovered that if I change the error message strings in viewer.js file, they also don't change in the browser, so I'm thinking that the js file in  FMSoft\Framework\uniGUI\uni-1.90.0.1546\pdf.js\web isn't the correct one to edit and maybe I need to edit one somewhere else ?

 

Link to comment
Share on other sites

  • 3 months later...
On 3/23/2021 at 4:45 AM, mhmda said:

We use the help of google docs viewer to almost view any type of file without the need to install any app (MS Excel, Powerpoint etc....)


urlfrmAttached.HTML.Text:= '<iframe src="https://docs.google.com/viewerng/viewer?url='+
                           'https://www.mydomain.net'+AUrl+'&embedded=true" width="685px" height="540px" frameborder="0">'+
                           '</iframe>"';

 

image.thumb.png.e80847a80fa4592b60fc39ab2c58e407.png

 

As you can see in this example we view excel file without the need to install MS Excel in the remote machine.

Good,

So sorry to tell you that I can not ask google from my country,I am from china.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...