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 5986707
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T22:42:37+00:00 2026-05-22T22:42:37+00:00

I am using jquery to display results get by json object, here for image

  • 0

I am using jquery to display results get by json object, here for image tag i used a hardcoded value.

$.getJSON("http://192.168.1.9:8983/solr/db/select/?wt=json&&start=0&rows=100&q=" + q + "&json.wrf=?", function(result) {
    $.each(result.response.docs, function(i, item) {
        html += "<br>UID_PK: =" + item.UID_PK;
        html += "<br>Name: =" + item.name;
        var src1 = "ABW0149_reg.jpg";
        html += "<img src=" + src1 + " />";
    });

    $("#result").html(html);
});

where “result” is a <div>

my problem is when i put ABW0149_reg.jpg in the same directory in which my this html file is it display the image but when i want to use image from some other path i do like this
file:///E:/ABW0149_reg.jpg but it does not display the image. Why is so, tell me how can i use image from some other source.

  • 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-22T22:42:38+00:00Added an answer on May 22, 2026 at 10:42 pm

    I think the issue here is that all modern browsers prohibit displaying local (file:///) images embedded in non-local (http://) pages.

    It should work if you use some other remote path (like 192.168.1.10/images/image.jpg).

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

Sidebar

Related Questions

I'm using jQuery's $.ajax method to call getjson.php which returns a JSON object using
I'm attempting to following the tutorials found here: http://www.ifadey.com/2010/06/crud-using-jquery-and-codeigniter/ My code is updated to
I have been using jquery ajax method to get the json data. I have
I'm using jQuery ColorBox to display a shopping cart item. When a user enters
I am trying to find a way using jquery without cookies to display a
How to prompt browser to display open/save dialog box using jquery?
Using jQuery, is there a way to select all tag that reference a specific
I am using Asp.net with jquery I wanted to display information for a specific
Im using the plugin detailed here: http://www.thatagency.com/design-studio-blog/2009/01/refreshing-an-element-at-a-set-time-interval-using-jquery-and-a-sprinkle-of-ajax/ Here is my jQuery: $(document).ready(function(){ var j
I have used jQuery to display info for a record depending on some user

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.