Since R6 separated client and web javascript, I’d like to be able to quickly remove all the client code from my applications.
It’s getting quite tedious to manually remove it all, and sometimes I forget and waste time editing/testing the wrong code.
Any ideas on how I can clear it all out? I have all the Teamstudio tools but I don’t think that will do it. Maybe a Notes API program could be written, but I don’t know C – any takers?
PS
If anyone at Lotus is reading this, it would have been nice to have the option of what would be done with all the javascript in R6. Or maybe you could have provided tools to assist with this.
Does anybody use javascript in Notes client apps anyway? The better choice would have been to take existing javascript and show that as “web” javascript only, leaving “client” blank.
Subject: Have you tried Easy Design Scan to find all occurences of this?
It would be really good to have at least a tool to pin point all occurences of this. I would say that Easy Design Scanner would be able to do this. Have you tried it?
Subject: RE: How to remove all Notes client javascript
… as an example, good ol’ “useless” Notes-side JavaScript is the only language environment that gives you a hook to change button labels at run time or swap multiple images without reloading (the n-across IRs will not cause a remote response elsewhere on a page/form). Then there’s honest-to-goodness regular expressions for validation, setTimeout() and setInterval() – the party just keeps going on and on. Yes, client-side JS can be frustrating if you expect the client to act exactly as a web browser does, or if you aren’t aware of the restricted nature of the Notes client object model, but JS has more than a small place in Notes.
Subject: RE: How to remove all Notes client javascript
Hi David,
the tool is called DXL / XSLT. We used that successfully to export form design pump it through some XSLT to “scrub” the form code. The results are quite amazing: the forms load much faster when the old slack is off. Of course mastering DXL is a bit painful .