How do I write javascript that is applicable to only one screen?
When you add a custom JavaScript for your widget the script gets loaded on all views of the widget but sometimes, you want the code that is applicable to only certain pages of the widget or only if certain field is shown, then you should make call to your functionality using YAHOO.util.Event.onContentReady functionality. You can read more about YAHOO.util.Event.onContentReady at http://developer.yahoo.com/yui/docs/YAHOO.util.Event.html
Looking
for a Referral or a Loyalty Program?
NextBee has robust and feature rich platform | |
We guarantee your ROI | |
No long term contract to sign | |
Hassle free zero cost IT setup |
Related Topics
-
Basics - About NextBee and Word of Mouth Referral Programs
-
Get Started with NextBee - Setup and Customization
-
Word of Mouth Marketing Campaign Promotion Ideas and Tips
- How big should be the incentive?
- How do I optimize my referral email to get buzz on Facebook?
- What is the first promotion step to take after the campaign goes live?
- How do I optimize my referral email to get buzz on Twitter?
- What are some of the ways to grab attention of users to my promotion?
- View all (25 more)
-
Guide to Managing/Editing/Personalizing your NextBee Account and Data
-
NextBee's Partners Program