views:

435

answers:

2
+1  Q: 

FBJS and Dom Ready

I want to know how can I use $(document).ready or something like that in FBJS for Facebook applications. I tried $(document).ready but it ain't working. Also I couldn't find any associated document...

+1  A: 

Are you including the jQuery code first?

<script type="text/javascript"
        src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.7.2/jquery-ui.min.js"&gt;
</script>
tvanfosson
+1  A: 

By saying you are trying to use FBJS it implies you are building an FBML app. Is that correct? You can't use Jquery with an FBML app. If you want to use jquery you need to build an Iframe app or external connect app...in which case you can't use FBJS.

Or are you trying to use the Facebook javascript client library (which is not FBJS)?

Pat James