Feedback, LiveChat or Call me Buttons - How to - Ajax
I am looking for the best technology to provide customer ways to add ou开发者_StackOverflow社区r functionality through buttons on their websites.
I know this can be done adding button to a body and attaching a click listener but I am stumped at a point where I need to resize my iframe (UI after they click a button) and it cannot be done from internal iframe.
I wanted to check how getsatisfaction, invox, zendesk and other companies offer this functionality.
Is there a quick tip for this? I am just looking for modus operandi and not actual code.
this or google it with phrase "jquery mashup example" could only help you.
The solution you want to implement is not possible because of cross domain security (policy) browser will not allow you to communicate with parent window. If you are in same domain as parent window, then you could only be able to something like this in child (IFRAME)
$(function(){
window.parent.document.getElementById("thisAsIframe").width = 800;
window.parent.document.getElementById("thisAsIframe").height = 800;
});
精彩评论