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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T15:42:32+00:00 2026-06-17T15:42:32+00:00

i try to load a div from another website but when i load, img

  • 0

i try to load a div from another website but when i load, img src is not full path so i can’t see images so i need to replace them with full true path. i try but it does’nt work. How can i solve my proble?

<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <script type="text/javascript" src="jquery.min.js"></script>
</head>

    <div id="pull"></div>
 <script>

   $.ajax({
       url: "http://www.example.com",
       cache: false,type: "POST"
       }).done(function( html ) {
           var news=$(html).find('.news_slider');
           $(news).find('img').attr("src",$(news).find('img').attr("src").
           replace(".images/","http://www.example.com/images/"));
          $("#pull").append(haberler);
       });
</script>
</body>
</html>

And i tested it on my android mobile app which is programmed with titanium mobile but webview ui rendered it with wrong screen resolution. İt was very big view. How can i solve it? my titanium code is like that:

var win5 = Titanium.UI.createWindow({
    title : 'Servisler',
    backgroundColor : '#CEE6F2'
 });
var tab5 = Titanium.UI.createTab({
icon : 'duyuru.png',
title : 'Servisler',
window : win5
 });

var servis = Ti.UI.createWebView({
url : 'servis.html',//upside code is servis.html
 width:'100%'
 });
win5.add(servis);

thanks your interests..

  • 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-06-17T15:42:37+00:00Added an answer on June 17, 2026 at 3:42 pm

    You shouldn’t be able to access the other site with AJAX due to cross domain restrictions.

    To answer how to change all the images:

    You need to loop over each image which can be done several ways using each or attr() has a function argument that will do it also

    $(news).find('img').attr("src", function( i, SRC){
         return SRC.replace(".images/","http://www.example.com/images/");
    });
    

    API refernce: http://api.jquery.com/attr

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

Sidebar

Related Questions

I was try to load unlimited categories to dropdownlist but I failed. **Categories** ID,
i am trying to load images from the northwind database (categories table, images that
I want to load an HTML div from an html file hosted on windows
I have a site, where I load a list of images (thumbnails) from the
I'm trying to pull the contents of Div from another page of the site
I have used jquery to load some html from another page and added the
I'm simply trying to pull a div from a page called Load-about.php to my
I try to load the customview class that is inside my mainclass in xml.
I try to load data into a certain column into a table with the
I try to load a node only to face the EInvalidPointer error on Delphi.

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.