How to use jQuery .subscribe()?

Diego Ramos picture Diego Ramos · Aug 12, 2012 · Viewed 24k times · Source

I've been trying to use $.subscribe but it doesn't seem to work. I downloaded a WAR project where it does work but when I use this function in my project it doesn't work. Do I have to download an extra plugin?

Because I couldn't find info about these functions in the jQuery website either, I just found the new $.Callbacks() function. The reason I need to use $.subscribe is so I can use something like onBeforeTopic.

Thanks in advance.

Answer

Bart Platak picture Bart Platak · Aug 12, 2012

You will need Publish/subscribe plugin.

I stand corrected: you will need Struts2 jQuery Plugin.