views:

296

answers:

1

Why cant I access the embedded app elements?

Looking at the HTML, the app is put inside a div but when I try to find the div contents, e.g.

$("input").get()

I only see input element of FB, not the app. I injected jQuery after the page load with FireQuery plugin.

How can the HTML looks fine but cannot be traversed with jQuery?

A: 

Your app is an iframe app right?

What happens if you load jquery normally in your html for your iframe? That should work to access DOM elements in your iframe...it works for my iframe Facebook apps.

I haven't played with FireQuery, but it sounds like it dynamically injects jquery for experimenting/debugging. I'm guessing you are somehow loading it into the Facebook domain, not your iframe.

Pat James