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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T19:20:45+00:00 2026-05-28T19:20:45+00:00

After a .load() call some content (with images) some of the user’s profile image

  • 0

After a .load() call some content (with images) some of the user’s profile image path get broken…

And i am not sure if is a coincidence but it will only happen with the opengraph’s ones:

one example;

Iam trying to recive <div class="user"><img src="https://graph.facebook.com/652286316/picture" /></div>

But i get <div class="user"><img src="%20https://graph.facebook.com/652286316/picture" /></div>

Any idea why could this happen?

  • 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-28T19:20:47+00:00Added an answer on May 28, 2026 at 7:20 pm

    just wanted to add that if you don’t have access to the script feeding you the src for the image (eg when getting data from some external service), you can always replace the %20 using something like this (in javascript)

    function str_replace(needle, replacement, haystack) {
    var temp = haystack.split(needle);
    return temp.join(replacement);
    }
    

    and then use

    var $new_src =  str_replace('%20', '', $old_src);
    

    please note that this assumes that ALL spaces – %20 – are unwanted in your img src, which might not be the case

    ps. : this does NOT fix the problem, just avoids it.. you might want to see what’s wrong with your code

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

Sidebar

Related Questions

I render some new content with .html() after ajax call into my site. $.getJSON(scriptURL,
I'm trying to call a function after I load some XML into Actionscript, and
I need to perform an action after a jQuery .load call, currently this is
Having a little difficulty getting a function to call after a .load: $(function(){ $('a.pageFetcher').click(function(){
i'm working on a project with a lot of images but after i load
I updates a div content with some html via an ajax call, and I
I am using Isotope and infinitescroll to load images into an image gallery. I
I'm creating a website where I'm doing ajax requests to load some dynamic content
I try to do some simple Ajax call with refresh of page content with
I am using jQuery to load some data inside a div, after posting some

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.