+ Post New Thread
Results 1 to 8 of 8
Home Access Plus+ Thread, Open Docs in browser? in Projects:; Hi! First and foremost this is an excellent application you have here Nickbro, thank you for sharing. I came across ...
  1. #1

    Join Date
    Oct 2013
    Posts
    1
    Thank Post
    0
    Thanked 0 Times in 0 Posts
    Rep Power
    0

    Open Docs in browser?

    Hi!

    First and foremost this is an excellent application you have here Nickbro, thank you for sharing. I came across and installed Home Access + 9.6 without issues and is apparently working fine. My only question is if open in browser or native application is supported? I get cut, copy, delete, etc. but no open in top menu or right-click for office/pdf file types. I do see preview as well but having the ability to open directly in native app would be nice without having to download first

    So far I'm only using "My Files" to mount %homedir and other file shares on login.

    Thank you.

    Ishy
    Last edited by haragan; 29th October 2013 at 03:42 PM.

  2. #2
    nickbro's Avatar
    Join Date
    Jul 2010
    Location
    Gilwern, Wales
    Posts
    3,520
    Thank Post
    37
    Thanked 501 Times in 432 Posts
    Rep Power
    113
    It's by design, it stops users from Opening the files, they need to download the files (and there are more alerts telling them to save the file if they want to edit them). I've made HTML viewers for PDF/TXT/DOCX/XLS/Picture documents which is what the Open option does.

  3. #3

    Join Date
    Jun 2011
    Posts
    51
    Thank Post
    3
    Thanked 0 Times in 0 Posts
    Rep Power
    0
    Hi Nick. I was just looking for an option in HAP+ to view/open PDF files in browser without downloading them. You said that you've made a file viewer but I can't see "Open option" or am I missing something? My HAP+ version 9.6.929.1500.

    Thanks for your hard work.

  4. #4
    nickbro's Avatar
    Join Date
    Jul 2010
    Location
    Gilwern, Wales
    Posts
    3,520
    Thank Post
    37
    Thanked 501 Times in 432 Posts
    Rep Power
    113
    You'll need to download them, PDF's are an odd file format as you cannot guarantee that the user has the browser plugin

  5. #5


    Join Date
    Feb 2007
    Location
    51.403651, -0.515458
    Posts
    8,894
    Thank Post
    226
    Thanked 2,674 Times in 1,971 Posts
    Rep Power
    786
    Future versions of Chrome will default to opening PDFs in the browser.

    https://plus.google.com/100132233764...ts/VypqmrfQGaW

    Firefox also comes with a built-in PDF viewer (PDF.js).

  6. #6

    Join Date
    Jun 2011
    Posts
    51
    Thank Post
    3
    Thanked 0 Times in 0 Posts
    Rep Power
    0
    Thanks Guys. I don't think I explained it too well. I need users to view the files but not download them (it's one of those "data protection" things). So, I noticed that if I restrict the user to "read only", the only thing they see is "Download" option but if they "right click" and "preview" on "Word" document it opens in a nice looking window and that exactly what I am looking for. But is there a way of removing "Download" option for particular group of users?

    And sorry Ishy for hijacking your post.

  7. #7
    nickbro's Avatar
    Join Date
    Jul 2010
    Location
    Gilwern, Wales
    Posts
    3,520
    Thank Post
    37
    Thanked 501 Times in 432 Posts
    Rep Power
    113
    @happierlarry yes there is a way but it involves going into the code

    go to line 550

    add

    Code:
    if (download && curpath.match(/%somepath%/gi)) download = false;
    Replace %somepath% with the drive path to the folder (look at after the hash tag in the address bar (#))

  8. #8

    Join Date
    Jun 2011
    Posts
    51
    Thank Post
    3
    Thanked 0 Times in 0 Posts
    Rep Power
    0
    That worked but I think I'll have to think of some other way as they can still download the document with "right" click or "double" click.

    Thanks again.

SHARE:
+ Post New Thread

Similar Threads

  1. Desktop Shortcut GPO to open link in Chrome Browser
    By loci in forum Windows Server 2012
    Replies: 3
    Last Post: 9th September 2013, 09:07 PM
  2. [Javascript] Opening page in new browser window on page load, but only on first visit.
    By Thants in forum Web Development
    Replies: 0
    Last Post: 17th March 2011, 12:27 PM
  3. Replies: 4
    Last Post: 16th September 2010, 01:06 PM
  4. Opening Attachments in Outlook Web Access
    By wellscs in forum Windows
    Replies: 2
    Last Post: 23rd April 2008, 09:35 AM
  5. Open source in schools
    By kevinmcaleer in forum General Chat
    Replies: 14
    Last Post: 22nd December 2005, 08:52 PM

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •