question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Great Library!

We are trying to embed a json document and create a link. Is that possible?

We tried the following: <embed src="/abs/path.json" True" id="embedded_json"> <a href="embedded_json">Click!</a>

But that does not seem to do the trick. Any ideas?

Thank you!

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:11 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
werk24commented, Aug 23, 2021

Understood! The way default_url_fetcher is implemented, it needs the base_url in HTML(string="...", base_url="./template/index.html") to point to a file. I had it pointed to a directory.

To anyone that is reading this in the future. When you are using a custom url_fetcher it might be another reason why including the file might not work.

0reactions
werk24commented, Aug 24, 2021

Thank you!

Read more comments on GitHub >

github_iconTop Results From Across the Web

embed-json - npm
embedJson(htmlString, options);. Embed JSON data from referenced files into the given HTML string. When embedJson() encounters a script tag with ...
Read more >
Sending Embeds from JSON Data (2021) [Episode #81]
In this video we go over how to send an embed from JSON data. This is useful as a command or if you...
Read more >
Best practice for embedding arbitrary JSON in the DOM?
I'm just looking for the best way to do it. javascript · json · dom · embedding · decoupling · Share.
Read more >
Using embedded JSON style declarations | Maps JavaScript API
You can apply customized styling through an embedded JSON style declarations to the following: Default map. Map types that a user can switch...
Read more >
How to safely embed JSON object in HTML document
Is there no easy way to embed HTML safe JSON in an HTML document, and have it parsed by JavaScript engine at the...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found