dounao1856 2015-08-19 08:44
浏览 37
已采纳

AJAX请求和页面javascript没有注册?

On an order confirmation page I am making an AJAX request to a page that has a javascript code that tracks cookies and records data. When I fire the request to the other page with the javascript code nothing seems to be happening.

Is this because javascript is executed on the client side and the AJAX request is only getting the server side response?

Thanks,

  • 写回答

1条回答 默认 最新

  • doujiyan0031 2015-08-19 08:46
    关注

    Yes that is correct, in order to fire the javascript code on another page you have to load the page.

    There are a couple of (dirty) tricks to do this and I would recommend not using any of them.


    Your best call is to load the cookie from the order confirmation page (which is origin based, so can be used on other pages on the same domain)
    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?

悬赏问题

  • ¥30 python代码,帮调试
  • ¥15 #MATLAB仿真#车辆换道路径规划
  • ¥15 java 操作 elasticsearch 8.1 实现 索引的重建
  • ¥15 数据可视化Python
  • ¥15 要给毕业设计添加扫码登录的功能!!有偿
  • ¥15 kafka 分区副本增加会导致消息丢失或者不可用吗?
  • ¥15 微信公众号自制会员卡没有收款渠道啊
  • ¥100 Jenkins自动化部署—悬赏100元
  • ¥15 关于#python#的问题:求帮写python代码
  • ¥20 MATLAB画图图形出现上下震荡的线条