Entity Explorer version 2

17402 Version 1 is of course the one on rtkp.nl/tools/

It has a nice display of an entity page, and there are buttons for PgDn,PgRnd and PgUp. No previews, no direct go anywhere. And History is dramatic on Android Chrome.

So, why is v2 here?

There is a navblock function that does a bit of previewing. I have excluded a lot of Pages with Chinese / Japanese characters only. It still has some 60 entries.

Currently, the representation is a table, each tr has an attribute. And this time, it's not an 'onclick' or a 'href'. It's something I didn't know existed before the javascript.info tutorial told me about it: A data-whatever Attribute.

So i'm forced to use event delegation now, to pick up clicks on the TDs, and make the page show the selected table, which might even involve some Ajax.

That's why this EEv2 is in the JSI App

To learn. It'll teach me things. JS, CSS, DOM, Ajax.

See?

And er...

The index page currently only shows the Mission Statement doc. I am not going to randomize that page, but I want to be able to select this doc there. With a button, from a nav, without Page Reloads.

A bit later that evening...

Anyway - adding pages is so easy in this environment. I have the functionality in a function, and with 2 renders the php generates this page from the doc and the nav.

17403 2520 die hoek

Ik had geen zin in steeds maar weer deze script met de hand op te geven, dus er is nu een ruige Href-navbar bovenin. Dat was vanmiddag, vóor de boodschapjens.

Even onclick op de tr's gezet, want die server moet natuurlijk ook werken. De server is het script dat ook de pagina zelf genereert. In geval van een request, laat-ie dat genereren achterwege, en spuugt-ie alleen de tabel uit. Geen includes. Niet eens de config.

Natuurlijk moet dat getest worden.

Onclick naast de data-nogwats

En dat betekent dat AJAX hier nu actief is. Jawel: klik in de linker lijst, en je ziet de bijbehorende tabel.

Dit is kicken! Het was even puzzelen, ) } ipv } ) en zo, en dan natuurlijk de obligate #-commentaren ...

Maar ik heb naast doc- en page- nu ook een js-class op de server. Afgeleid van de DCS JS module, maar veel generieker (kan dat? dat kan) Voorlopig staat die nog niet in common/, maar gewoon in jsi/, want er gaat vast nog wat gesleuteld worden.

Thanxalot, JGGAGNE and ILYA KANTOR - For the INSPIRATION