Results 1 to 6 of 6

Hybrid View

  1. #1
    Member
    Join Date
    Oct 2009
    Location
    london
    Posts
    3
    Quote Originally Posted by DarioCrivelli
    Because of this browser-dependent behavior, the recommended way of testing when Lightstreamer Server and the Web Server are on the same host and no suitable hostname is available is to assign fake hostnames of the correct format directly on the client machine, by playing on the "hosts" file.

    Another consequence is that you can't use hostnames like mycompany.com for the Web Server and push.mycompany.com for Lightstreamer Server, because using mycompany.com as the common superdomain is not supported by all browsers. Hence, this case is officially not supported by the Web client APIs.
    Thanks for making this clearer, however I'm still unclear on a few things:
    1)what do you mean about the superdomain not supported by all browsers? Earlier you say this is the way to do it in production then you end by saying it isn't the way to do it.
    2)In your second post you refer to the Lightstreamer API. Are you referring to the javascript API? Please can you be clear about this as it is very confusing.
    3)should I be checking the browser name and setting pushPage.context.setDomain(null) for IE and pushPage.context.setDomain(domain) in firefox?
    thanks in advance

  2. #2
    Power Member
    Join Date
    Jul 2006
    Location
    Cesano Maderno, Italy
    Posts
    784
    1)what do you mean about the superdomain not supported by all browsers? Earlier you say this is the way to do it in production then you end by saying it isn't the way to do it.
    Not supported are cases where one of the two hostnames is equal to the superdomain.
    So, if you use
    push.mydomain.com as host for your Lightstreamer server
    and
    mydomain.com as host for your webserver
    this is not supported.

    Bu if you use
    push.mydomain.com as host for your Lightstreamer server
    and
    www.mydomain.com as host for your webserver
    than that's ok [and you'll use setDomain("mydomain.com")].


    2)In your second post you refer to the Lightstreamer API. Are you referring to the javascript API? Please can you be clear about this as it is very confusing.
    We refer to Lightstreamer javascript API (this forum section is about javascript API).
    Other APIs have different (Flex, Silverlight) or no restrictions about host names.

    3)should I be checking the browser name and setting pushPage.context.setDomain(null) for IE and pushPage.context.setDomain(domain) in firefox?
    only if you are in the situation highlighted by the first post and you don't want/you can't apply the hosts-file-workaround proposed.

    Note that in a production environment you should use two different hostnames for your webserver and your lightstreamer server so that this thread will not apply.

 

 

Similar Threads

  1. Replies: 0
    Last Post: February 17th, 2010, 05:10 PM
  2. cross domain between http and https
    By riwang in forum Client SDKs
    Replies: 1
    Last Post: January 7th, 2009, 10:56 AM
  3. Cross domain capability
    By achimabeling in forum General
    Replies: 1
    Last Post: August 20th, 2007, 03:08 PM
  4. Opera --> Cross-frame scripting / frameset
    By Mone in forum Client SDKs
    Replies: 1
    Last Post: March 28th, 2007, 09:35 AM
  5. Replies: 0
    Last Post: November 9th, 2006, 04:12 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 06:30 PM.