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

  • Home
  • SEARCH
  • 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 6809513
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T20:05:44+00:00 2026-05-26T20:05:44+00:00

I am having a problem with JQM where an external page’s working code inside

  • 0

I am having a problem with JQM where an external page’s working code inside an internal page would not load.

Here is the code for the external page (works fine on its own):

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>

<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<meta http-equiv="content-language" content="en" />

<link href="jquery.zrssfeed.css" rel="stylesheet" type="text/css" />

<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.6.0/jquery.min.js" type="text/javascript"></script>
<script src="jquery.zrssfeed.min.js" type="text/javascript"></script>

<title>zRSSFeed - Basic RSS Feed Example</title>
</head>

<body>

<h1>zRSSFeed - Basic RSS Feed Example</h1>
<p>Simple as it gets, this example uses the same code as in the documentation.</p>

<script type="text/javascript">
$(document).ready(function () {
    $('#test').rssfeed('http://feeds.reuters.com/reuters/oddlyEnoughNews', {
        limit: 5
    });
});
</script>

<div id="test"></div>

</body>
</html>

Now…the problem is when I put that code into an internal page:

....<script src="jquery.zrssfeed.min.js" type="text/javascript"></script> //include in head...


<div data-role="page">

    <div data-role="header">
        <h1>Page Title</h1>
    </div><!-- /header -->

    <div data-role="content">   


    <p>Page content goes here.</p>



             <script type="text/javascript">
        $(document).ready(function () {
            $('#test').rssfeed('http://feeds.reuters.com/reuters/oddlyEnoughNews', {
                limit: 5
            });
        });
        </script>

<div id="test"></div>           

    </div><!-- /content -->

    <div data-role="footer">
        <h4>Page Footer</h4>
    </div><!-- /footer -->
</div><!-- /page -->

Is there any extra requirments to get this to work?

For some reason the feed does not appear at all in the internal page.

  • 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-26T20:05:44+00:00Added an answer on May 26, 2026 at 8:05 pm

    Solution

    When you are using AJAX to load the pages, then it seems like only referenced pages (<div data-role="page"> ... </div>) are loaded and not the complete website, this way the script doesn’t get excuted.

    You need to include your script to load in the page-div not in the head, to get the conde on page load.

    Your start/landing page

    <!DOCTYPE html> 
    <html> 
        <head> 
        <title>Page Title</title> 
    
        <meta name="viewport" content="width=device-width, initial-scale=1"> 
    
        <link rel="stylesheet" href="http://code.jquery.com/mobile/1.0rc2/jquery.mobile-1.0rc2.min.css" />
        <script type="text/javascript" src="http://code.jquery.com/jquery-1.6.4.min.js"></script>
        <script type="text/javascript" src="http://code.jquery.com/mobile/1.0rc2/jquery.mobile-1.0rc2.min.js"></script>
    </head> 
    
    <body> 
        <!-- Loaded via AJAX because data-ajax="false" or rel="external" is not set -->
        <a href="page2.htm" data-role="button">To page 2</a>
    </body>
    </html>
    

    Page to load

    <html>
        <!-- ... more html -->
        <script src="jquery.zrssfeed.min.js" type="text/javascript"></script>
        <!-- ... more html -->
    
        <div data-role="page" id="rss_page">
            <!-- your stuff -->
        </div>
    </html>
    

    What gets loaded (via AJAX)

        <div data-role="page" id="rss_page">
            <!-- your stuff -->
        </div>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Having problem in IE8 with vertical align for images not working when a table
Im having problem's adding map markers to gmaps using jquery. Here is my code
Having problem with the middle Div not expanding to the width http://acs.graphicsmayhem.com/images/middiv.jpg Ok, how
Having problem with this bit of code qith jQuery. it should pick the values
i having problem in converting this C# code into VB.net. The loadLecturer seem to
Having problem to open form in new window, script is pulled from external service.
i having problem understanding what is wrong with my inheritance. I just can not
I'm having problem getting all the values in datalist here is the problem: I
I am having problem here with bitmaps..I want to remove the black background that
am having problem in Saving some data in my Java code. I have like

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.