Artifacts Gallery Guilds Search Wiki Login Register

Welcome, Guest. Please login or register. - Thinking of joining?
Autumn in Year 5 - @891.61
Five Stars Random | Recent Posts | Guild Recents
News: inconvenience is counterculture :eyes: Guild Events: weekly zine theme 12: television

+  MelonLand Forum
|-+  Life & The Web
| |-+  ✁ ∙ Web Crafting
| | |-+  ☔︎ ∙ I need Help!
| | | |-+  Last.fm widget won't work on Nekoweb


« previous next »
Pages: [1] Print Embed
Author Topic: Last.fm widget won't work on Nekoweb  (Read 1681 times)
Memory
Guest

« on: Spring in Year 3 @684 » Embed

Oh hey hi

I'm having trouble with a widget i want to implement in my website, it's a widget that shows the last track i scrobbled with my Last.fm account (this one to be more precise), and i'm having trouble since it works excellent locally but it breaks when moving it to nekoweb

For context, here's how it should look


https://i.imgur.com/nWclVGE.png


And here's how it looks on nekoweb


https://i.imgur.com/huFpZie.png


I made sure that both files are exactly the same, both in the page i want to put it in as well as the iframe itself, is there something in nekoweb that blocks certain aspects of javascript that the widget needs?

Thank you in advance

Logged
Melooon
Hero Member ⚓︎
*****
View Profile WWWArt


So many stars!
⛺︎ My Room
SpaceHey: Friend Me!
StatusCafe: melon
iMood: Melonking
Itch.io: My Games
RSS: RSS

Guild Memberships:
Artifacts:
Wavy Shoulder-Length Hair with BangsTop HatBug!You're a Star!Flinstone VitaminI got robbed by Dan Q on Melonland!
« Reply #1 on: Spring in Year 3 @693 » Embed

With anything script related, its always a good idea to do Inspect on your page, open the console and reload the page - it'll show any JavaScript errors and those are always the first step in figuring out whats wrong with a script ^^

If you don't see any errors, check the network tab to see if the iframe is actually loading or if there are any connection errors!

If you see an error and don't understand it, post it here, good luck!  :4u:

Logged


everything lost will be recovered, when you drift into the arms of the undiscovered

Artifact Swap: black n cyan yappin kittayalien yappin kittayHave a chillpillMove it, football head!black n orange yappin kittayRed Tulip100 coinsLurby<3eyntivemds pet fishGreen partyhatPlankMaya's Magatama
Memory
Guest

« Reply #2 on: Spring in Year 3 @715 » Embed

its always a good idea to do Inspect on your page, open the console and reload the page

Just did that and seems like my hunch of Nekoweb blocking something in the script was right on the money

https://i.imgur.com/Nw5FpGI.png

<translation> Request of crossed origin failed: the policy of same origin doesn't allow to read the remote resource in [audioscrobbler link blah blah] (Reason: CORS request fail) </translation>

I'll probably ask in the discord later, but it seems that this widget needs something that Nekoweb doesn't like allowing :sad:

Logged
Melooon
Hero Member ⚓︎
*****
View Profile WWWArt


So many stars!
⛺︎ My Room
SpaceHey: Friend Me!
StatusCafe: melon
iMood: Melonking
Itch.io: My Games
RSS: RSS

Guild Memberships:
Artifacts:
Wavy Shoulder-Length Hair with BangsTop HatBug!You're a Star!Flinstone VitaminI got robbed by Dan Q on Melonland!
« Reply #3 on: Spring in Year 3 @734 » Embed

From the NekoWeb FAQ:
Quote
Can I get rid of CORS errors?

Donators can set custom HTTP headers. You can set Access-Control-Allow-Origin: * header to remove CORS errors.

So its the same as Neocities, you need to be a supporter to allow these kinds of scripts.

Logged


everything lost will be recovered, when you drift into the arms of the undiscovered

Artifact Swap: black n cyan yappin kittayalien yappin kittayHave a chillpillMove it, football head!black n orange yappin kittayRed Tulip100 coinsLurby<3eyntivemds pet fishGreen partyhatPlankMaya's Magatama
Pages: [1] Print Embed 
« previous next »
 

Melonking.Net © Always and ever was! SMF 2.0.19 | SMF © 2021 | Privacy Notice | Send Feedback | Supporters ♥ Forum Guide | Rules | RSS | WAP | Mobile


MelonLand Badges and Other Melon Sites!

MelonLand Project! Visit the MelonLand Forum! Support the Forum
Visit Melonking.Net! Visit the Gif Gallery! Pixel Sea TamaNOTchi
@000 Melon
Land
Editor Recent Edits Tenement Arcade Random Link Land → Forum Art Hub Chat Webring Want to Login or Join ? Web Craft Guide Graphic Catalogue Wiki Newsletters Image Stream
Passport Sites Asatte Add your site?
Zap!
Minecraft: Online
Join: craft.melonking.net