views:

190

answers:

0

Hello all, I am building a small facebook application in an iframe mod. In my application I want to enable my users to search their friends. After working a bit with XFBML I’ve added the following code to my aspx page:

<fb:serverfbml> 
    <script type="text/fbml">
         <fb:fbml>
             <fb:multi-friend-input width="150px" border_color="#8496ba"  />
         </fb:fbml>
      </script>
  /fb:serverfbml>

Now I’ve got an auto-completebox, which searchers for the users’ friends. Now, on postback I want to read these values. My problem is that I don’t seem to be able to retrieve them at all! So I wrapped this code inside a div like this:

<div runat="server" id="friendsNames">
                <fb:serverfbml> 
                    <script type="text/fbml">
                    <fb:fbml>
                        <fb:multi-friend-input width="150px" border_color="#8496ba"  />
                     </fb:fbml>
                    </script>
                </fb:serverfbml>
</div>

And now I use my javascript code to retreive the div. When I want to view the html I receive the following code:

              <fb:serverfbml class=" FB_serverFbml FB_ElementReady"> 
                    <script type="text/fbml">
                    <fb:fbml>
                        <fb:multi-friend-input width="150px" border_color="#8496ba" id="bla"  />
                     </fb:fbml>
                    </script>
 <iframe name="fbmlIFrame_0" frameborder="0" src="http://89.139.181.250:8080/socialtodo/xd_receiver.htm" class="fbmlIframe" scrolling="no" style="height: 553px; "></iframe></fb:serverfbml>

Yes, you read it right. I got an iframe out of nowhere. Now the really strange thing is that when I view the auto-completecontrol using Google Chrome’s ‘’Inspect Element” I do get the correct values, for example:

<span>
<input type="hidden" class="fb_token_hidden_input" fb_protected="true" name="ids[]" value="100000038473670">
"Alferon De"
--some more text --
</span>

[by the way if you're wondering why input doesn't get closed... I have no idea]

Any ideas will be greatly appreciated!