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 245
An open letter to Mr. NotesIn9
Wed, Apr 2nd 2014 423
And the gloves are off……
Mon, Mar 31st 2014 321
When the community comes together we get the right answer
Sun, Mar 30th 2014 295
Why learning JavaScript is more critical to XPage developers than Java
Wed, Mar 26th 2014 714
PATCHing a Document using Domino Data Service
Mon, Mar 24th 2014 199
How to ad icons to individual items in a Select2 multi-value field
Tue, Mar 18th 2014 222
Top 10
Why learning JavaScript is more critical to XPage developers than Java
Wed, Mar 26th 2014 714
An open letter to Mr. NotesIn9
Wed, Apr 2nd 2014 423
Arguably the most dangerous thing you could ever do in XPages – let other people use your eval() in their SSJS
Tue, Jun 18th 2013 422
Why using XPages Partial Refresh is sometimes easy for developers and bad for users
Tue, Mar 4th 2014 326
And the gloves are off……
Mon, Mar 31st 2014 321
Going porn-mode on your browser
Fri, Jan 24th 2014 318
Prototypal inheritance of SSJS across the whole server in XPages
Sun, Mar 2nd 2014 314
EXTJS in XPages #14 – Grid editing and saving data via REST CRUD
Thu, Aug 1st 2013 299
When the community comes together we get the right answer
Sun, Mar 30th 2014 295
Lowering your ODS – an oldie but goodie
Fri, Feb 7th 2014 282


jQuery in XPages #1 – Highcharts
MarkyRoden    

I am delighted to present the first in my series of articles highlighting some extremely cool jQuery plugins and how to integrate them within XPages. During the course of the articles I will always demonstrate at least at some level, basic integration with XPages. In many cases I will not be able to cover all the examples of everything possible with each plugin, but I hope to give at least a good teaser to the possibilities and  show the myriad of possibilities.

I have to also say a HUGE thank you to David Leedy (www.notesin9.com) who is hosting my demonstration for this and the rest of this series when I get to them.

So without further ad0 – welcome to jQuery in XPages #1 :)

Highcharts

For full disclosure, Highcharts is not free for commercial use.
“Do you want to use Highcharts for a personal or non-profit project? Then you can use Highchcarts for free under the Creative Commons Attribution-NonCommercial 3.0 License.”.

But part of the reason I chose it as the #1 is because it really rocks well with an XPage environment. It has direct business applicability, unlike many other jQuery plugins which are pretty, but hardly “corporate”. The format and structure of the chart instantiation also jibes well with XPages and I was able to create a custom control which can be applied to any formatted viewPanel or dataTable.

The Demo

Here is the demonstration site

and here is the demo dataabase

Link download the demo database

In the example below you can see a simple form with a viewPanel. Adding a new value to the form refreshes the page and displays the value entered. The exact same functionality would be seen if I had a basic data table looking at the same view of data.

The Example

Initial XPages form

Initial XPages form

Submitting the form gives us our new value

XPage with new Apples value added

XPage with new Apples value added

The XPage is laid out very simply and our View control is called viewPanel1

View Panel on the XPage

View Panel on the XPage

We add the drawHighchart Custom Control to the XPage

Adding the drawHighchart custom control to the page

Adding the drawHighchart custom control to the page

And let’s refresh our webpage – et voila – a chart

A simple Highchart added to our XPage

A simple Highchart added to our XPage

Changing the chart type is as simple as selecting a new theme and/or a new chart type

Changing the Highchart style

Changing the Highchart style

For more information on how this works check out the next article

jQuery in XPages #1 – Highcharts – how does it work?




---------------------
http://xomino.com/2012/03/14/jquery-in-xpages-1-highcharts-2/
Mar 14, 2012
45 hits



Recent Blog Posts
245


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
423


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
321


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
295


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
714


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
199


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




222


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
185


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
206


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
229


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