8.0.1 Blog Template - failure to post from web

I’ve been using the new 8.0.1 Notes Blog dominoblog.ntf template successfully, when suddenly, I found that the ‘Post’ button failed to work when posting from the web under the ‘Admin’ feature. This is on a couple of larger blog databases I have. I raised a PMR as I thought it was worth reporting back ultimately to the designers. The ‘Post’ button uses a Java object and activates a javascript activity on the server - and this is what seems to have gone flaky. It would be more sensible if the button was a bit simpler behind the scenes, but anyway, I reported this on PMR and it seems after lengthy investigation that although the problem area can be located, the actual cause of the fault can’t be.

I’ll put some of the(very thorough) PMR report here because it might be relevant to someone else having the same problem:

"When the database is accessed via Web, the 2 buttons “Post to blog” and “Save as Draft” run 2 functions part of a javascript.

The Java script that contains the Function is located in the ‘Pages’ section that is accessible using the Notes Designer Client and the Js library name is dxwajs.js.

You can following these steps to have a better understanding of the process:

  1. access the blog page that contains the “Post to blog” and “Save as Draft” buttons with a browser;

  2. from the browser menu choose the “view source” option (this will show you the html source code for the referred page);

  3. perform a research of the “dxwajs.js” library.

Performing a further search, you will find in the page the 2 function “SaveClick(false)” and “DraftClick” respectively for the “Post to blog” and “Save as Draft” buttons.

Here the code of the 2 functions is reported:

function saveClick(b){

if (doSubmit()){

if(b==false){

document.getElementById(“status”).value=“Published”;}

document.getElementById(“contenttmp”).value=dojo.widget.byId(“contenttmp”).getEditorContent();

document._websave.submit();

}}

function draftClick(){

if (doSubmit()){

document.getElementById(“status”).value=“Draft”;

document.getElementById(“contenttmp”).value=dojo.widget.byId(“contenttmp”).getEditorContent();

document._websave.submit();

}}

The doSubmit() function (second line in both the functions), is also contained in the same library and after some steps returns a boolean value allowing or not to the 2 functions mentioned before to perform the remained code.

The routine of the soSubmit() function is also based on the evaluation of some database’s field that, for some reason in your specific case, can contain a wrong value causing the issue."

A good start anyway! More digging clearly required though.

David Clover

IT Development Manager

Mathematics, Computing and Technology Faculty

The Open University

Walton Hall

Milton Keynes MK7 6AA

T: +44 (0)1908 653529

W: http://www.mcs.open.ac.uk/dac3

W: http://safecomputing.open.ac.uk

Subject: Same Failure… and more informations

I have the same problem, and i found that it apears when I Check the box “Body Required” in the Web Client configuration document (tag “content validation”). When uncheck it works.The javascript debug console indicate that “objForm.Body has no properties”. The error is in the dxwajs.js page, in the function “objForm.submit” and in the test “if (contentRequireBody && trimString(objForm.Body.value)==”“)”

Have a good work and thanks

Subject: About