one more activity -pure web view

Would you like to see changes or additions to BASIC! This is place to make those requests.

one more activity -pure web view

Joined: January 20th, 2015, 6:46 am

June 13th, 2018, 9:24 pm #1

I had created github page .
Created android studio web view project and call this github page in it. Its running very well .
Same thing I cant do with basic . For that I have to do some program in it using basic link .
So i think if basic has one more activity for running html-javascript project without need .bas file. 
so people can just copy their all web files in data directory. and in main.bas file he should write only one line to call index.html file . no further coding will required to run href or any other things to run .
Benefits of this new activity. we can use whole javascript code with only one  line of coding in basic. 
Sanjay
Quote
Like
Share

Joined: November 21st, 2013, 7:00 pm

June 14th, 2018, 2:24 am #2

Why not just open the web page with a browser ?
What do you need Basic! for ?
- Failure is not an option. It is bundled with the software. -
Quote
Like
Share

Joined: January 20th, 2015, 6:46 am

June 14th, 2018, 5:15 am #3

I want to use javascript code. want to convert web app to native app with javascript. i.e. all html,css and java script in data folder. we can do many things with that. for example with turn.js i can create flip book. just create html,  
css and java script already available freely, just copy them in data folder 
one line code for basic to open html. 
App will be ready
Quote
Like
Share

Joined: July 10th, 2013, 9:11 am

June 14th, 2018, 12:50 pm #4

Hi Sanjay

What is your way back from WebView to Basic?

Gregor
Quote
Like
Share

Joined: November 21st, 2013, 7:00 pm

June 15th, 2018, 4:34 am #5

sanjay jain wrote: I want to use javascript code. want to convert web app to native app...
App will be ready
Nothing to do with Basic!
You're really talking about APK makers, of which there must be many out there that can just open a web page without Basic.
I can understand the convenience though.
- Failure is not an option. It is bundled with the software. -
Quote
Like
Share

Joined: September 29th, 2017, 11:23 am

June 15th, 2018, 6:15 am #6

humpty wrote:
June 15th, 2018, 4:34 am
Nothing to do with Basic!
Indeed! BASIC remains an easy way to code stuff. Let's assume someone wants to write some BASIC code to interact with the user and then open a suitable web page. Why not?

But I don't understand Sanjay's initial question. An enhancement to BASIC to obviate .BAS files? Wouldn't that just be a bookmark to a web page on your home screen? Now you not only have no source file but no interpreter!
Quote
Like
Share

Joined: January 20th, 2015, 6:46 am

June 15th, 2018, 7:41 am #7

English is not my native language. I am unable to explain my thought properly.
In 2011 basic was introduce. They have provided html open and browse both comand. why ?
Why not giving facility to run javascript ? may be that is not available at that time.

Android  developed for  java coading
Why they have given facility to use javascript (via web view)  and now c++  too. Because more and more people can use  what they learn earlier.

Regard 
Sanjay
Quote
Like
Share

Joined: September 29th, 2017, 11:23 am

June 15th, 2018, 10:50 am #8

Why not give the facility to run JavaScript? is because RFO-BASIC! is a BASIC interpreter. You have the facility to run JavaScript: Simply write a web page that contains JavaScript! You can invoke it from RFO-BASIC! if you like; you can also invoke it without BASIC.

The BROWSE statement is another way to achieve HTML.LOAD.URL, which can also be applied to things other than URLs.

I think the reason for allowing Java and C++ is that a big company has competing engineering departments, and each has customers who like its approach.

It would be nice to have a programming environment where we define user interface in HTML and CSS, and behavior in JavaScript. One problem is that JavaScript denies the programmer full access to the file system, which you would want if everything resided in the same box.
Quote
Like
Share