weixin_33691817 2019-12-17 18:00 采纳率: 0%
浏览 32

包含ajax数据到div

I am using jquery ajax to simply load my website/PWA content into a div. The problem is the webpage inside of the div content is a social network and it has multiple links inside that are clickable and when clicked the window opens the links, breaking my customized header and footer. Is there a way to contain all the links clicked inside of the div contained to the div itself. Something similar to an iFrame. If that makes any sense. Does it help if the social network is a headless wordpress?

$('IdOfButton').click ( function () {
     $('content').load ('/signinup.php') ; 
} );
  • 写回答

1条回答 默认 最新

  • 关注

    You're missing id or class selector in both of your selectors

    JQuery selector can be class selector $('.class') or id $('#id') if you put no selector, like $('content') it will search for <content> elements

    评论

报告相同问题?

悬赏问题

  • ¥15 素材场景中光线烘焙后灯光失效
  • ¥15 请教一下各位,为什么我这个没有实现模拟点击
  • ¥15 执行 virtuoso 命令后,界面没有,cadence 启动不起来
  • ¥50 comfyui下连接animatediff节点生成视频质量非常差的原因
  • ¥20 有关区间dp的问题求解
  • ¥15 多电路系统共用电源的串扰问题
  • ¥15 slam rangenet++配置
  • ¥15 有没有研究水声通信方面的帮我改俩matlab代码
  • ¥15 ubuntu子系统密码忘记
  • ¥15 保护模式-系统加载-段寄存器