It is currently Sun Dec 15, 2019 4:04 pm

All times are UTC + 1 hour




Post new topic Reply to topic  [ 48 posts ]  Go to page Previous  1, 2, 3, 4  Next
Author Message
 Post subject: Re: Embed JS Framework into PureBasic
PostPosted: Mon Aug 15, 2016 9:50 am 
Offline
Addict
Addict
User avatar

Joined: Sat Oct 09, 2010 3:47 am
Posts: 1597
Updated:
- added 1 Flot Chart example
-- Flot_Series.pb

Image

_________________

I will be unreachable from the forum for an indefinite period; downloads moved to My PureBasic Stuff.
_________________


Top
 Profile  
Reply with quote  
 Post subject: Re: Embed JS Framework into PureBasic
PostPosted: Wed Aug 31, 2016 7:51 pm 
Offline
Addict
Addict
User avatar

Joined: Sat Oct 09, 2010 3:47 am
Posts: 1597
Updated:
- added another framework: Data-Driven Documents
-- Includes\d3js_stackedbars.pbi
-- Includes\D3JS\d3.v3.min.js, d3.stackedbars.js, stackedbars.css
- added 1 example
-- D3JS_StackedBars.pb

This framework was added based on a question asked here.

In order for this example to be useful the JavaScript "test data generator" function (bumpLayer) in the file Includes\D3JS\d3.stackedbars.js would need to be replaced with user-defined data.

_________________

I will be unreachable from the forum for an indefinite period; downloads moved to My PureBasic Stuff.
_________________


Last edited by JHPJHP on Fri Sep 02, 2016 6:32 am, edited 1 time in total.

Top
 Profile  
Reply with quote  
 Post subject: Re: Embed JS Framework into PureBasic
PostPosted: Fri Sep 02, 2016 5:16 am 
Offline
Addict
Addict
User avatar

Joined: Sat Oct 09, 2010 3:47 am
Posts: 1597
Updated the example D3JS_StackedBars.pb, merging the JS file d3.stackedbars.js (removed) for better control over the various parameters.
- various changes were made to more easily replace the "test data generator" function (previously bumpLayer now getValues) with a user-defined array

NB*: After modifying the "Layers / Samples" SpinGadget values press the "Generate Random Data" ButtonGadget to reflect the new settings.

Image

_________________

I will be unreachable from the forum for an indefinite period; downloads moved to My PureBasic Stuff.
_________________


Top
 Profile  
Reply with quote  
 Post subject: Re: Embed JS Framework into PureBasic
PostPosted: Tue Sep 13, 2016 2:13 pm 
Offline
Addict
Addict
User avatar

Joined: Sat Feb 19, 2005 2:46 pm
Posts: 1797
Location: Pas-de-Calais, France
Hi JHPJHP, the download link seems broken...


Top
 Profile  
Reply with quote  
 Post subject: Re: Embed JS Framework into PureBasic
PostPosted: Tue Sep 13, 2016 3:03 pm 
Offline
Moderator
Moderator
User avatar

Joined: Thu Dec 31, 2009 11:05 pm
Posts: 1109
Location: Berlin (Germany)
http://www.rsbasic.de/backups/ :arrow: http://www.rsbasic.de/backupprogramme/HTML52.zip

_________________
ImageImageImageImage Image


Top
 Profile  
Reply with quote  
 Post subject: Re: Embed JS Framework into PureBasic
PostPosted: Tue Sep 13, 2016 3:39 pm 
Offline
Addict
Addict
User avatar

Joined: Sat Feb 19, 2005 2:46 pm
Posts: 1797
Location: Pas-de-Calais, France
Thank you ^^


Top
 Profile  
Reply with quote  
 Post subject: Re: Embed JS Framework into PureBasic
PostPosted: Tue Sep 13, 2016 9:38 pm 
Offline
Addict
Addict
User avatar

Joined: Sat Oct 09, 2010 3:47 am
Posts: 1597
Hi djes,

Sorry for the inconvenience, it seems that all my links are corrupted; I think it happened when I tried reorganizing my Dropbox account.

Until I have time to correct the problem RSBasic is generously providing a backup location to many PureBasic downloads.

_________________

I will be unreachable from the forum for an indefinite period; downloads moved to My PureBasic Stuff.
_________________


