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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T05:01:31+00:00 2026-06-07T05:01:31+00:00

I’ve been trying to make atom feed work using jQueryMobile since last night but

  • 0

I’ve been trying to make atom feed work using jQueryMobile since last night but no luck.
I am working the code locally.

I am using this scripts provided in jQueryMobile site

<link rel="stylesheet" href="http://code.jquery.com/mobile/1.1.0/jquery.mobile-1.1.0.min.css" />
<script src="http://code.jquery.com/jquery-1.7.1.min.js"></script>
<script src="http://code.jquery.com/mobile/1.1.0/jquery.mobile-1.1.0.min.js"></script>

I tried a lot of code and I end up using the code answered in this question Parse RSS with jQuery

this is my code

function refreshFeed2() {
    $.get("resp2.xml", function (data) { 
        var $xml = $(data);
        $xml.find("item").each(function () {
            var $this = $(this),
            item = {
                title: $this.find("title").text(),
                link: $this.find("link").text(),
                description: $this.find("description").text(),
                pubDate: $this.find("pubDate").text(),
                author: $this.find("author").text()
            }
            alert(item.title);
        });
    });
}

at the end, I tried popping up an alert but it’s not showing anything.

what’s wrong in the code?

— update —
I am working with mobile devices
— update —
for the sake debugging. here’s an updated code

function refreshFeed2() {
    alert("start call");

    $.get("resp.xml", function (data) {
        alert("start parse");

        var $xml = $(data);

        alert("set data");

        $xml.find("item").each(function () {
            var $this = $(this),
            item = {
                title: $this.find("title").text(),
                link: $this.find("link").text(),
                description: $this.find("description").text(),
                pubDate: $this.find("pubDate").text(),
                author: $this.find("author").text()
            }
            alert(item.title);
        });
    });

    alert("end call");
}

so I added alerts .. the problem there is
it only popups in “start call” and “end call”.
My sample xml looks like this.. but this is actually a lot longer

<rss    version="2.0" 
        xmlns:content="http://purl.org/rss/1.0/modules/content/" 
        xmlns:wfw="http://wellformedweb.org/CommentAPI/" 
        xmlns:dc="http://purl.org/dc/elements/1.1/" 
        xmlns:atom="http://www.w3.org/2005/Atom" 
        xmlns:sy="http://purl.org/rss/1.0/modules/syndication/" 
        xmlns:slash="http://purl.org/rss/1.0/modules/slash/">
    <channel>
        <title>title of the feed</title>
        <atom:link href="http://www.mainlink.com/livefeed" rel="self" />
        <link>http://www.mainlink.com/</link>
        <description>
        </description>
        <language>en-us</language>
        <pubDate>Fri, 06 Jul 2012 04:47:51 +0800</pubDate>
        <lastBuildDate>Fri, 06 Jul 2012 04:47:51 +0800</lastBuildDate>
        <item>
            <title>title1</title>
            <link>http://www.link1.com/</link>
            <description>desc1</description>
            <pubDate>Fri, 06 Jul 2012 04:47:09 +0800</pubDate>
            <guid>25542832</guid>
        </item>
        <item>
            <title>title2</title>
            <link>http://www.link1.com/</link>
            <description>desc2</description>
            <pubDate>Fri, 06 Jul 2012 04:47:09 +0800</pubDate>
            <guid>25542831</guid>
        </item>
    </channel>
</rss>
  • 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-07T05:01:32+00:00Added an answer on June 7, 2026 at 5:01 am

    Drop a breakpoint in there and step through the code execution. If your alert isn’t showing that means either 1) the $.get request failed so your ‘success’ function will never get called or 2) your success function is getting called but it doesn’t get to the alert because one of the find or text calls throws an exception.

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

Sidebar

Related Questions

I am trying to understand how to use SyndicationItem to display feed which is
I'm parsing an RSS feed that has an &#8217; in it. SimpleXML turns this
I have a jquery bug and I've been looking for hours now, I can't
link Im having trouble converting the html entites into html characters, (&# 8217;) i
That's pretty much it. I'm using Nokogiri to scrape a web page what has
I want to count how many characters a certain string has in PHP, but
Basically, what I'm trying to create is a page of div tags, each has
I have a string like this: La Torre Eiffel paragonata all&#8217;Everest What PHP function
this is what i have right now Drawing an RSS feed into the php,
I am reading a book about Javascript and jQuery and using one of the

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.