Results 1 to 2 of 2
  1. #1
    Member
    Join Date
    Jun 2008
    Location
    r. p. v.
    Posts
    1

    Cool 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

  2. #2
    Administrator
    Join Date
    Jul 2006
    Location
    Milan, Italy
    Posts
    521
    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

  1. GWT integration
    By hamroune in forum Client SDKs
    Replies: 1
    Last Post: January 3rd, 2012, 10:26 AM
  2. GWT integration
    By hamroune in forum General
    Replies: 1
    Last Post: January 3rd, 2012, 10:26 AM
  3. Drupal Integration ?
    By stockstreamtest1 in forum Client SDKs
    Replies: 2
    Last Post: September 19th, 2011, 11:48 AM
  4. GWT Integration
    By tvseshagiri in forum Client SDKs
    Replies: 1
    Last Post: June 7th, 2010, 12:11 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
All times are GMT +1. The time now is 10:39 PM.