Last edited by JHPJHP on Wed Sep 14, 2016 10:58 am, edited 1 time in total.

Top
 Profile  
Reply with quote  
 Post subject: Re: Embed JS Framework into PureBasic
PostPosted: Tue Sep 13, 2016 10:19 pm 
Offline
Addict
Addict
User avatar

Joined: Sat Feb 19, 2005 2:46 pm
Posts: 1797
Location: Pas-de-Calais, France
No problem, thank you for all your good job !


Top
 Profile  
Reply with quote  
 Post subject: Re: Embed JS Framework into PureBasic
PostPosted: Wed Sep 14, 2016 8:04 pm 
Offline
Addict
Addict
User avatar

Joined: Sat Oct 09, 2010 3:47 am
Posts: 1597
Updated:
- removed 1 example: Geolocation.pb (geolocation.pbi)
- updated 3 examples: VideoJS_Player.pb, VideoPlayer.pb, VideoPlayer_Custom.pb

NB*: All download links have now been fixed.

_________________

I will be unreachable from the forum for an indefinite period; downloads moved to My PureBasic Stuff.
_________________


Top
 Profile  
Reply with quote  
 Post subject: Re: Embed JS Framework into PureBasic
PostPosted: Thu Apr 27, 2017 7:43 pm 
Offline
Addict
Addict
User avatar

Joined: Sat Oct 09, 2010 3:47 am
Posts: 1597
Updated:
- added a Linux version of the download
- added an OSX version of the download

All downloads are available from the first post.

Problems with the following Linux and OSX examples:
- Pending/AS3_Webcam.pb: Missing Plug-in [ Linux & OSX ]
- Pending/PDFJS_Viewer.pb: Open File (icon) not working [ OSX ]
- Pending/TurnJS_Double.pb: Unknown issue, only 1 page returned [ Linux & OSX ]
- Pending/VideoJS_Player.pb: Problem with videoPlayer element from Includes/videojs_player.pbi [ OSX ]
- Pending/Video_Player.pb: Problem with videoPlayer element from Includes/videoplayer.pbi [ OSX ]
- Pending/VideoPlayer_Custom.pb: Problem with videoPlayer element from Includes/videoplayer_custom.pbi [ OSX ]

NB*: Various OSX examples display a flashing screen when redrawn; see D3JS_StackedBars.pb.

