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

  • SEARCH
  • Home
  • 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 7660731
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T13:30:20+00:00 2026-05-31T13:30:20+00:00

I have fetched json through <script> function getjs() { var script =document.createElement(script); script.setAttribute(type,text/javascript); script.setAttribute(src,http://localhost:8080/vigs/f4json?user=3&callback=gr);

  • 0

I have fetched json through

<script>
    function getjs()
    {
        var script =document.createElement("script");
        script.setAttribute("type","text/javascript");
        script.setAttribute("src","http://localhost:8080/vigs/f4json?user=3&callback=gr");
        document.body.appendChild(script);
    }
    var i=0;
    function gr(data)
    {
        for(i=0;i<data.size;i++)
        {
            document.getElementById('w').innerHTML =data.itemr[i].itmurl;
        }
    }
</script>

so, after fetching the urls it simply displays url of images in my div. I just confused how to write up code in jquery for same above task but also display images (by generating dynamix image tag appended to next one by one based on size in div) in my div with id mydiv.Or any alternative ?

your help would be appreciated..
thanks

  • 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-31T13:30:20+00:00Added an answer on May 31, 2026 at 1:30 pm

    Using JavaScript

    function gr(data)
    {
      var w = document.getElementById('w');
      for(i=0;i<data.itemr.length;i++)
      {
          var img = document.createElement('img');
          img.src = data.itemr[i].itmurl;
          w.appendChild(img);
      }
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have this NodeJS app which fetches JSON-type response from a web application and
I have a php file that outputs json encoded text via echo '(' .
I have to make an sqlite db from data fetched from a JSON API.
I have an array of objects which was fetched from a JSON (JSONP) file
Ok, so I have a script to fetched images from Google's Picasa image service
I have fetched Json with JSONKit from url to NSDictionary in initWithNibName NSData *jsonData
I have a list of JSON generated data, fetched from a MySQL database. What
I have a resource which is fetched from a JSON API. The JSON is
I have made a chat script using php, mysql and jquery. It uses json
I have two tables with list of urls fetched from different sources. I want

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.