Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6245749
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T12:33:45+00:00 2026-05-24T12:33:45+00:00

$.ajax({ type: ‘POST’, dataType: ‘json’, url: http://domainsvault.com/test.json, error: function(){alert(‘An unexpected Error occured while processing

  • 0
$.ajax({
type: 'POST',
dataType: 'json',
url: "http://domainsvault.com/test.json",
error: function(){alert('An unexpected Error occured while processing the resquest, reload the page to try again');},
timeout: 7200,
success: function()
{
    document.write('<div style="background:#FFF;color:#000;height:12px;padding:10px" id="info"></div>');
    $.each(data.items, function(i, item)
    {
        //document.write('<img src="'+item.image_url+'" border="0" onClick="alert(\''+item.description+'\')" /><br />');
        document.write('<img src="'+item.image_url+'" border="0" class="imginfo" rel="'+item.description+'" alt="'+item.name+'" />&nbsp;');
    });
}

});

the JSON http://domainsvault.com/test.json

{"items":[{"name":"hamburger","description":"A two-patty cheeseburger","image_url":"http://www.rw-designer.com/icon-view/5734.png"},{"name":"hot dog","description":"A hot dog with mustard","image_url":"http://www.rw-designer.com/icon-view/5735.png"},{"name":"pizza","description":"Pepperoni pizza","image_url":"http://www.rw-designer.com/icon-view/5743.png"},{"name":"ice cream","description":"Soft-serve ice cream","image_url":"http://www.rw-designer.com/icon-view/5739.png"},{"name":"fountain drink","description":"Ice cold drink","image_url":"http://www.rw-designer.com/icon-view/5741.png"}]}

Far as I can tell the JSON is valid. The code is working if I hardcode the string it works fine for the $.each(). However attempting to get the JSON from the URI via post or get my response in Firebug is “200 OK” and shows it in red as if the File wasn’t found.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-24T12:33:46+00:00Added an answer on May 24, 2026 at 12:33 pm

    Look at the response you are getting.

    enter image description here

    http://jsfiddle.net/praveen_prasad/tnaWd/

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

function postForm() { $.ajax({ type: POST, data: $(#myForm).serialize(), dataType: json, url: '<%= Url.Action(JSONRequest,Home) %>',
$.ajax({ type: POST, url: ajax.php, dataType: 'json', data: callback=bumpup_contact_us_entry&id= + id, success: function(data){ $.each(data,
function check_username(){ $.ajax({ type: POST, dataType: 'json', url: /ajax/check/username.html, data: via=ajax&username=+$('input[name=register_username]').val(), success: function(msg){ if(msg.response==false){
I have datestring =name=one $.ajax({ type: POST, url: 'url.com', data:datastring, complete: function(data){ alert(data); }
I have the following javascript: $.ajax({ type: "POST", dataType: "json", url: "/Home/Submit", data: {
$.ajax({ type: POST, url: url, success: function(msg){ alert(msg); } data: html }); after this,
I have the following code: $.ajax({ type: POST, url: url, data: sendable, dataType: json,
$.ajax( { type: POST, url: Default.aspx/GetAge, data: {}, contentType: application/json; charset=uft-8, dataType: json, success:
$.ajax({ type: GET, url: http://maps.googleapis.com/maps/api/directions/json?origin=ajax& destination=toronto&region=ca&avoid=tolls&sensor=false, dataType: jsonp, success: function(jsonp) { alert(jsonp); console.log(jsonp); }
I have this jQuery code: $.ajax({ type: POST, url: /problems/vote.php, dataType: json, data: dataString,

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.