Web viewer urls?

You should use https:// - nearly all websites now use this (apart from MIT Appinventor :wink: )
You can use http:// but it will usually resolve to the https:// version of a website
Using www is just a part of a domain name (in fact it denotes a subdomain e.g.

www.google .co.uk - this will resolve to https://www.google.co.uk

My app inventor site also uses a subdomain:

ai2.metricrat.co.uk which resolves to https://ai2.metricrat.co.uk

Try removing the "ai2." and see what you get :wink:

I have had a look at your project, nothing seems to work as it should, the layout does not work, and none of the buttons display their text:

image

I suggest you backtrack, and get to a point where the simple basics of using the webviewer works, in conjunction with your list of bookmarks, then start to add the additional functions, testing each as you go. You may want to consider a spinner/listview or listpicker to replace all your buttons....

Thanks, @TIMAI2. I think I have fixed the bugs so far. See this version of it, where I have changed how the bookmarks list and the history list works. I have made it so that if the url in the bookmarks or in the history is in the list already, it won't add it again. This isn't ideal for the history part, (still workin'), but for now it isn't adding your URL every 5 sec. to the history list. I found that this made it lag after a while since there are like 20 duplicates of each URL when I used the previous URL. I still have runtime errors happen like this (screenshot below) every time I choose something from a list. I don't know why that is, but it happens. This is the newer updated version where everything except the history and bookmark list pickers and the history list works.


app-Browser UPDATE netminderno.9apps.aia (33.1 KB)
Any suggestions on how to make a history loop that works better or get rid of those runtime errors?
Thanks
-NetminderNo.9Apps

@TIMAI2 I also really enjoyed the metric rats website. I have some experience with Html. In 8th grade, I built a simple website through code.org. Is that your website? It is super useful!

just about everything in your app doesn't work then...?

No, just those three things.

I cannot even enter a url and go to it

Did you use the newer .aia file?
Put in https://google. That one works, and youtube should work too. Or copy and paste one.

If anyone could help to debug this code it would be helpful. Kinda has to do with lists. :grin:

As I previously suggested, simplify your project back to a simple web viewer, get that working, then build your bookmarks and history blocks on top of that.

Take some time to plan your app on paper, yes paper, including the logic steps you will need to take.

1 Like

Hello Fellow Coders,

I've been working on a basic web app, and have added things like incognito mode, bookmarks, and history. This is not the final version, but I'm kinda stuck here. I can't figure out how to get the bookmarks viewer and the history viewer to either delete the item or got to the URL. Help, please!
Here's the file-(below)Browser UPDATED.aia (32.8 KB)
And the screenshot of the blocks:


I am currently taking the Mobile CSP course on this, so if there is a unit I can refer to or a specific lesson, I would be glad if you would tell me. Thx!

Edits-
Ok, So I've messed around in the blocks editor a little more and made these changes-
Taken out the join-compare text blocks
Changed URLs to URL I get on google search
Added set.homeURL (Screen 1 initialize event handler) and store.homeURL blocks
And made the widths for the arrangements automatic.

Your link does not work for any one but you.

Export the .aia file and post it here instead.


Please export your project and post it here.

Thanks. I did not know.

@TIMAI2 and @ABG Could either of you take a look at this app? It would help a lot, since this is for the midterm project. XD Thx.

And here the updated blocks relevant to the issue-

Edit to above post- Here is the newer app. The bookmarks and the history listpickers still do not work properly when you choose your item. Everything else has either been simplified or fixed. .aia file- Browser UPDATE netminderno.9apps.aia (33.1 KB)
The blocks above are what's causing the problem.

How can a piece of text act as an index into a list?

@ABG Oh snap! That's where I went wrong. Thanks! Would the logic block still work like that as I have it set up? if get.choice = "delete Bookmark". The choice would be form the notifier block with buttons.

It is fixed!


Thank you to everyone who helped me out with this. @ABG and @TIMAI2 and @Taifun

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.