Update on resizing datefields

>

One problem that I have encountered is that IBM is creating dojo.onload event that is sent to the user if a partial refresh is done. And If you have resized a date field and do a partial resize on
the resize is lost of course. If you haven’t place the script inside a computed text inside the area that is partial refreshed.

http://everythinglotus.blogspot.com/2011/03/making-resize-of-xpage-datefields-work.html

Xpage Events doesn’t always work after partial refresh

>I had a strange error today, I had an Xpage that when you clicked in the navigation a partial refresh was done and a “document” was loaded into a panel with a title and some RichText displayed inside a computed text control it also had a Back button that executed some server side SSJS.

On some documents the back button didn’t work. I started to investigate.
I found that the javascript at the bottom of the returning partial refresh was never executed.
Something in the richtext HTML did this. But there was nothing wrong in the HTML.
I should also add that the problem only ocurred in IE 8 & 9 with compability mode.
No to the fun part how did I solve the problem.
I created a Div for holding the returning HTML
and below this in the Computed text control, I added a script tag that did a getElementById and assigned the Dokumenttext the tag using innerHTML but to assign the text I had to escape the HTML first in SSJS and then unescape it before I added in to the innerHTML

Strange XPage error on the console.

>I got a strange problem displaying on the Domino console

HTTP JVM: com.ibm.xsp.exception.EvaluationExceptionEx: Error while executing JavaScript action expression

The application works with no problem but this is showing on the console every 5 minutes on the console. Then I found that the error was a error inside the code in beforeRenderResponse event.
If found this by adding
try {

}catch(e){
print(e.toString())
}
around my code.

Making the resize of XPage Datefields work like they should

I found when creating an application that I couldn’t resize a date field. The date picker mover to a second row and that wasn’t what I wanted.

And I didn’t want a large field because I was only storing a short date in ISO Date format.
I started to investigate why the helper icon was moved to the second row and found that a style width was inherited down in the date field control. This made that the text field storing the date was as big as the surrounding span and that made the helper icon to pop down to the second row.

I thought that I could fix the problem in the Dojo Widget but I couldn’t find any event to attach my code to that fired when the compilation of the widget was done. So my choice fell on implementing this as a Dojo onload event fix.

Place the code within a output script on a custom control or in a script library and add it to you XPage with the fields. It can handle one or multiple date fields. It will only manipulate fields with the width style added.

IBM continues with Nokia and no Windows Phone 7

>

IBM announced today that the continues the plan for supporting Symbian^3 later this year.
No plans for Windows 7 Phone support, still applys.
Is there anybody that uses a Windows Phone 7?

https://www-304.ibm.com/support/docview.wss?uid=swg21470120

http://www.microsoft.com/windowsphone/en-us/default.aspx

NotesRichTextRange ReplaceAndFind clears the RichTextItem or gives a crash

>If you are using this function in Lotusscript (haven’t tested Java) and replacing text that has the property passthruhtml beware that the Richtext item will be cleared if the RichText item data is larger than 64K, I can’t wait when the 64K limit gone from Domino!!!

Another enoying bug is that if you do alot or replacements the client/server will crash.

The bugs in reported to IBM, and I will comeback with when they are fixed. They are reproducable so I’m confident that IBM will fix them.

How do I create a editbox connected to a richtextfield

>

Is there a way to create a editbox with Xpages that is connected to a richtextfield in backend and to avoid The 64k limit.

There is probably a easy solution, please comment if you know the answer.
BlogBooster-The most productive way for mobile blogging. BlogBooster is a multi-service blog editor for iPhone, Android, WebOs and your desktop

Extension library dynamical treenodes

>Is it possible to create TreeNodes thru code to populate for instance a pagenavigator object from the extension library?

I know about the bean object but how should the bean look like can’t find any examples?

Can it be done with out a bean object?

Multi level navigator for XPages

>Anybody built a 2 level navigator for XPages, like an outline that folds out

the second level when clicking on the first level?

Rockmelt & Flock, 2 chrome based browsers with interesting functions

>I’ve found these two new browsers that has interesting social functions.

Rockmelt has interesting Facebook, Twitter and Rss integration so you will get updates when you are browsing. A quite nice browser. You get all the functions from Chrome plus the great integration to Facebook and Twitter.
Flock on the other hand has integration to more services like youtube, linkedin and the best bookmark manager I ever has seen in a webbrowser. You can add notes to websites and search for the content. Flock is also based on Chrome so all the chrome functions are there.
Try them out and see what you think.