Cruisers Forum
 

Go Back   Cruisers & Sailing Forums > Seamanship, Navigation & Boat Handling > OpenCPN
Cruiser Wiki Click Here to Login
Register Vendors FAQ Community Calendar Today's Posts Log in

Reply
  This discussion is proudly sponsored by:
Please support our sponsors and let them know you heard about their products on Cruisers Forums. Advertise Here
 
Thread Tools Search this Thread Rate Thread Display Modes
Old 03-08-2014, 14:15   #256
Registered User
 
rgleason's Avatar

Join Date: Mar 2012
Location: Boston, MA
Boat: 1981 Bristol 32 Sloop
Posts: 17,627
Images: 2
Re: OpenCPN Beta Version 3.3.1824 Released

Web based selection, download and install.

User Selection of items to install:


Html select fields with dropdown:
HTML Tutorial - Select
Html checkbox fields
HTML Tutorial - Checkboxes

Have a button on the bottom "Continue, download and install" which initiates the download and execution
of each item checked in sequential order.


Download

The code would be a little different than this, but similar. ( -Haven't figured it all out yet.)
How to trigger a file download when clicking an html button or javascript - Stack Overflow
best answer. You can trigger a download by using the new HTML5 download attribute.

<a href="path_to_file" download="proposed_file_name">Download</a>

Where :
path_to_file is either an absolute or relative path,
proposed_file_name the filename to save to (can be blank, then defaults to the actual filename).

HTML a download Attribute
Note:The download attribute is not supported in earlier versions ofIE, Safari or Opera.
Seems to work in my IE7 and Firefox current version.

HTML5 download Attribute
..and when the user clicks the link, the download attribute appears in the save dialog instead of the garbled mess that was there before. In this case, the file will be downloaded as expenses.pdf. The download attribute also triggers a force download, something that I used to do on the server side with PHP
How to execute the file once downloaded
Need to work on this a bit.

Any comments or suggestions would be appreciated.
rgleason is offline   Reply With Quote
Old 03-08-2014, 15:59   #257
Registered User
 
rgleason's Avatar

Join Date: Mar 2012
Location: Boston, MA
Boat: 1981 Bristol 32 Sloop
Posts: 17,627
Images: 2
Re: OpenCPN Beta Version 3.3.1824 Released

Please see this page for an example of Windows Install portion:
http://tgp-architects.com/Opencpn-Fi...tall-HTML.html

This is incomplete, with no formatting or CSS, and has not been validated.
I am unsure about proper security etc, if we can make this download and execute.
No experience with this part.

Html file is attached. Dowload, remove doc and load file in your browser to see.
Don't know if this is along the lines you are suggesting.
Attached Files
File Type: doc Install-HTML.html.doc (3.2 KB, 55 views)
rgleason is offline   Reply With Quote
Old 06-08-2014, 04:53   #258
Registered User
 
rgleason's Avatar

Join Date: Mar 2012
Location: Boston, MA
Boat: 1981 Bristol 32 Sloop
Posts: 17,627
Images: 2
Re: OpenCPN Beta Version 3.3.1824 Released

For installing User Selections of the various programs it appears we could use the mingw-get.exe XML based installer with the user selections being entered into an XML file, and then the XML file is used by the mingw-get.exe to download and execute in the correct order.

We would just have to modify the web base selections to become xml format and to save the xml file somewhere on the users machine? Then point the mingw-get program to that file somehow?

Since this is GNU software we can use it. I have not looked into this possibility very much but I think it might work.

http://sourceforge.net/projects/mingw/files/Installer/
Here is the description from the Readme.doc
Description
-----------

mingw-get is a tool to assist users in the management of MinGW and MSYS
software installations. Configured via an online XML database, which is
managed by the project maintainers, it offers a choice of graphical and
command line driven user interfaces facilitating selective download and
installation of packages provided by the project.

The XML database provides maintainers with a mechanism for the
specification of inter-package dependencies; this permits configuration
of any package, such that the end user may elect to install just that
specific package, leaving mingw-get to ensure that all dependencies will
be automatically satisfied at installation time.
rgleason is offline   Reply With Quote
Old 09-08-2014, 18:21   #259
Registered User
 
rgleason's Avatar

Join Date: Mar 2012
Location: Boston, MA
Boat: 1981 Bristol 32 Sloop
Posts: 17,627
Images: 2
Re: OpenCPN Beta Version 3.3.1824 Released

Modularized Packaging by Pavel
https://github.com/OpenCPN/OpenCPN/pull/151

Thankyou Pavel!
rgleason is offline   Reply With Quote
Reply

Tags
enc, lease, opencpn


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
OpenCPN Beta Version 3.1.814 Released bdbcat OpenCPN 185 14-09-2012 07:43
OpenCPN Beta Version 3.1.802 Released bdbcat OpenCPN 158 14-08-2012 10:07
OpenCPN Beta Version 3.1.714 Released bdbcat OpenCPN 91 01-08-2012 17:08

Advertise Here


All times are GMT -7. The time now is 21:06.


Google+
Powered by vBulletin® Version 3.8.8 Beta 1
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Social Knowledge Networks
Powered by vBulletin® Version 3.8.8 Beta 1
Copyright ©2000 - 2024, vBulletin Solutions, Inc.

ShowCase vBulletin Plugins by Drive Thru Online, Inc.