StreamHub

5 views
Skip to first unread message

dimitar nenchev

unread,
Sep 8, 2009, 5:10:52 AM9/8/09
to StreamHub Comet Server Community
Hi
I am testing stream hub with gwt integration.
I am doing this by your example. I have imported the streamhub-min.js
file in my hosted page.
After deploying all it worked, when i build more complex module with
more widgets and other logic i deploy it and after start of page i get
the error from the streamhub-min.js file
(TypeError): Browser.isFirefoxFamily is not a function fileName:
http://localhost:8080/.../js/streamhub-min.js lineNumber: 14 stack:
("http://localhost:7878/")@http://localhost:8080/.../js/streamhub-
min.js:14
com.google.gwt.core.client.JavaScriptException

I check that i have done everything in your gwt example as it is. Gwt
specification says that all resources like js are loaded before
executing onModuleLoad so the js file is loaded. How can i fix this?

StreamHub Team

unread,
Sep 15, 2009, 7:01:31 PM9/15/09
to StreamHub Comet Server Community
Hi,

I believe we've already fixed this via StreamHub Support
(sup...@stream-hub.com), but for the forum benefit and to describe
the official fix we'll just go over it here.

The problem was caused by the Browser class included in the StreamHub
JavaScript API clashing with another Browser class from elsewhere.
The Browser class along with all other utility classes have now been
namespaced under StreamHub since version 2.0.6 onwards, so this should
no longer occur.

StreamHub Comet 2.0.6 has just been released and is available to
download from the link below:

http://www.stream-hub.com/download.html

You will only need to make changes to your client code if you were
using any of the auxiliary classes included in streamhub-min.js, which
is unlikely since all but one were private (ElementLogger). Just to
confirm, its still the same code to create a StreamHub object, for
example:

var hub = new StreamHub();

But if you are using StreamHub's ElementLogger you will need to now
use the following namespaced version:

var oLogger = new StreamHub.ElementLogger({elementId :
'logMessagesDiv'});

Hope this helps.

Thanks,
The StreamHub Team

On 8 Sep, 10:10, dimitar nenchev <n.dimi...@gmail.com> wrote:
> Hi
> I am testing stream hub with gwt integration.
> I am doing this by your example. I have imported the streamhub-min.js
> file in my hosted page.
> After deploying all it worked, when i build more complex module with
> more widgets and other logic i deploy it and after start of page i get
> the error from the streamhub-min.js file
> (TypeError): Browser.isFirefoxFamily is not a function fileName:http://localhost:8080/.../js/streamhub-min.jslineNumber: 14 stack:
Reply all
Reply to author
Forward
0 new messages