Avatar of Bruce Gust
Bruce GustFlag for United States of America

asked on 

What's "headless" programming?

I'm popping the hood on PhantomJS (http://phantomjs.org/). Great little program, but it involves some things that have me scratching my head in that I'm not very familiar with command line programming, although I'm resolved to become familiar with it.

Here's what I understand at this point...please tell me if I'm right:

PhantomJS - is defined as "...a headless WebKit scriptable with a JavaScript API."

"Headless... " - "A headless browser is a web browser without a graphical user interface. In other words it is a browser, a piece of software, that access web pages but doesn't show them to any human being. They're actually used to provide the content of web pages to other programs."

So, part of what constitutes the way in which PhantomJS accomplishes it's "mission" is to take the content of the page it's interacting with and route it through a "headless" dynamic that then presents it to the code that will manipulate it.

Yes?

Webkit scriptable - this is a web engine that combines content and formatting for electronic display.

This is another element that qualifies PhantomJS as being far more verbose than just a typical line of Javascript. With PhantomJS, you're actually popping the hood on the machinery that presents your content to your end user. If regular HTML and Javascript could be thought of as the parlor, you're now in the living room.

Correct?

Javascript API - Application Programming Interface. So, you're using Javascript to communicate the commands that are manipulating your content to the Webkit engine.

Is that right?

I will have some more questions, but I want to start with these in that they strike me as foundational.

What do you think?
PHPJavaScript

Avatar of undefined
Last Comment
Bruce Gust
ASKER CERTIFIED SOLUTION
Avatar of Rainer Jeschor
Rainer Jeschor
Flag of Germany image

Blurred text
THIS SOLUTION IS ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
Avatar of Bruce Gust
Bruce Gust
Flag of United States of America image

ASKER

Thanks, Rainer!
JavaScript
JavaScript

JavaScript is a dynamic, object-based language commonly used for client-side scripting in web browsers. Recently, server side JavaScript frameworks have also emerged. JavaScript runs on nearly every operating system and in almost every mainstream web browser.

127K
Questions
--
Followers
--
Top Experts
Get a personalized solution from industry experts
Ask the experts
Read over 600 more reviews

TRUSTED BY

IBM logoIntel logoMicrosoft logoUbisoft logoSAP logo
Qualcomm logoCitrix Systems logoWorkday logoErnst & Young logo
High performer badgeUsers love us badge
LinkedIn logoFacebook logoX logoInstagram logoTikTok logoYouTube logo