NOTE:
1. Move the "Pending" examples to the main folder before executing.
2. Enabled Debug mode before executing the video examples to more easily cancel the process.
3. Helpful sites with various webkit preferences:
-- https://developer.android.com/reference/android/webkit/WebSettings.html
-- https://github.com/adobe/webkit/blob/master/Source/WebKit/mac/WebView/WebPreferences.h
-- https://opensource.apple.com/source/WebKit/WebKit-6531.9/mac/WebView/
Code:
WebkitSettings = webkit_web_settings_new()
g_object_set(WebkitSettings, "enable-developer-extras", #True, #Null)
g_object_set(WebkitSettings, "enable-java-applet", #True, #Null)
g_object_set(WebkitSettings, "enable-plugins", #True, #Null)
g_object_set(WebkitSettings, "enable-scripts", #True, #Null)
g_object_set(WebkitSettings, "enable-file-access-from-file-uris", #True, #Null)
g_object_set(WebkitSettings, "enable-private-browsing", #True, #Null)
g_object_set(WebkitSettings, "enable-spell-checking", #True, #Null)
g_object_set(WebkitSettings, "enable-universal-access-from-file-uris", #True, #Null)
g_object_set(WebkitSettings, "enable-dns-prefetching", #True, #Null)
g_object_set(WebkitSettings, "enable-webaudio", #True, #Null)
g_object_set(WebkitSettings, "enable-webgl", #True, #Null)
g_object_set(WebkitSettings, "enable-fullscreen", #True, #Null)
g_object_set(WebkitSettings, "enable-xss-auditor", #True, #Null)
g_object_set(WebkitSettings, "javascript-can-access-clipboard", #True, #Null)
g_object_set(WebkitSettings, "javascript-can-open-windows-automatically", #True, #Null)
webkit_web_view_set_settings(GadgetID(0), WebkitSettings)

_________________

I will be unreachable from the forum for an indefinite period; downloads moved to My PureBasic Stuff.
_________________


Top
 Profile  
Reply with quote  
 Post subject: Re: Embed JS Framework into PureBasic
PostPosted: Wed Jun 21, 2017 2:43 pm 
Offline
Enthusiast
Enthusiast

Joined: Fri Jul 14, 2006 8:53 pm
Posts: 654
Location: Malta
do these links actually work? I get content unavailable when I click those links

_________________
I may not help with your coding
Just ask about mental issues!

http://www.lulu.com/spotlight/kingwolf
http://www.sen3.net


Top
 Profile  
Reply with quote  
 Post subject: Re: Embed JS Framework into PureBasic
PostPosted: Thu Jun 22, 2017 1:05 am 
Offline
Enthusiast
Enthusiast

Joined: Fri Jun 01, 2012 12:20 am
Posts: 140
It seems jhpjhp is on vacations and his onedrive is down

Does anyone have backup of their marvels?


Top
 Profile  
Reply with quote  
 Post subject: Re: Embed JS into PureBasic
PostPosted: Sun Jul 23, 2017 12:37 pm 
Offline
Addict
Addict
User avatar

Joined: Thu Jun 07, 2007 3:25 pm
Posts: 3718
Location: Berlin, Germany
Hi JHPJHP,

I am interested in this project, and I tried to download the ZIP archive for Windows from the download link in the first post of this thread, but to no avail. I've tried several times, last week and today.

The start always is promising: Firefox (on Windows 10) opens a URL https://onedrive.live.com/?authkey=... and I see a symbol of a ZIP folder with the caption "Embed_JS.zip". Up to about 60% of the download, it seems to work fine, then suddenly the download ends with Firefox' error message "Embed_JS.zip - Failed". It's always the same.

Since there is no general problem with my internet connection, I don't know what the problem is. Any idea how I can get your file? I am rather curious about looking into it. :-)

//Edit: People told me via PM (thank you!) that they can download the file. So there seems to be a problem on my side. :-(
BTW, when using MS Edge (on Windows 10) instead of Firefox, I encounter exactly the same problem.
Finally, the download was successful with Chrome on my Android tablet. :-)

_________________
Please excuse my flawed English. My native language is PureBasic.
Search
RSBasic's backups


Top
 Profile  
Reply with quote  
 Post subject: Re: Embed JS into PureBasic
PostPosted: Sun Jul 23, 2017 9:37 pm 
Offline
Addict
Addict
User avatar

Joined: Sat Oct 09, 2010 3:47 am
Posts: 1597
Hi kinglestat, acreis, Little John,

Sorry about the problems with downloading, I am not sure what the issues might have been; first Drop Box now OneDrive :?:

I have started a website. When I can put more time into completing it, I will probably move all my download links there.

Thank you for the letting me know about the problems.

_________________

I will be unreachable from the forum for an indefinite period; downloads moved to My PureBasic Stuff.
_________________


Top
 Profile  
Reply with quote  
 Post subject: Re: Embed JS into PureBasic
PostPosted: Sat May 25, 2019 12:34 am 
Offline
Addict
Addict
User avatar

Joined: Sat Oct 09, 2010 3:47 am
Posts: 1597
Updated (Windows package):
- PDFJS to the latest version
- some minor code changes

See a demo of the PDF viewer here; works just the same in a PureBasic window, from full screen to presentation mode, etc.

PDFJS
Due to the restrictions with Internet Explorer 11 and Cross-Origin Resource Sharing (CORS), this example can only be executed through a proxy server.
Install Internet Information Services (IIS), then copy the folder includes\PDFJS to C:\inetpub\wwwroot\PDFJS; no configuration required.

Having a PDF load on open can be accomplished by adding a default value in the file /web/viewer.js @ LINE 4353.
Code:
defaultUrl: {
  value: '',
  kind: OptionKind.VIEWER
}

_________________

I will be unreachable from the forum for an indefinite period; downloads moved to My PureBasic Stuff.
_________________


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 48 posts ]  Go to page Previous  1, 2, 3, 4  Next

All times are UTC + 1 hour


Who is online

Users browsing this forum: mrv2k and 4 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  

 


Powered by phpBB © 2008 phpBB Group
subSilver+ theme by Canver Software, sponsor Sanal Modifiye