How to remove all Notes client javascript

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?

http://www.easyaccess-software.com/

Regards!

Subject: RE: How to remove all Notes client javascript

I use rather a lot of Notes client JavaScript, myself. It’s not just for DHTML, you know…

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: Delete [eom]

Subject: I agree it is a pain

I can’t think of how many times I went into an existing apps and started editing the Notes client JavaScript in error.

Some options on how to handle a database from pre ND6 would be nice.

I wonder if you could export a database’s design as DXML and then edit that file and then import into a database?

Howard

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 .

Hth

:slight_smile: stw

Subject: I would just change the setting to “Common JavaScript” in the right drop down.

That way you only have 1 set of script for both the client and the web.