javascript - JS to popup my webpage in a third-party site -
i need popup webpage within our customer's websites. webpage gathers data in input boxes , closes --- ie. it's basic form , need display , give close button user.
what's best js tool this? found colorbox , looks cool, concerned break customer's site requires jquery (and customer may using older version colorbox pulls in).
my opinion struggle achieve given cross-site scripting prevention mechanisms in browsers.
you cannot load page using ajax domain example.
you can load page using "workaround", uses javascript load content external url document.writing javascript script tag url of page, mimics http get. (example here xss)
you not able post resulting form site, javascript read form data , create request building querystring of url.
edit
<iframe id="myframe" style="display:none" src="mysite.com/page"/>
...
function show() { document.getelementbyid("myframe").style.display = "block"; } function hide() { document.getelementbyid("myframe").style.display = "none"; }
Comments
Post a Comment