ajax错误:未捕获ReferenceError:未定义Ajax [英] ajax error: Uncaught ReferenceError: Ajax is not defined

查看:96
本文介绍了ajax错误:未捕获ReferenceError:未定义Ajax的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

<Script>
        new Ajax.Request('http://impact.brighterplanet.com/automobiles.json', {
                automobile_fuel:'diesel',
                daily_distance:'1389.45',
                size_class:'Midsize suv',
                timeframe:2013-01-01/F2014-01-01,
                KEY:'46feab14298d36f0d8b48304f81fe068',

                onSuccess: function(response) {
                    alert(response.decisions.carbon.object.value);
                }
        });

</script>

我遇到一个错误未捕获的ReferenceError:未定义Ajax"我该怎么办......................................

i have one error "Uncaught ReferenceError: Ajax is not defined " what can i do................................

推荐答案

我想您正在使用原型.您是否在此脚本标记之前包含了适当的js文件?

I suppose you are using Prototype. Have you included the appropriate js files before this script tag?

这篇关于ajax错误:未捕获ReferenceError:未定义Ajax的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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