简体   繁体   English

使用jQuery从floatbox弹出窗口在原始页面div上执行.load

[英]Using jQuery to perform .load on originating page div, from floatbox popup

I have 3 pages, we'll call them Page A, B, & C. 我有3页,我们将其称为A,B和C页。

On Page A, Page C loads into a div. 在页面A上,页面C加载到div中。 Also on Page A, there's a link-click that opens Page B with Floatbox (like a popup). 同样在页面A上,有一个链接单击,可打开带有浮动框的页面B(如弹出窗口)。

On Page B, there's an onClick function that should reload Page C into the div that is located on page A (underneath the floatbox popup). 在页面B上,有一个onClick函数应将页面C重新加载到位于页面A上的div中(在floatbox弹出框下方)。

The function on Page B is currently trying to load the div onto Page B. I verified this by adding a copy of the div to Page B, and it loads there, as expected. Page B上的功能当前正在尝试将div加载到Page B上。我通过将div的副本添加到Page B进行了验证,并按预期将其加载到该位置。

How can I make the function on Page B target the div on Page A? 如何使页面B上的功能定位到页面A上的div?

On page B I'm using: 在B页上,我正在使用:

function functionName() {   
   $('#divName').loadfunction functionName('pageC.php');     {   
}

假设floatbox使用的是iframe,并且它们都在同一个域中,

parent.$("#divName").load("pageC.php");

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM