-
July 9th, 2008, 12:01 PM
#1
XSLT integration
hi everyone,
i'm wondering how to perform browser side XSL transformation on pushed data from lightstreamer since they are not DOM based. could anyone suggest? thanks in advance !!
cheers,
richard
-
July 10th, 2008, 10:10 AM
#2
Hi Richard,
You can push any kind of strings with Lightstreamer. In your case, you might want your Data Adapter to push XML strings. On the client side, you will use a NonVisualTable to receive such strings. Then, you will use a JS toolkit for XSLT to transform your XML string into an HTML string. Finally, you will visualize the HTML string through innerHTML.
As an alternative, to avoid the direct use of innerHTML, you can leverage an OverwriteTable (or another VisualTable) instead of a NonVisualTable. Then you will use the onChangingValues callback to make the string transformation. The resulting string will be directly displayed inside the cell you created. If such string is HTML, make sure you called setPushedHtmlEnabled(true).
AjaxPatterns has a good explanation of browser-side XSLT (even if not directly related to Lightstreamer): http://ajaxpatterns.org/Browser-Side_XSLT
Cheers
Alessandro
Similar Threads
-
By hamroune in forum Client SDKs
Replies: 1
Last Post: January 3rd, 2012, 09:26 AM
-
By hamroune in forum General
Replies: 1
Last Post: January 3rd, 2012, 09:26 AM
-
By stockstreamtest1 in forum Client SDKs
Replies: 2
Last Post: September 19th, 2011, 10:48 AM
-
By tvseshagiri in forum Client SDKs
Replies: 1
Last Post: June 7th, 2010, 11:11 AM
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
All times are GMT +1. The time now is 03:10 PM.
Bookmarks