1. Alexey Zimarev07/16/2008 11:41:28 PM
I am sure you're the great developer, but please don't use constructions like:
if (confirm('text')) {
return true;
} else {
return false;
}
Simple
return confirm('text");
would do and in general is better programming practice
2. John Mackey07/18/2008 06:09:46 AM
Alexey,
It makes for a clearer example as to how the client side and server side events work together, which is the goal of this posting.
Thanks,
John
3. Harris Huckabee07/22/2008 09:48:37 PM
John, thanks for your examples. I was just mixing javascript and @Formula in Computed Text yesterday... nice to see more ways to do it in 8.5.
I am trying to understand how xPages with their ability to bind to multiple datasources might also be able to help me validate many "rows" of data which are being saved to separate documents. Being brand new to xPages, I will do your multiple datasources example and see if that leads to a better understanding.
4. Apollo Entice05/22/2009 12:49:58 PM
Great example.
I tried to apply the technique on a dijit.dialog and it seemed it doesn't work. If I use only client-side JavaScript on a dijit.dialog, it work fine. The moment I add Serve-side Javascript (event) nothing will happen. No error but both client and server Javascript won't run.
I hope you can extend this example using dijit.dialog. It will really make web app more Web 2.0.
Thanks for all your examples and more power.
5. Bram Keijers07/03/2009 01:55:54 AM
Homepage: http://www.acuity.nl
I have the same problem with the dijit.titlePane:
I'm looking for a way to store all opened titlepanes in a sessionScope variable so I can keep track of them through de whole application. Catching the open or close event (clientside) is very simple:
var div = dijit.byId("throw4");
dojo.connect(div, "toggle", function(e){
if(div.open){
alert("open");
}else{
alert("close")
}
});
But the problem is that it's not possible to use any "xPages clientside" code like:
document.getElementById("#{id:elementID}").value;
Even if you use clientside functions from other files it doesn't work. So I hope that someone can help me with this problem! Thanks in advance and thumbs up for your very useful blog entries John!
Note: You can access all downloads here