问题标签 [chained]

For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.

0 投票
1 回答
636 浏览

autocomplete - 具有自动完成功能的链式组合框,自动完成数据应来自 db 表

如何使用自动完成功能制作链式组合框,无需重新加载页面自动完成数据应来自 db 表。

0 投票
1 回答
2857 浏览

paypal - 580022 - 收款人所在的国家/地区无法接收付款

我正在使用 PHP 制作一个众筹网站,我正在使用预先批准和链式支付。

我能够以编程方式创建和取消预先批准的付款就好了,但是当我尝试支付其中一个时,我收到错误:

580022 - 收款人所在的国家/地区无法接收付款

我有两个接收者,主要接收者获得 95% 的金额,并且是被质押项目的所有者。剩下的 5% 作为佣金给我。

两个接收者都有英国 PayPal 帐户,我正在沙盒中工作。

知道有什么问题吗?我希望这个功能可以在英国使用,否则我一路来都是白费的!

我正在使用此 API 进行付款:https ://github.com/angelleye/paypal/

这是发送到贝宝的生成的 XML:

任何人都可以帮忙吗?

谢谢,

0 投票
1 回答
2390 浏览

cloud - parse.com 云嵌套函数

我正在尝试在 parse.com 上为以下内容编写云代码。我有三个类用户,品牌和活动。我将 LastLoginTime 保留在 User 类中。Brand 类有一个名为 Campaigns 到 Campaign 类的关系。我需要从用户那里检索 LastLoginTime,然后获取所有更新日期大于 LastLoginTime 的活动,最后我需要检索与这些活动相关的品牌。到目前为止,我只能创建一个函数来获取 LastLoginTime。我曾尝试使用 matchesKeyInQuery 或链式函数,但未能解决。这是到目前为止的代码。

以上有效,以下无效:

有没有办法或者我需要改变我的模型。

0 投票
1 回答
135 浏览

perl - Catalyst 链式路由“循环”

我有一个我无法解决的问题,希望你能帮忙:)

我已经构建了一个带有 Web 界面的 CataPLACK 应用程序。现在我应该建立一个 JSON/REST/XML-Api,所以我想我可以做这样的事情:

我如何将 api 循环回根 (/),这样我就可以用不同的视图重新调度整个请求,而不必建立很多“假例程”?

我觉得必须有一个干净的方式......

0 投票
1 回答
311 浏览

javascript - Populate chained select menu

I am working on a chained select menu, which you can see here - http://jsfiddle.net/stocktrader/EhUKJ/. I have it coded so that the "country" selection changes the "state/zip/city" options via show/hide. All of that is working well.

But my problems is that this form is also used for updating this information for each person. And when I populate the form with current data, I can't get the correct show/hide settings to trigger based on the country setting. You can see an example in the current fiddle where I pre-selected "United States", but the "city/state/zip" options don't come up. The DO come up if you click to a different country and then back on.

I attempted to write some JavaScript that would change the populated show/hide settings by retrieving the "country" value but I don't know JavaScript at all. I tried the below code, which is in the fiddle, but I doubt it is even close.

0 投票
1 回答
12488 浏览

javascript - D3.js 用于不同形状的复合动画的链式转换

我正在尝试做的...

我正在玩弄 D3 来制作复合动画。我有以下最终状态:

在此处输入图像描述

本质上我想要连接点的动画 - 添加第一个圆圈。然后将线画到第二个圆圈。绘制线后,将添加第二个圆圈。

为了增加一些视觉吸引力,我执行了其他过渡,例如在绘制线条时更改第一个和第二个圆的半径。

我试过的...

我可以添加圆圈并单独绘制线条,包括动画。但是,我不确定如何将过渡链接在一起以形成复合动画。

读过关于 transitions/animations的文章,它建议使用each("end"). 虽然这可以绘制初始对象,但 end 直到其他转换之后才会触发。

问题

  • 是否使用each("end", ...)正确的方法来链接转换?
  • 我如何开始另一个动画(即开始画线),同时仍然允许另一个过渡完成(即第一个圆半径爆发)。
0 投票
1 回答
1597 浏览

list - jqGrid 在表单编辑中使用链式选择列表出现问题

