The Author Online Book Forums are Moving

The Author Online Book Forums will soon redirect to Manning's liveBook and liveVideo. All book forum content will migrate to liveBook's discussion forum and all video forum content will migrate to liveVideo. Log in to liveBook or liveVideo with your Manning credentials to join the discussion!

Thank you for your engagement in the AoF over the years! We look forward to offering you a more enhanced forum experience.

Khan Hafizur Rahman (1) [Avatar] Offline
#1
In page 257, it states that run localhost:4568/iq to show dashboard application. The web application updates automatically.

The relevant code is in file
src/main/java/bbejeck/webserver/InteractiveQueryServer.java
In init method, the following snippet is written :

get("/iq", (req, res) -> {
            res.redirect("interactiveQueriesApplication.html");
            return "";
    });


My questions are:

1. where is the HTML file located?
2. How is the ajax code handled?

Any kind of help is highly appreciated.

Bill Bejeck (47) [Avatar] Offline
#2
Hi,

Thanks for taking the time to ask a question.

The interactiveQueriesApplication.html file is located in the src/main/resources/webserver directory.

The ajax is handled using the jQuery library https://jquery.com/ version 3.2.1

Cheers,
Bill