Hacker Read top | best | new | newcomments | leaders | about | bookmarklet login

Definitely, HTML has several tags to help work with external types. You can interface with java, vbscript, flash, pdf, etc. You could absolutely expose top level methods and invoke them in JS.


sort by: page size:

HTML has support for everything you listed without resorting to JavaScript. Maybe some sort of graphic editor for a special file type isn’t possible without JavaScript? But most things really have been thought of and incorporated into html.

Browsers support HTML and JS (and a few other things not relevant to this point).

Neither HTML or JS on its own will do what you're describing. HTML doesn't allow binding to a data source. JS doesn't allow you to write HTML declaratively. So, people build abstractions.

If an abstraction ever became popular enough and futureproof enough, there could be a case for supporting it natively. But I don't know of anything that currently exists and does what you're describing.


Does that work outside of JS?

HTML no, Javascript yes.

Javascript for front-end frameworks, and especially for tracking.


Would love to see the results on this one. I'd still think HTML would be a better option to go, rather than JS. Java Scrip delivers alot of options but isn't that flexible as HTML

If its all client side JS/HTML, yes.

Sure it's just HTML/JS. Anything that runs on the web could be added to it.

html+js?

HTML doesn't do anything for JS other than provide a way to create visual interfaces. It might be comparable to the role that `tkinter` plays for Python's stdlib, but HTML alone is emphatically not a standard library.

...and JavaScript. And HTML.

It just depends what layer of abstraction you think this stuff belongs on. Also, HTTP verbs don't require javascript.

Wouldn't that just be JavaScript?

Or HTML/JS.

That's actually false. You can do what javascript does on the front-end with web assembly.

Nevertheless, my point has gone right over your head if you have to ask a question like this.


Yes, but it's JS, it isn't vanilla HTML.

Then one might even use jQuery here and there. A bit more convenient than vanilla JS.

It is like that yes but more abstract because it uses some special HTML tags to make the JS calls.

There is a big downside though: weak error handling. It just assumes that your call will get a response.


Oh that's awesome. Will js work too?

non-dom based javascript, would be my first thought.
next

Legal | privacy