✨ [Free] NoFileHtml - view html without files

  1. Description

A quick and simple one. I am aware that this functionality should be returning with release n188, but for those that cannot wait and need to build html on the fly, here it is.

Working with the webviewer, you feed the extension block with your html, and the output is displayed

  • Latest version : 1.1
  • Tested : tested on App inventor 2 (n187d), in companion (2.61u) on Android 10.
  • Released : 2021-10-24T23:00:00Z
  • Last updated : 2021-10-24T23:00:00Z
  • Built : using the RUSH Extension Builder by @shreyash
  1. Blocks

component_method

  1. Usage

image

Note: please ensure that you remove any/all html comments

<!-- ... -->

and javascript comments

// comment

from the html, the AI2 text block does not like these...

  1. Files
    AIX: NoFileHTML

  2. Changelog

  • 1.1 update to provide for use on Kodular (webviewer file access)

Enjoy :smiley: , and all feedback and comments welcome.

Available for use in any MIT AppInventor projects or competitions

#####################################################################
This work by TIMAI2 is licensed under a
Creative Commons Attribution-ShareAlike 4.0 Unported License with attribution.
Please use name = TIMAI2 and link to this source page when giving credit.
#####################################################################

Note: this extension may not / will probably not work if your html content contains html <!--> or javascript // comments.

Note: you can also do this using my BasesLoaded extension and encode the html content to base64

27 Likes

nice extension :grinning::grinning::grinning:

1 Like

After I thought for a long time I just realized that extension is very useful :heart_eyes:

1 Like

Its a cool one, Now I can make wonders with it...
:wink:

1 Like

Wow superb extension @TIMAI2

1 Like

:rofl::rofl::rofl::rofl::rofl:

1 Like

Thank you friend, very useful extension! :handshake:

Amazing Extension @TIMAI2 it will help me a lot in my project.
but currently i am facing 2 issues.

  1. When the code is loaded the elements are not responding. for eg, in my case there is a button, but nothing happens when i click it. (There is no issue in code its working) the Start Quiz Button.

  1. Getting compiling error, i am getting this error after adding your extension.

My blocks

Other extension i am using, incase you need it.

Which extension are you using, basesLoaded or noFileHTML ? (or both...) to run your html.

In both cases, they will only have access to fully qualified urls for any resources.

Are you using plain javascript or jquery or another framework?

What do you expect to happen when you press the Start Quiz button in your html ?

On testing, it appears that the basesLoaded extension has a problem with compiling, i will need to investigate that! Meanwhile, here is a simple base64 only extension you can use:
uk.co.metricrat.justbase64.aix (4.0 KB)

1 Like

The code is made by one of my friend, according to him he is using plain js.

A another view will appear displaying rules.
I am attaching a video of how the code works.

Thank I will try it :slightly_smiling_face:

I am assuming that all these "views" are contained on the same single html page with the script code and css and all the answers are similarly contained ? The webviewer cannot handle local storage....

Yeah everything that need to make it work is in the code.

I guess without seeing the html file it will be difficult to advise further. You can always send it to me in a PM.

Sure, sending u the file

Ahh I can't DM you can u please DM :slightly_smiling_face:

1 Like

Done sent you a message.

1 Like

The solution here is to remove any/all html comments

<!-- ... -->

and javascript comments

// comment

from the html, and to use the NoFileHtml extension.

For some reason, the text block does not handle these well causing the webviewer to try to parse them as either html or javascript.

1 Like

Yeah right, Thanks for your support @TIMAI2 :hugs:

I like this extension Tim! Great job!

I required this so thanks :smiley:

25 posts were split to a new topic: Google Search with NoFileHtml extension

A post was merged into an existing topic: Google Search with NoFileHtml extension