354 Lotus blogs updated hourly. Who will post next? Home | Downloads | Events | Pods | Blogs | Search | myPL | About 
 
Latest 7 Posts
Adding custom HTTP headers to Domino R9 using IBM HTTP Server (IHS)
Sun, Apr 20th 2014 45
An open letter to Mr. NotesIn9
Wed, Apr 2nd 2014 418
And the gloves are off……
Mon, Mar 31st 2014 314
When the community comes together we get the right answer
Sun, Mar 30th 2014 289
Why learning JavaScript is more critical to XPage developers than Java
Wed, Mar 26th 2014 703
PATCHing a Document using Domino Data Service
Mon, Mar 24th 2014 196
How to ad icons to individual items in a Select2 multi-value field
Tue, Mar 18th 2014 218
Top 10
Why learning JavaScript is more critical to XPage developers than Java
Wed, Mar 26th 2014 703
An open letter to Mr. NotesIn9
Wed, Apr 2nd 2014 418
Arguably the most dangerous thing you could ever do in XPages – let other people use your eval() in their SSJS
Tue, Jun 18th 2013 405
Why using XPages Partial Refresh is sometimes easy for developers and bad for users
Tue, Mar 4th 2014 320
And the gloves are off……
Mon, Mar 31st 2014 314
Going porn-mode on your browser
Fri, Jan 24th 2014 313
Prototypal inheritance of SSJS across the whole server in XPages
Sun, Mar 2nd 2014 307
When the community comes together we get the right answer
Sun, Mar 30th 2014 289
EXTJS in XPages #14 – Grid editing and saving data via REST CRUD
Thu, Aug 1st 2013 283
Lowering your ODS – an oldie but goodie
Fri, Feb 7th 2014 273


XPages TypeAhead v2.0 with added fail icon
MarkyRoden    

Thanks to Sven Hasselbach who inadvertently gave me the information I needed to intercept the ajax call in dojo.

http://stackoverflow.com/questions/9776503/xpages-get-the-contents-of-a-this-partialrefresh-ajax-call

Using

// --- hijack dojo XHR calls
dojo._xhr = dojo.xhr;
var loadOld;

function hijacked( response, ioArgs ){
   alert( response ); // change code here to do whatever you want. //
   loadOld( response, ioArgs ); // call the original function
}

dojo.xhr = function( mode, args, bool ){
    loadOld = args["load"];
    args["load"] = hijacked;
    dojo._xhr( mode, args, bool );
}

I was able to intercept the ajax call being made to the server. As I previously discussed in the original article I knew that the response was blank but was unable to get a handle on it – now I have.

Check out the  demonstration (Thanks to David Leedy for hosting)

http://watchtower.notesin9.com/xomino/xPlay.nsf/xTypeAhead.xsp

xTypeAhead with new Fail icon

xTypeAhead with new Fail icon

 




---------------------
http://xomino.com/2012/03/20/xpages-typeahead-v2-0-with-added-fail-icon/
Mar 20, 2012
15 hits



Recent Blog Posts
45


Adding custom HTTP headers to Domino R9 using IBM HTTP Server (IHS)
Sun, Apr 20th 2014 6:41p   Mark Roden
IBM HTTP Server (IHS) was added to R9 so that we could have TLS support for HTTPS encryption. For more on how to do that see Russ Maher’s post(s) on the subject. Under the covers IHS is really a modified version of Apache Web server and comes with some of the Apache options. It gives us the ability to add custom headers to all pages served up by the server. You can turn IHS on by adding the following to your notes.ini – this does require a full reboot HTTPIHSEnabled=1 When the [read] Keywords: domino ibm notes xpages server
418


An open letter to Mr. NotesIn9
Wed, Apr 2nd 2014 6:33a   Mark Roden
Dear Mr Leedy, I regret to inform you that your blatant use of child labor has offended my child labor union. They do not feel like you have represented me in the correct light. I trust that you will find this short response in the same light as your original offense. yours faithfully, Your very good friend Marky Roden CC: everyone who has seen this video http://notesin9.com/index.php/2014/03/31/notesin9-141-java-vs-javascript-throwdown/ [read] Keywords: java javascript
314


