Reputation: 3512
I have an web page that is a widget and has to be embedded on another website (the domain is not the same)
I tried using the iframe approach
This works but the problem is that the height of my page increases according to the height. I cannot use javascript to access the content height because the domain is different and the call is blocked due to cross site scripting.
Is there any easy solution available for this problem.
Upvotes: 2
Views: 452
Reputation: 345
one option would be to make a little mini API on the widget side.
calculate the height. and let the other webpage get that information via JASONP(which is basically cross site scripting).
heres some info about JASONP What is JSONP all about?
Upvotes: 1