• Client-side XML parsing code

    By Jerry Malsam 2 decades ago

    I've been working on this on my own, approaching the problem from the client-side javascript angle. So far, I have a few classes written that parse a Notes view into objects representing the view's documents (from the ?ReadViewEntries XML) and design (from ?ReadDesign and the HTML action action bar).



    It's pretty quick and works well; I'll post it if there is interest.



    Of course, the plan is to take those design and document objects and render them just as Domino would, but with div and class tags inserted so that CSS and javascript can be used to further customize the views. The goal is to have a completely generic solution that will render any Notes view, including action buttons, without special coding or any client-side programs other than javascript.



    Note that this approach complete avoids XSL and any real XML/XSL transformation – which is the whole point of the exercise from my perspective, as we're having some bizarre phantom problems with the MSXML control.

    • Please do!

      By Anil Vartak 2 decades ago

      I'd be interested in it for a couple of projects here - you can post it on CodeBin if you wish.

      • will do

        By Jerry Malsam 2 decades ago

        I need to put the action bar parsing code back together (it's currently disabled cuz I was troubleshooting a view rendering problem), but I think I about have this nut cracked! Lemme clean that up and I'll post the view parsing code shortly.

      • OK -- Posted to Releases

        By Jerry Malsam 2 decades ago

        I've uploaded "jsviews.zip" to the Releases section. This is my first file-post, so let me know if you have trouble accessing it.