Magento和AJAX.Updater [英] Magento and AJAX.Updater

查看:82
本文介绍了Magento和AJAX.Updater的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经仔细阅读了此处以及Magento板上的所有回复,仍然没有运气.

I have looked through all the responses here and on the Magento boards and still no luck.

我已经下拉了状态列表,并通过AJAX.Updater调用从所选状态收集了零售商店的列表. FireBug向我展示了RESPONSE和HTML,但代码从未填充指定的DIV.

I have drop down list of states, with an AJAX.Updater call to gather a list of retail stores from the state selected. FireBug is showing me the RESPONSE is there and the HTML as well, but the code never fills in the DIV being specified.

这是我的电话,str是通过状态的缩写.

Here is my call with str being the passed state abbreviation.

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

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

Any thoughts as to why it won't display on screen?

推荐答案

应该

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

这篇关于Magento和AJAX.Updater的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