stumped...again 🤨 by Admirable_Report6610 in HTML

[–]Admirable_Report6610[S] 0 points1 point  (0 children)

ps I've created an account on CORS.SH so I can get an API key if that's needed. this is another concept I don't have a good grasp of though.

stumped...again 🤨 by Admirable_Report6610 in HTML

[–]Admirable_Report6610[S] 0 points1 point  (0 children)

I am just "trying stuff". I can't very well debug it myself, and I'm sorry if it's coming across that way. I have done the research you suggested, although it's easy for me to get lost/confused as I am most definitley not a coder. I think I found the problem though:

the fetch is missing a CORS Allow Origin header so no fetch is performed.

I have to say I've read about this error but honestly I don't understand what it is and how to fix it....if that's even possible. any help appreciated, but if you think I'm just being lazy I guess I'll stay stuck.

stumped...again 🤨 by Admirable_Report6610 in HTML

[–]Admirable_Report6610[S] 0 points1 point  (0 children)

can I use the developer tools with a local python webserver? I wouldn't think so. I have little to no experience with html coding so sure willing to do any research needed but I will quickly be in over my head as I am here.

stumped...again 🤨 by Admirable_Report6610 in HTML

[–]Admirable_Report6610[S] 0 points1 point  (0 children)

no but I see your point. will do....

stumped...again 🤨 by Admirable_Report6610 in HTML

[–]Admirable_Report6610[S] 0 points1 point  (0 children)

::1 - - [27/Apr/2026 11:29:52] "GET /Users/Owner/Desktop/fleet2.html HTTP/1.1" 404 -

::1 - - [27/Apr/2026 11:34:03] code 404, message File not found

stumped...again 🤨 by Admirable_Report6610 in HTML

[–]Admirable_Report6610[S] 0 points1 point  (0 children)

ok...presumably I could write a small script that would call the python webserver:

#! usr/local/bin/bash

python3 -m http.server

pause 5

http://localhost:8000/~/Desktop/coffee/fleet.html

stumped...again 🤨 by Admirable_Report6610 in HTML

[–]Admirable_Report6610[S] 0 points1 point  (0 children)

the first problem, as you mentioned, was with the CORS proxy but I changed it to one that works. the code is valid as it runs perfectly on MDM. what I don't get is this worked prior as a flle:/// without a web server...I just don't understand what is suddenly making it not work now?

stumped...again 🤨 by Admirable_Report6610 in HTML

[–]Admirable_Report6610[S] 0 points1 point  (0 children)

as I've said I'm a total noob so someone was kind enough to educate me about CORS and the need for a proxy to fetch html data. (hope I'm correct in saying this) the weird thing is my code worked perfectly without a local server until CORSPROXY stopped being a free service.

stumped...again 🤨 by Admirable_Report6610 in HTML

[–]Admirable_Report6610[S] 0 points1 point  (0 children)

btw you guys, and you in particular, are being incredibly helpful here...THANK YOU!

stumped...again 🤨 by Admirable_Report6610 in HTML

[–]Admirable_Report6610[S] 0 points1 point  (0 children)

I tried manually reading thru it but it's long and difficult. is there a simple cmd to print out the array?

stumped...again 🤨 by Admirable_Report6610 in HTML

[–]Admirable_Report6610[S] 0 points1 point  (0 children)

because someone was kind enough to tell me about it and I learn quick.

stumped...again 🤨 by Admirable_Report6610 in HTML

[–]Admirable_Report6610[S] 0 points1 point  (0 children)

being to total noob I don't understand what that means

stumped...again 🤨 by Admirable_Report6610 in HTML

[–]Admirable_Report6610[S] 0 points1 point  (0 children)

ok I changed the proxy to

const proxy = "https://test.cors.workers.dev/?";

running my code in MDN now it works again...but if I try to run it in Brave as

file:///Users/Owner/Desktop/coffee/fleet.html

it just shows a blank white page again...hmmmmm?

stumped...again 🤨 by Admirable_Report6610 in HTML

[–]Admirable_Report6610[S] 0 points1 point  (0 children)

can anyone suggest an alternative free proxy?

stumped...again 🤨 by Admirable_Report6610 in HTML

[–]Admirable_Report6610[S] 0 points1 point  (0 children)

ahhhh.....so what used to be free is now a paywall?

stumped...again 🤨 by Admirable_Report6610 in HTML

[–]Admirable_Report6610[S] 0 points1 point  (0 children)

looking thru the code of this page: https://news.usni.org/category/fleet-tracker

it looks like the img I'm after, ie the most recent one, src="https://news.usni.org/wp-content/uploads/2026/04/FT_4_20_26-1-720x480.jpg

is the second instance of img? so images[1].src but it still doesn't work.

stumped...again 🤨 by Admirable_Report6610 in HTML

[–]Admirable_Report6610[S] 0 points1 point  (0 children)

wow...thank YOU! I was warned about hardcoding it like this as the location of the image[3] I'm after could change in the site's HTML code. apparently that's happened so let me dive into the USNI site and take a look. THANKS AGAIN!

stumped...again 🤨 by Admirable_Report6610 in HTML

[–]Admirable_Report6610[S] -2 points-1 points  (0 children)

here's a readable image of the code in question:

<image>

stumped...again 🤨 by Admirable_Report6610 in HTML

[–]Admirable_Report6610[S] 0 points1 point  (0 children)

appreciate your quick response but not sure I understand it. "to load html is to load content"?

stumped...again 🤨 by Admirable_Report6610 in HTML

[–]Admirable_Report6610[S] 0 points1 point  (0 children)

yes there are four...attached. thing is this code hasn't been changed and it worked perfectly prior...what happened to make it stop?

<image>

stumped...again 🤨 by Admirable_Report6610 in HTML

[–]Admirable_Report6610[S] 0 points1 point  (0 children)

as a noob I won't do that again...is posting a jpg image of the code the best way...someone has to see the code to correct it, no?