<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <title>How can I get the client object in the popup page for the jabber IM for Web</title>
  <link rel="alternate" href="http://developer.cisco.com/c/message_boards/find_thread?p_l_id=&amp;threadId=9694866" />
  <subtitle>How can I get the client object in the popup page for the jabber IM for Web</subtitle>
  <id>http://developer.cisco.com/c/message_boards/find_thread?p_l_id=&amp;threadId=9694866</id>
  <updated>2013-05-24T10:07:37Z</updated>
  <dc:date>2013-05-24T10:07:37Z</dc:date>
  <entry>
    <title>RE: How can I get the client object in the popup page for the jabber IM for</title>
    <link rel="alternate" href="http://developer.cisco.com/c/message_boards/find_message?p_l_id=&amp;messageId=10037720" />
    <author>
      <name>Thomas Vanier</name>
    </author>
    <id>http://developer.cisco.com/c/message_boards/find_message?p_l_id=&amp;messageId=10037720</id>
    <updated>2013-01-08T15:53:27Z</updated>
    <published>2013-01-08T15:53:27Z</published>
    <summary type="html">Hi You-young,
Sorry for the delayed reply.
Is the "second page for chatting" opened from the first one (list of users) ? In this case the chatting page should be able to access the first page through window.opener, and the popup could use window.opener.client after the first page sets it as window.client = new jabberwerx.Client(&lt;resource&gt;).
[url=https://developer.mozilla.org/en-US/docs/DOM/window.opener]https://developer.mozilla.org/en-US/docs/DOM/window.opener[/url]
Does your application target any particular browser ? If HTML5 is supported, you could use a web worker to load jabberwerx and initialize the client variable in the background (worker script), and the 2 pages would exchange message with the web worker, assuming they are both loaded from the same domain.
[url=https://developer.mozilla.org/en-US/docs/DOM/Using_web_workers]https://developer.mozilla.org/en-US/docs/DOM/Using_web_workers[/url]
Finally, if your application is meant to run in Firefox or Chrome only, you could use a browser extension to share a background (invisible) page between as many pages/tabs as needed.
Note I have not tested any of the suggested solutions ;-)
Thomas</summary>
    <dc:creator>Thomas Vanier</dc:creator>
    <dc:date>2013-01-08T15:53:27Z</dc:date>
  </entry>
  <entry>
    <title>How can I get the client object in the popup page for the jabber IM for Web</title>
    <link rel="alternate" href="http://developer.cisco.com/c/message_boards/find_message?p_l_id=&amp;messageId=9694865" />
    <author>
      <name>You-young Ok</name>
    </author>
    <id>http://developer.cisco.com/c/message_boards/find_message?p_l_id=&amp;messageId=9694865</id>
    <updated>2012-12-24T06:21:44Z</updated>
    <published>2012-12-24T06:21:44Z</published>
    <summary type="html">The IM &amp; presence for Jabber for Web that I am developing is using 2 web pages. first page is for list of users with presence and Second page is for chatting. I declared the client parameter in the first page and I implement the list of users with presence. When I click the one of list of Users, I'm wondering How I can get the client object in the second page[popup chatting page] for chatting. Please Help me....</summary>
    <dc:creator>You-young Ok</dc:creator>
    <dc:date>2012-12-24T06:21:44Z</dc:date>
  </entry>
</feed>

