0

我已经查看了这里和 Magento 板上的所有回复,但仍然没有运气。

我有状态的下拉列表,通过 AJAX.Updater 调用从所选状态收集零售商店列表。FireBug 向我展示了 RESPONSE 和 HTML,但代码永远不会填写指定的 DIV。

这是我的电话,其中 str 是通过的状态缩写。

new Ajax.Updater($('txtHint'),'../php/getdealer.php?q='+str, { method:'get', });

关于为什么它不会显示在屏幕上的任何想法?

4

1 回答 1

3

应该

new Ajax.Updater($('txtHint'),'../php/getdealer.php?q='+str, { method:'get', });

不是

new Ajax.Updater('txtHint','../php/getdealer.php?q='+str, { method:'get' });

参考: http: //prototypejs.org/api/ajax/updater

于 2012-05-23T06:52:42.460 回答