[ 2 posts ]

Dmitri Snytkine

  • Username: lampcms.com
  • Joined: Thu Aug 27, 2009 6:04 am
  • Posts: 94
  • Location: Poconos, PA
  • Twitter: snytkine
  • GitHub: snytkine
  • Gists: snytkine
  • Offline
  • Profile
Tags:

How to make onClick call function that is inside YUI.use()?

Post Posted: Sun Jan 30, 2011 6:50 am
+0-
Here is the deal: I want to create an object inside the YUI3 use(),

For example I have a function that starts the Facebook signup process using Facebook Javascript library

With YUI2 that was not a problem. I had my own namespace object oSL
So I could add the onClick to just about any link in html like this: <a href="#" onclick="oSL.initFBSignup(); return false"><img class="hand" src="/images/fblogin.png" width="154" height="22" alt="Sign in with Facebook account"></a>

But now with YUI3 this initFBSignup will be insde the use() method, so how to I access it? I really need this onClick thing, I know it's old fashioned and some consider it not cool. But in some situations it's the easiest way to add it to template.

Any suggestions?

Alberto Santini

YUI Contributor

  • Offline
  • Profile
Tags:

Re: How to make onClick call function that is inside YUI.use

Post Posted: Sun Jan 30, 2011 8:51 am
+0-
Hello Dmitri.

You may use SimpleYUI [1].

Hope that helps,
IceBox

[1] http://www.yuiblog.com/blog/2010/09/03/ ... simpleyui/
  [ 2 posts ]
Display posts from previous:  Sort by  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum