Javascript to Bubble not passing data

I’m am very new coding in general and i cannot find what im doing wrong here.

I made a globe and markers on it with a threejs library and now i want to pass the name of the marker to bubble using the Javascript to bubble plugin. I named the bubble function “bubble_fn_click” and i have a function in the javascript code in the HTML element called bubble_fn_click that returns the right values but for some reason i can get it to Bubble?

This is the project:

Would appreciate any help :slight_smile: :sweat_smile:

Hey @nickpaliys !

You could check out this example page done by @rpetribu.

I think the error comes from this piece
function bubble_fn_click (name){return name}
which should rather be : function bubble_fn_click (name)

Example :

Let me know if that helps :slight_smile:

1 Like

I believe the problem arose from your usage of HTML as an iFrame. As far as I know, it is not possible to push values from an iFrame to Bubble.

So I fixed the bug and here is a working example: Bubble-solutions | Bubble Editor

1 Like