Query Amazon with javascript

Posted on 2014-07-16
Last Modified: 2014-08-14
ok so I have been banging my head over this for sometime now and I think it is time to get you "Experts" involved.
I am trying to query amazon using JavaScript with the following code.  initially I am only trying to retrieve one record using its ASIN, but would like to have it search more than one  in the future.
The issue I am encountering is that although the initial call was successful upon running again the page renders and it is blank.  I am assuming that it is due to the signature but cannot figure out how to overcome.

Any help would be great.

<script src="jquery.js"></script>
<script src="jquery.xdomainajax.js"></script>



    url: ''+
    type: 'GET',
    dataType: "xml",
    success: function(res) {

        var xml = $.parseXML(res.responseText);
        var $tmp = $( xml );
        var tmp2 = $tmp.find( "head" );

	error: function(){



Open in new window

Question by:jriver12
    LVL 81

    Expert Comment

    could you paste what you get with line 22?

    Author Comment

    I don't get anything. Just blank screen.
    LVL 81

    Accepted Solution

    unless some condition Ajax call are not allowed cross domain/protocol
    that mean than your page residing on CAN'T get data from

    you need to use a server side language to get the content and send it back to your page
    1 - so your page call your server side function and ask him to dowload the right content
    2 - your server get the content from amazon :
    3 - your server send the content requested to/by your page

    Author Comment

    I will check in am and update on condition.


    Author Comment

    Well have had no luck. I have been trying to do it with coldfusion.
    LVL 81

    Expert Comment

    so ? you did not find any coldfusion proxy code? I posted one some months ago for a similar question

    Author Comment

    no I have not, at least any that work.  Do you still have that code you posted?  If possible can I take a look?
    LVL 58

    Expert Comment

    I've requested that this question be deleted for the following reason:

    The question has either no comments or not enough useful information to be called an "answer".

    Author Closing Comment

    Thanks for the push in the right direction. unfortunately the new API would not render the information we needed.  

    thanks again.

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Free Trending Threat Insights Every Day

    Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

    To properly understand GitHub, let’s divide it into two words ‘Git’ and ‘Hub’. Git is basically a ‘Distribution Version Control’ (DVC) and ‘Source Code Management’ (SCM) system widely used by software programmers while Hub means the efficient centre…
    I found this questions asking how to do this in many different forums, so I will describe here how to implement a solution using PHP and AJAX. The logical flow for the problem should be: Write an event handler for the first drop down box to get …
    The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…
    This video is a brief demonstration on how to use security groups and Network Access Control Lists (ACLs) in Amazon Web Services.  Security groups and Network ACLs are mechanisms you can use in AWS to control network traffic.

    758 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    10 Experts available now in Live!

    Get 1:1 Help Now