Notices

Great community. Great ideas.

Welcome to ASP/Free, a community dedicated to helping beginners and professionals alike in improving their knowledge of Microsoft's development and administration technologies. Sign up today to gain access to the combined insight of tens of thousands of members.

Thread: How to extract img src from an external list

Results 1 to 3 of 3
Share This Thread →
  1. #1
    sallam2u is offline Registered User
    Join Date
    Sep 2012
    Posts
    1
    Rep Power
    0

    How to extract img src from an external list

    Greetings

    I need your help please..
    I have a website of 20 pages. Each page displays an image from a catalog located in another domain, and the catalog changes each week, so I have to change the img src attribute each week too (the jpg images are named differently each week, though in the same directory). So instead of editing 20 html pages each time, I'm trying to find a way to control the img src from a text file, so that I edit only that text file once a week.

    Is there a way to extract img src attributes from a text file or js file please?
    For example I need page 1 to extract the first img src listed in the text file, and page 2 to extract the second src listed, etc.
    I'm new to js so please give an example of the code that I should use.

    Many thanks.

  2. #2
    markWilson's Avatar
    markWilson is offline Contributing User
    Join Date
    Aug 2008
    Posts
    1,556
    Rep Power
    342
    Hi,

    welcomes you

    there will be two option which will make your work easy.
    1. assign one unique id on each image src , base on that retrieve the src form database base on page and image id (unique on entire application)

    2. keep all src on xml file read the xml file when your page get load and again base on id retrieve the image src.

    hope it will help you .
    if you found this post is useful click Give Rep button (bottom side on this reply ) and agree

    Andriod KitKat
    Jquery Shake Effect ,

    Thank You,
    KiranK

  3. #3
    annaharris is offline Registered User
    Join Date
    Mar 2012
    Location
    USA
    Posts
    76
    Rep Power
    0
    It is easy to extract img src from an external file after giving some unique id to every single image.

Share This Thread →

Become Part of This Conversation

Join NowFor Free!

Similar Threads

  1. Load list in drop down with tickbox
    By antonyx in forum HTML, JavaScript And CSS Help
    Replies: 1
    Last Post: March 21st, 2007, 12:58 PM
  2. System hangs when trying to create a folder with ASP
    By ImSir2U in forum ASP Development
    Replies: 9
    Last Post: November 8th, 2005, 06:42 PM
  3. Compare list box results, display similar records
    By grayday in forum Microsoft Access Help
    Replies: 3
    Last Post: July 13th, 2004, 05:33 PM
  4. Attention read this. important
    By Steve Schofield in forum ASP Development
    Replies: 1
    Last Post: January 19th, 2001, 10:21 AM

ASP Free Advertisers and Affiliates