Welcome to ShenZhenJia Knowledge Sharing Community for programmer and developer-Open, Learning and Share
menu search
person
Welcome To Ask or Share your Answers For Others

Categories

<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>

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

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
thumb_up_alt 0 like thumb_down_alt 0 dislike
280 views
Welcome To Ask or Share your Answers For Others

1 Answer

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


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
thumb_up_alt 0 like thumb_down_alt 0 dislike
Welcome to ShenZhenJia Knowledge Sharing Community for programmer and developer-Open, Learning and Share
...