douwei1408 2014-01-20 23:36
浏览 65
已采纳

需要一个创造性的JavaScript“Hack” - 预备表格

We have a new client at work that wants our call center to fill out applications on their website. We have all the data for the people calling into the call center and my boss wants me to make their application prepopulate with the name and other info from our database. Problem is their programmer is "under water" and at this time is not able or willing to change their form to help me out in any way.

I know plain old Javasccript can't do it (Same origin policy)..

But I have considered forcing everyone to use FireFox and writing a greasemonkey script.

I have also considered attempting to use PHP's cURL, but I'm not even sure that would work..

Both of those are really dirty solutions though.

Does any one have any creative solutions? I've been looking at this too long and could really use some outside input.

Thanks for looking

EDIT..

I should specify that we would be loading their application in a frame/iframe

  • 写回答

1条回答 默认 最新

  • duanbi5906 2014-01-20 23:40
    关注

    Write a script in JavaScript and then run it in Chrome with web security disabled:

    http://davfxx.wordpress.com/2012/08/22/how-to-disable-same-origin-policy-security-on-chrome/

    You'll have to start Chrome from a terminal, but this can easily be explained in a brief set of instructions. In my experience, it is much easier to disable the same-origin policy on Chrome than on other browsers.

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?

悬赏问题

  • ¥15 luckysheet
  • ¥15 ZABBIX6.0L连接数据库报错,如何解决?(操作系统-centos)
  • ¥15 找一位技术过硬的游戏pj程序员
  • ¥15 matlab生成电测深三层曲线模型代码
  • ¥50 随机森林与房贷信用风险模型
  • ¥50 buildozer打包kivy app失败
  • ¥30 在vs2022里运行python代码
  • ¥15 不同尺寸货物如何寻找合适的包装箱型谱
  • ¥15 求解 yolo算法问题
  • ¥15 虚拟机打包apk出现错误