And the gloves are off……
Mon, Mar 31st 2014 5:57p   Mark Roden
Picture this: I have been away for 5 days and during that time “someone” has been posting cryptic comments on twitter about how the next notesin9 is going to be different….and scaring me. So I am waiting at the airport this afternoon, about to board my plane home and I get this link from this “friend” who tells me to watch the new video it and enjoy. I download it and watch it on the plane. People start to look at me funny as I start to snort and giggle at my phone. [read] Keywords: ibm xpages application integration javascript twitter
289


When the community comes together we get the right answer
Sun, Mar 30th 2014 12:41p   Mark Roden
Last week I posted why JavaScript is more critical a skill to learn than Java. There was an outpouring of comments, discussion and responses unlike any I have seen in a while. To give a little more background as to why I decided to post: I was not to be antagonistic or instigate a storm in a tea cup. It was because for the third time in 2014 I had been told by a notes developer something along the lines of “I can’t learn XPages because I have read that you need to learn Java and I do [read] Keywords: notes xpages blogging community java javascript
703


Why learning JavaScript is more critical to XPage developers than Java
Wed, Mar 26th 2014 5:14p   Mark Roden
I have tried to write this article multiple times over the last 2 years, when I read it back to myself it always sounds like I am bitching. Honestly, I usually am and that is why it has not been published. This is a final attempt at a constructive argument against the insistence on many blogs that everyone should learn Java. Many people think I hate Java; I really don’t. I can program Java (I am no expert admittedly) and have done so on multiple occasions. My concerns are always raised whe [read] Keywords: domino ibm lotus notes notes client R4 xpages ajax application applications community css database development dojo google interface java javascript network server websphere xml
196


PATCHing a Document using Domino Data Service
Mon, Mar 24th 2014 7:11p   Mark Roden
Talk about frustrating – in a week full of slow progress and CORS cross domain hell I found this little annoyance after hours of staring and curing – once again the power of trial and error triumphs over my stupidity again. The problem I have a Domino Data Service running on the server and I want to update a document This is the imaginary URL https://xomino.com/issues.nsf/api/data/documents/unid/FDCA9C28A793D3F785257C4D0068BBCA returning the imaginary data just fine { "@href": [read] Keywords: domino ibm ajax application java server




218


How to ad icons to individual items in a Select2 multi-value field
Tue, Mar 18th 2014 8:08p   Mark Roden
Select2 is one of the best user interface enhancers I have come across – if you do not know what it is then you need to go play with it. It transforms SELECT boxes into dynamic, stunning, interactive UI elements and allows for all sorts of customizations and developer fun. What I want to be able to do is select items from different categories within the select2 box and then add an icon displaying to the user which category they came from. In this article I will show how. Example I want to [read] Keywords: css interface xml
181


My ongoing struggle with stupidity and what is not valid JSON
Sun, Mar 16th 2014 6:06p   Mark Roden
So this was a frustrating lesson to learn – and please feel free to be entertained by my apparent stupidity. I was trying to create my own JSON with an xAgent – seems easy enough. I created a simple output which looked like this { 'items': [ { 'name': 'AK', 'dc': 23 } ] } and when I fed it through my AJAX code it failed. $.ajax({ dataType: 'json', url: "http://copper.xomino.com/xomino/ExtjsBigData.nsf/xState.xsp?query="+query //url: 'http://coppe [read] Keywords: ajax google javascript
197


jQuery in XPages #20 – NProgress – YouTube-like slim progress bar
Wed, Mar 12th 2014 7:02p   Mark Roden
In this article I will describe how to implement and use the jQuery NProgress nano scrollbar plugin Demonstration The XPages integration of NProgress is demonstrated here Download The demonstration database can be downloaded from the link above or from here NProgress Introduction Since Youtube.com added their nano scroll bar at the top of the page there have been a flurry of different jQuery plugins which mimic the nano progress bar at the top of the screen. The silly thing is that the progre [read] Keywords: xpages ajax application applications css database dojo integration javascript openntf server xml
223


Manually Setting Domino Database Properties through DDE
Sun, Mar 9th 2014 6:27p   Mark Roden
This gets filed under the “I am writing this because I know I am going to forget it, and will need it again” We had a problem in a database whereby we were checking to see if document locking was enabled and if not then it gets programmatically enabled. This reference document from IBM tells you how it can be done in LotusScript. This was done to the database which was deployed around the world. Is there a way to programmatically change Database Properties for a database? 'Set th [read] Keywords: domino dxl ibm lotusscript xpages database eclipse properties




Created and Maintained by Yancy Lent - About - Blog Submission - Suggestions - Change Log - Blog Widget - Advertising - Mobile Edition