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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T08:49:44+00:00 2026-05-24T08:49:44+00:00

This may be a very simple question, but I haven’t found an answer to

  • 0

This may be a very simple question, but I haven’t found an answer to this question that works in my situation yet. I am extremely new to jQuery and JavaScript, mind you. Anyway, I’m using a jQuery plug-in called “jGFeed” that returns to me an object containing important information about a feed. The code for such looks like this:

$.jGFeed('http://weather.yahooapis.com/forecastrss?p=USOR0186&u=f', function(feed) {
    if(!feed) {
        return false;
    }
    var html = feed.entries[0].content;
}

By this point, the “html” variable will now contain a string of HTML code resembling something like this:

<img src="http://l.yimg.com/a/i/us/we/52/28.gif"/><br />
<b>Current Conditions:</b><br />
Mostly Cloudy, 73 F<BR /><BR />
<b>Forecast:</b><BR />
Tue - Showers Late. High: 74 Low: 50<br />
Wed - Scattered Thunderstorms. High: 70 Low: 42<br /><br />
<a href="http://us.rd.yahoo.com/dailynews/rss/weather/Klamath_Falls__OR/*http://weather.yahoo.com/forecast/USOR0186_f.html">Full Forecast at Yahoo! Weather</a><BR/><BR/>
(provided by <a href="http://www.weather.com" >The Weather Channel</a>)<br/>

Now I’ve seen a lot of ways to parse HTML strings to get the content I want, but they all refer to an element’s class or ID in order to find the desired information. What I really want is the image url (http://l.yimg.com/a/i/us/we/52/28.gif), the current weather text and temperature (Mostly Cloudy, 73 F), and the two days provided along with their temperatures and conditions. Is there a way to extract just this information with jQuery?

  • 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-24T08:49:44+00:00Added an answer on May 24, 2026 at 8:49 am

    You can use jQuery selectors to search within your variable by doing like this:

    $(selector,yourVariableWhichHasThatHTML)
    

    So you want to get the image url?

    $('img',yourVariableWhichHasThatHTML).attr('src');
    

    But I would guess that in your jGfeed plugin you could straightly access to these via the feed variable? if you are using firebug or chrome, try writing: console.log(feed); after var html = feed.entries[0].content. Then if you open developer tools and console tab, you should see what the feed variable has eaten.

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

Sidebar

Related Questions

This question might appear very simple, but i haven't found an answer yet, so
This question may look to be very simple but i don't know the answer.
This may be very simple question,But please help me. i wanted to know what
this may be a very simple question, but is it possible to force a
This may be a very simple problem, but I couldn't find an answer googleing
This may seem like a very simple question, but I have been struggling with
This may be a very simple question, but at the moment I don't actually
I think this may be a very simple question, but I am only just
I realize this may be a very simple question but I need to know
This may turn out to be a simple question with a very complex answer,

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.