358 Lotus blogs updated hourly. Who will post next? Home | Downloads | Events | Pods | Blogs | Search | myPL | About 
 
Latest 7 Posts
It’s a Christmas Miracle! Softlayer enables business partners to create integrations in a snap
Fri, Dec 19th 2014 94
My top 10 videos on YouTube this year!
Wed, Dec 17th 2014 98
WebSphere Commerce is now on the Request for Enhancements site!
Tue, Dec 16th 2014 69
Coding Commerce: Showing the shopper which items they already purchased
Mon, Dec 15th 2014 78
Is your solution Ready for Smarter Commerce?
Fri, Dec 12th 2014 90
Coding Commerce: Extending the Price display widget for consumable products
Thu, Dec 11th 2014 95
Thank you for a great 2014!
Wed, Dec 10th 2014 120
Top 10
Who watches YouTube videos from their TV?
Sat, Oct 25th 2014 250
Afraid big brother is tracking your online activity? Then check out Tor …maybe
Wed, Nov 5th 2014 240
The power of the dataload utility – loading data into any table
Wed, Oct 15th 2014 218
Great mobile application for Black Friday
Wed, Nov 19th 2014 217
Getting started with IBM Mobile Web Push – Mobile Messaging for marketing – Part 1
Tue, Feb 25th 2014 214
What do you think technical eminence is?
Mon, Oct 27th 2014 210
Searchandizing part 2 – Promoting a Category
Thu, Oct 23rd 2014 201
Want to learn WebSphere Commerce? Check out this new play list
Tue, Oct 28th 2014 195
Donate to Wikipedia today!
Wed, Oct 29th 2014 194
Webinar this Thursday! Optimizing e-Commerce Site Search for IBM WebSphere Commerce
Wed, Oct 22nd 2014 181


The WebSphere Commerce Ajax Framework
Bob Balfe    

With the new Aurora store front comes many new and exciting features. One feature I really like is the way the store uses Ajax throughout the user interface. The WebSphere Commerce Ajax Framework is based on Dojo (check out the Dojo Ajax documentation here) and it does a great job in easing the use of Dojo in your store front. You can read more about the framework here in the InfoCenter.

But lets dive on the implementation just a little.

The basic flow of the framework is to define callable actions on the server using the Struts framework. You then define the services in JavaScript, identify areas on the screen that will consume the Ajax calls output, and call the service during an event – like an end user click or mouse over.

You can update business objects or refresh the user interface with a basic service call. A good example in the starter store is the mini-shopping cart popup that displays when an item is added to the cart or when the shopper hovers over the shopping cart area. The dialog appears for a few seconds and then disappears.  Like all dojo types you simply put the declaration in the DIV element:

dojoType=”wc.widget.WCDialog” id=”MiniShoppingCart” relatedSource=”miniCartDiv”>

You can read more about the wc.widget.WCDialog widget here, however, this declaration tells the Dojo subsystem to refresh this DIV area with the shopping cart content. In the following example I show something a little different since the result is a dialog popup and not an on screen refresh using dojoType.

<DIV id=widget_minishopcart onmouseover="javascript:showMiniShopCartDropDown('widget_minishopcart','quick_cart_container','orderItemsListAutoClose');"

The id (widget_minishopcart) ends up being the relativeId and ties the JavaScript call to showMiniSopCartDropDown to the location of the new dialog. Inside of that JavaScript method you make a call to the service to show the popup dialog:

dropDownDlg = new wc.widget.WCDialog({relatedSource: relativeId, x:x1, y:y1, title:dialogTitleElement.innerHTML},pane);

The other interface widgets you might want to check out are:

What other reusable widgets do you think we could create?



---------------------
http://blog.balfes.net/2012/12/12/the-websphere-commerce-ajax-framework/
Dec 12, 2012
61 hits



Recent Blog Posts
94


It’s a Christmas Miracle! Softlayer enables business partners to create integrations in a snap
Fri, Dec 19th 2014 6:30a   Bob Balfe
Santa has come early for IBM Business Partners! I remember the days when I worked at Key Services and any time we wanted to try out new software it had to go through all kinds of approval processes because it … Continue reading → [read] Keywords: ibm
98


My top 10 videos on YouTube this year!
Wed, Dec 17th 2014 8:20a   Bob Balfe
It is that time to reflect on the past year and this year I am starting with my YouTube channel. In case you missed any of these blockbuster hits you can watch them now! This year I had over 32,000 … Continue reading → [read] Keywords:
69


WebSphere Commerce is now on the Request for Enhancements site!
Tue, Dec 16th 2014 7:00a   Bob Balfe
Yes, this news is actually about 9 months late but I am realizing not many customers know about this so I figured I would re-announce it today. This is the place where you can vote on features and even submit … Continue reading → [read] Keywords: websphere
78


Coding Commerce: Showing the shopper which items they already purchased
Mon, Dec 15th 2014 6:30p   Bob Balfe
Do you shop on a specific site and would like to see what products you have previously purchased in the shopping experience? I have seen some implementations of a “My Closet” where its a specific page on the site that … Continue reading → [read] Keywords:
90


Is your solution Ready for Smarter Commerce?
Fri, Dec 12th 2014 6:30a   Bob Balfe
Earlier this year IBM announced a partnership with over 16 new partners who have created integrations with the IBM Commerce platform. That number is now up to an astounding 35 partners in less than a year later! You can check out … Continue reading → [read] Keywords: ibm
95


Coding Commerce: Extending the Price display widget for consumable products
Thu, Dec 11th 2014 7:32p   Bob Balfe
Commerce systems are getting more and more advanced and specifically in the B2B space you are seeing more and more information about products on the product page or even in product listings. We see things like color swatches, likes, ratings, … Continue reading → [read] Keywords: widget




120


Thank you for a great 2014!
Wed, Dec 10th 2014 4:10p   Bob Balfe
Over the years I have had interactions with many of you and I wanted to say thank you for reading my blog! I am attempting to gauge the value of my blog by getting some reader feedback. So if you … Continue reading → [read] Keywords:
134


B2B just got a whole lot easier with IBM Commerce
Mon, Nov 24th 2014 7:40a   Bob Balfe
This is a big move for IBM Commerce. You will be seeing some cool videos coming soon with the new B2B functionality. Here are some key quotes from the announcement: Available this Wednesday, IBM B2B Commerce transforms the complex B2B buying … Continue reading → [read] Keywords: ibm
134


Integrated content management and WebSphere Commerce Workspaces!
Mon, Nov 24th 2014 6:00a   Bob Balfe
One of the really big problems in the eCommerce space is you may have a custom or enterprise content management system and a really great eCommerce platform like WebSphere Commerce but the two are rarely ever connected into a single approval … Continue reading → [read] Keywords: enterprise websphere
217


Great mobile application for Black Friday
Wed, Nov 19th 2014 3:50p   Bob Balfe
I was sent a story idea for a mobile application call Zoomingo and I will say upfront that if someone pitches me an application or story idea I really have to like it to blog about it. This application fits … Continue reading → [read] Keywords: application mobile




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