Hot answers tagged

13 votes
Accepted

Workbench (Eclipse version) HTML Documentation Build HTML issues

Update 10-2017: I noticed that they released an update of these tools, so some of these steps are outdated. I adjusted this answer to the newest release of Workbench 10.1.822. It has become somewhat ...
Frank Martin's user avatar
  • 1,145
13 votes
Accepted

How do I translate a list of English words into another language using an online translation service with Mathematica?

Since the Google Translate API requires authentication, a simple work around is to deploy as a web app a Google Apps Script that uses Google's ...
Rashid's user avatar
  • 1,523
12 votes

How do I translate a list of English words into another language using an online translation service with Mathematica?

...
Alexey Golyshev's user avatar
10 votes
Accepted

web scraping images

If you write an HTML img tag like this: <img src="url/to/image.jpg"> then the image will be downloaded directly upon page load. Some frontend developers ...
C. E.'s user avatar
  • 70.5k
9 votes
Accepted

Workbench 2 and 3 Documentation HTML Build Fails (Output file test failed)

Partial Solution Wolfram Workbench 2 and 3 are not able to launch the front end (Mathematica 10+) to create the final HTML. The solution is to use the new (Eclipse-plugin) version, downloadable from: ...
Frank Martin's user avatar
  • 1,145
9 votes

How to translate interactive graphics from Mathematica to standard HTML+SVG?

For the benefit of those who come across this old question, I have recently written a small open-source library called MathCell that replicates the behavior of Mathematica's ...
Paul Masson's user avatar
8 votes

Tooltip in a GeoGraphics isn't working when exported as an html file.... it worked some years ago. What gives?

Troubleshooting: Let me rename the OP's output as testorig. ...
Syed's user avatar
  • 49.3k
8 votes

Is it possible to build a small web site with vanilla Mathematica? How about a web server?

There is an exact solution you are looking for Pure Wolfram Engine (freeware!) Webserver with many features supported like WebSockets, GET/POST (but no TLS support so far). Template engine that let ...
Kirill Vasin's user avatar
  • 1,225
7 votes
Accepted

Incorporating photos into a Mathematica-made web page

I haven't seen a clear cut solution listed anywhere even though this question is quite old. Thus, I will post my solution here. The easiest solution is to use SVG format rather than to fiddle with ...
Tadashi Kikuno's user avatar
7 votes
Accepted

How to store data in a Mma SE question using hidden html-like markup?

Store data in question Tables could be left in plain text, with some encoding to remove CR and LF characters and other symbols. ...
rhermans's user avatar
  • 36.3k
7 votes
Accepted

Export Table with URL as HTML?

This is what it looks like for me when I try to export the grid as HTML: These are just the first couple of errors. It goes on like that. On the other hand, ...
C. E.'s user avatar
  • 70.5k
7 votes
Accepted

Import all data from a HTML table, including empty cells

To be clear, this isn't about data that is Missing[] (in which case, you would use DeleteMissing), but rather ...
Carl Lange's user avatar
  • 13.1k
6 votes
Accepted

How do I export a hyperlink?

Here is a workaround which works for me. On version 11.2, windows 7 ...
Nasser's user avatar
  • 142k
6 votes
Accepted

Getting data using webscraping (Obtaining links from search engine with redirect)

Let's step back and do something simpler: ...
rhermans's user avatar
  • 36.3k
6 votes
Accepted

XML, select several values

You can capture all consecutive events like this: ...
Sjoerd Smit's user avatar
  • 23.1k
5 votes
Accepted

Encode accents for html

I think HTML export in Mathematica is based on standards that date back to way before anyone had even heard of HTML5. E.g., the Import docs for HTML say it ...
Jens's user avatar
  • 97.1k
5 votes
Accepted

Do not skip empty table entries while importing data from HTML string?

HTML >> Import Elements So you can use "FullData" in place of "Data": ...
kglr's user avatar
  • 392k
5 votes

How to deploy a simple contact form with WebItems?

Here's the simple way using FormFunction with a custom FormLayoutFunction: ...
b3m2a1's user avatar
  • 46.8k
4 votes
Accepted

What is the Mathematica string expression to extract the innertext of an HTML element?

jSoupLink can be used if the markup looks like HTML. So even though you contend that your input is not HTML, the following still works: ...
C. E.'s user avatar
  • 70.5k
4 votes
Accepted

Passing the name of an url to ma

Hyperlink["description", "http://coco-m.web.lynchburg.edu/multiplicative calculus.pdf"] Evaluate the link, then click on description.
Fred Daniel Kline's user avatar
4 votes
Accepted

Void elements / self closing tags export to HTML

This problem appears to be localized to HTMLFragment, possibly because HTML specifications before HTML5 did not use self-closing tags like XHTML and XML always have....
C. E.'s user avatar
  • 70.5k
4 votes

Import from url question -- "Cannot import data as Graph6 format"

To make this work, you need to specify the format. There is no "XMLObject" format. "XMLObject" is an import element for the <...
Szabolcs's user avatar
  • 235k
4 votes
Accepted

Importing the text from paragraph elements within a specified division

You can use jsoupLink for this: ...
C. E.'s user avatar
  • 70.5k
4 votes
Accepted

How can I wrap groups of cells with HTML tags on export?

Looking through the code, I am not sure this is easily achievable using ConversionRules alone. Here's an attempt at modifying the conversion functions directly: <...
Lukas Lang's user avatar
  • 33.6k
3 votes

Export Table with URL as HTML?

This works as expected in version 9 (Windows 10 64bit): Export["test.html", Notebook[{Cell[BoxData[ToBoxes[exp]], "Output"]}], "HTML"] How the exported file ...
kglr's user avatar
  • 392k
3 votes
Accepted

Export as HTML: Render Manipulate as an image, not a CDF

You need to specify ManipulateOutput option: Export["...filename", EvaluationNotebook[], "ManipulateOutput" -> "PNG"] ...
Stitch's user avatar
  • 4,205
3 votes

How to translate interactive graphics from Mathematica to standard HTML+SVG?

There are a few possibilities, I can suggest from my side Either use WLJS Frontend, that supports exporting notebooks to an HTML or React component, however it is still very raw, has no direct ...
Kirill Vasin's user avatar
  • 1,225
3 votes

How to run a wolfram-server safely on a VPS as a backend of a webpage?

People at Wolfram just let me know about the hidden sandbox option. So, a safer way to run the Wolfram Engine as a back-end is: wolframscript -sandbox
Fortsaint's user avatar
  • 2,060
3 votes
Accepted

Using java-script code in Mathematica

I can load the page with Firefox, and get the element. But I don't think Wolfram have implemented extracting attributes via XPath. Using ...
flinty's user avatar
  • 24.9k
3 votes
Accepted

How to extract numbers from a html file?

To read the html file you may use: str = Import["d:/tmp/test.html"] This will return a string. Then you can user "StringCases" to pick out the ...
Daniel Huber's user avatar
  • 50.5k

Only top scored, non community-wiki answers of a minimum length are eligible