Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8569301
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T18:18:11+00:00 2026-06-11T18:18:11+00:00

PubNub works by calling callback functions you specify like this: http://www.pubnub.com/account-javascript-api-include How to integrate

  • 0

PubNub works by calling callback functions you specify like this:
http://www.pubnub.com/account-javascript-api-include

How to integrate this properly with the Qooxdoo JS framework?
Qooxdoo application looks like this:
http://demo.qooxdoo.org/current/playground/#Hello%20World-ria

How do you load the external JS library and make the global “PUBNUB” available?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-11T18:18:12+00:00Added an answer on June 11, 2026 at 6:18 pm

    You could easily use the add-script config key, to load the pubnub-*.min.js before your app. Then add the PUBNUB.subscribe() call anywhere in your qooxdoo code where it suits you, e.g. in the main method of your main class or in an event handler of a GUI element like a button.

    EDIT:

    To add more details:

    • You add the add-script key in config.json, in the “jobs” section.
    • As you need the script in both the source and the build version, you should add it to the source-script and the build-script jobs, or you create a separate job for the key and extend source-script and build-script with it (that would I do).
    • The warning about the job shadowing is only to alert people that inadvertently use a pre-defined job name for self-defined job. But here this is exactly what you want, and you can silence the warning with the config-warnings key if you wish. But this doesn’t affect the built app.
    • As for the definedness of PUBNUB you might run into a timing issue where your code using PUBNUB is already executed when the pubnub script file has not finished loading. In your running app, first check in the command line (e.g. Firebug or Chrome Developer Tools) if the PUBNUB symbol is known. If so, the loading was successful. In that case you might want to delay access to the PUBNUB symbol in your code, e.g. by placing it in an execute listener of a button.

    Here is a fragment of the possible config.json entries:

    ...
    "jobs" : {
       "add-pubnub" : {
           "add-script" : [
             {
               "uri": "http://cdn.pubnub.com/pubnub-3.3.min.js"
             }
           ]
       },
       "source-script" : {
           "extend" : ["add-pubnub"]
       },
       "build-script" : {
           "extend" : ["add-pubnub"]
       }
    ...
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

For example, the Java API for pubnub is at https://github.com/pubnub/pubnub-api/tree/master/java I want to create
Are amplify.js's pub/sub events implemented as Synchronous or Asynchronous? http://amplifyjs.com/api/pubsub/ The documentation does mention
This is Peter Higgins's pub sub library: https://github.com/phiggins42/bloody-jquery-plugins/blob/master/pubsub.js (function (d) { var cache =
this is a copy of my question on Pubnub support page: Hi all, I
I could use some help initializing the javascript PubNub interface without having to append
Quick facts, I got this function from http://lua-users.org/wiki/SplitJoin at the very bottom, and am
The following code is from Essential JavaScript Design Patterns For Beginners . Why is
Is there a PubNub example application built on Rails out there? I'm having a
Has anyone managed to integrate pubnub and head.js properly? Pubnub expect me to put
I'm a little confused about clustering with gproc as a pubsub. I would like

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.