One of the things which has bugged me for a long time is getting a good name picker. We have been using a servlet on our Domino server for a long time which looks at views in the NAB and allows the user to select individual names to be added to a document in a web browser. Alas the servlet is showing its age and with the advent of AJAX it is about time that we came up with something better.
So the requirements:
I have put up a demo page which looks at a view in my sister site – 50WordReview.com, over the next few days I’ll put up an explanation of how it works and some of the tricks which I have used.
Update: I have added a couple of articles which will hopefull be useful. How to use the name picker and how the picker works.
Very nice. We want more!
http://www.11tmr.com/11tmr.nsf/emoticons/DLYH-5MZVLS/$FILE/biggrin.gif“>
– Julian
Very cool !! http://www.11tmr.com/11tmr.nsf/emoticons/DLYH-5MZVLS/$FILE/biggrin.gif“>
This is awesome. Please tell us more. http://www.11tmr.com/11tmr.nsf/emoticons/DLYH-5MZVLS/$FILE/biggrin.gif“>
Chris
Matt,
I tried to use the demo on OS X Safari and it did not work. Just an FYI,
Regards,
Bruce
Now THAT’S what I’m talking about man…
Sweet.
Thanks for the comments guys. Glad you like it.
Bruce, the bug is very strange, I am just setting the value of the text field, but it is not displaying. If I uput an alert after setting the value then it seems to have been set correctly but nothing is showing up. I will try and fix it when I have a spare half hour.
Matt
@Matt,
Kewl. Turn on the JavaScript console and see if anything throws an error. I will give it a try.
Regards,
Bruce
Really, really cool!
I would love to see how this works.
This is WAAAAY COOOOL
Nice web, I enjoyed it a lot. Thanks
The name picker is a wonderful tool. The multi-name picker seems to work in both IE and Netscape 7. However, I can’t get the single name picker to work in Netscape 7. It appears that the window.opener.document.getElementById function is not returning the object in Netscape. Of course, it works fine in IE. Any ideas?
I discovered the problem with Netscape 7. Actually, the first problem I asked about (window.opener.document.getElementById not returning an object) wasn’t a problem per se. It seems Netscape 7 needs the id parameter (instead of name) to be used in order for the getElementById method to work. I changed name to id and both IE and Netscape were happy. The next problem I ran into was getting the value to appear in the text field. Initially, I thought Netscape wasn’t returning anything(sounds like Matt White was having a similar problem). Then I discovered that it was returning the desired value preceeded by spaces(Matt try pressing the down arrow to scroll the text to the top…I knew something was there because I returned the value in an alert popup). It turns out there is a little bug in the way Netscape handles the unescape function (unfortunately, it took me a couple of days to figure this out…decodeURI offered the same results). It took me a couple of days but I have it working now.
A very nice one, transforming name pickup from notes client to web…
For your efforts, you should get free drinks forever at all future LotuSpheres!
It’s great. I like it.http://www.11tmr.com/11tmr.nsf/emoticons/DLYH-5MZVLY/$FILE/smile.gif“>
would like to pick ten class names out of year three.
Thanks for this! I’ve been using variations of this for years (ever since I first found it), but I just now got around to finally writing it up: { http://blog.restafarian.org/?p=47“ rel=”nofollow” target =”blank”>Link }
Thanks.
I want to thank Matt White, Scott Good, and the community for this wonderful name picker, from which I have learned a great deal, and which has served my organization so well that we started wanting to have new features added to it…
I have reworked it into a single design element, and added several new features including:
– Support for single categories
– Support for multiple return values into differing fields
– Triggering onchange events on the underyling form
I want to give something back to the Notes community which has given me so much, so I have posted this on my (still nacent) blog in the post { http://alpha.jenkinsmd.com/archive/2008/04/22/10.aspx“ rel=”nofollow” target =”blank”>Link }
I hope everyone will take a look, help me identify any bugs, and give me feedback for improving it.
—Scott Jenkins