在这个论坛上寻找一些解决这些问题的方法但没有成功之后,我希望有人能花一些时间来推动我了解发生了什么以及如何解决它。

这是麻烦的快照:

在此处输入图像描述

以及来自服务器的 JSON 响应:

(最后一个单元格是上面选定的行)

如您所见,所选行中的信息和编辑表单('S/famille')中的信息不相似!这是因为第二个列表框没有填充好项目,这取决于第一个列表框。

我怎样才能用好的项目初始化这个列表?根据论坛上的一些帖子,我尝试了几种方法都没有成功。

2013 年 4 月 5 日更新

首先,这些列表框的 colModels :

以及用于编辑按钮的代码,我从 rowdata 中获取 id 用于最初加载第二个列表框,并在单击导航按钮时从上一行/下一行获取 id:

最后,当从主网格中选择一行时,我从 rowdata 中获取 id 来加载第二个列表:

奥列格,如果你有时间看看,非常感谢你告诉我关于这段代码的评论,这样我就可以减少新手了!再次感谢您分享您的经验。祝你今天过得愉快。继和

2013 年 4 月 8 日更新

我应用了 Oleg 的一些评论,让我获得更清晰的代码。非常感谢奥列格,我非常感谢您的经验推动。因为你,我越来越爱 jqGrid。

  1. 关于'dataEvents',我不明白你为什么告诉我使用它,e.target。我已经看到它可以在编辑选项中使用,但我不知道你的意思。
  2. 当我编辑一行并使用 pgButtons 导航时,会使用变量“selectedId”。如果我不记住新的行 ID,则第二个列表框不会更新并且与第一个框不同。
  3. 一个新点,当我验证表单时,我在 Firebug 中看到所有发布到服务器的对。 在此处输入图像描述

如您所见,第一个元素是空白的,有一个值,在我看来它是“sfm”,即第二个列表框的 colName。请您知道为什么会发生这种情况以及如何解决它?

我希望不要用这些连续的问题来打扰你。我没有找到任何可以给我一些关于编码 jqGrid 的知识的书。我希望这几乎可以存在。提前感谢您花时间。祝你今天过得愉快。继和

0 投票
1 回答
389 浏览

php - 使用二维关联 php 数组中的值进行链接选择

我有一个形式的二维数组:

我有一个像这样的表格:

其中选择菜单的 A、B 和 C 的内容是根据先前选择的选择菜单选项填充的。

就像 A 的值是android、ios、windows一样,B 的值是htc、lumia、iphone、samsung,而 C 的值是htc one、htc first、lumia 920、iphone4、iphone5、galaxy 4

有谁知道我该怎么做?

谢谢!

0 投票
1 回答
1748 浏览

paypal - Chained payments and refunds

I have a question regarding chained payments and refunds. We are developing an application that sets up a chained payment, with ourselves as the primary receiver and the provider of the service as the secondary receiver. We provide a mechanism for the secondary receiver to refund the complete payment.

What we want to know is what happens when the secondary receiver has no funds in their paypal account? From testing this in the sandbox and from what we've read, it seems that the secondary receiver component of the refund becomes pending (we assume, as funds are pulled down from an associated bank account). Three things:

  1. Has the primary receiver paid the refund in full and is now waiting to get the payment from the secondary receiver. Implying that, at this point in time, the primary receiver is out of pocket?

  2. What happens if funds cannot be pulled down from the secondary receivers associated bank account?

  3. What happens if we attempt a refund from an unverified user with no funds in their paypal account? Once again, does the primary receiver pay the refund in full and hope to collect the secondary receivers portion when they do have funds?

0 投票
1 回答
664 浏览

jquery - Jquery链式选择框,如何禁用空白选项

这是html代码和

这是我的链式选择功能。在 action.php 中创建选项的 Mysql 进程。

这是事情,当我使用这个功能时,结果是

我不想要空值,因为我需要这些信息。我在任何地方都没有写过空值。php文件没有问题,因为当我改变了这个

对此

无论如何,它都会在顶部添加空白值。

如何禁用该过程或如何在操作后删除空白值。

此外,当我使用来自成功的“e”时,它包括元标记和我在 action.php 中用于语言字符集的一些其他头部元素。我怎样才能清理这些?