Retrieve avatar via javascript

Hey guys,

The following code works in a wordpress site for me:

It displays an image as intended

This doesn’t work in an html element in bubble though.

Any ideas?



Anybody have clues as to why this javascript doesn’t work in an html element in bubble?

Try to update the Bubble editor page :slight_smile:

I feel like you are saying something obvious, and I’m totally missing the point. I must have be absent that day in school, or maybe I’m absent today!

This should help you

Thanks @Maxim for that. I tried pasting your code into an html element in bubble, but nothing comes up.

This warning is showing up in the chrome console when I use the original code ():

Failed to execute ‘write’ on ‘Document’: It isn’t possible to write into a document from an asynchronously-loaded external script unless it is explicitly opened.

Scratch that…I have figured it out. Just needed to check the box for iframe, and works fine.

This topic was automatically closed after 70 days. New replies are no longer allowed.