You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@shindig.apache.org by Han Nguyen <hn...@us.ibm.com> on 2009/04/23 20:05:35 UTC
pubsub questions
Hello,
I'm a JavaScript and Shindig newbie. I have 2 questions:
1. I have the pubsub sample working, and would like to learn more on how
the pubsub and rpc code work. Could anyone please explain or give me some
pointers?
2. I did an alert on the on the router of the pubsub.js "alert('pubsub: '
+router);", it displayed
pubsub: function A(E, C, D) {
var F = B[E];
if (typeof F === "function") {
F(C, D);
}
What are those letters? the original source code didn't look like that. Is
it somehow compressed? if so then can I turn compress off? if not please
explain.
Thanks!
Han
Re: pubsub questions
Posted by Kevin Brown <et...@google.com>.
On Thu, Apr 23, 2009 at 11:05 AM, Han Nguyen <hn...@us.ibm.com> wrote:
> Hello,
> I'm a JavaScript and Shindig newbie. I have 2 questions:
> 1. I have the pubsub sample working, and would like to learn more on how
> the pubsub and rpc code work. Could anyone please explain or give me some
> pointers?
I'd start by reading the rather thorough transport layer documentation found
in the source code itself that John H wrote.
For integration, you probably want to look here:
http://cwiki.apache.org/SHINDIGxSITE/how-to-support-features-that-depend-on-gadgetsrpc.html
>
>
> 2. I did an alert on the on the router of the pubsub.js "alert('pubsub: '
> +router);", it displayed
>
> pubsub: function A(E, C, D) {
> var F = B[E];
> if (typeof F === "function") {
> F(C, D);
> }
>
> What are those letters? the original source code didn't look like that. Is
> it somehow compressed? if so then can I turn compress off? if not please
> explain.
Adding debug=1 to either the iframe url or the script source will give you
the uncompressed version.
>
>
> Thanks!
> Han
RE: pubsub questions
Posted by Jordan Zimmerman <jo...@shop.com>.
>What are those letters? the original source code didn't look like that.
Is
>it somehow compressed? if so then can I turn compress off? if not
please
>explain.
There are two versions of the JS files. One for production that is
compressed and one for dev that isn't. Add "debug=1" to your URL to see
the dev version.
Jordan Zimmerman
Principal Software Architect
831.647.4712
831.214.2990 (cell)
jordanz@shop.com
SHOP*COMTM
Shop Smart, Save Big(tm)
www.shop.com
This message (including any attachments) is intended only for
the use of the individual or entity to which it is addressed and
may contain information that is non-public, proprietary,
privileged, confidential, and exempt from disclosure under
applicable law or may constitute as attorney work product.
If you are not the intended recipient, you are hereby notified
that any use, dissemination, distribution, or copying of this
communication is strictly prohibited. If you have received this
communication in error, notify us immediately by telephone and
(i) destroy this message if a facsimile or (ii) delete this
message
immediately if this is an electronic communication.
Thank you.