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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T21:02:57+00:00 2026-06-05T21:02:57+00:00

On my page I have a section where I would like to pull in

  • 0

On my page I have a section where I would like to pull in various RSS feeds.

I don’t want to pull in the feeds using PHP because my page will then be affected by how long it takes to get a response back from each server.

Instead, what I would like to do is put the RSS feed URLs on the page and have Javascript pick them up and pull in the content.

The Javascript side of the solution is no problem but I can’t find a solution for passing the URLs from HTML to JS that I’m happy with. Ideally I wanted something like…

<div>
    <param name="url" value="/url/of/some/feed">
    <param name="url" value="/url/of/some/other/feed">
</div>

but I realise this isn’t valid.

Anyone have any nice solutions? (ps. I don’t want to write JS in my view files)

  • 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-05T21:02:59+00:00Added an answer on June 5, 2026 at 9:02 pm

    Use the data attribute, then you can use something like this :

    <div>
        <span class="rss" data-url="/url/of/some/feed"></span>
        <span class="rss" data-url="/url/of/some/other/feed"></span>
    </div>
    

    Then you can loop the DOM elements with a class of rss and get the data-url attribute of each – the span could be any HTML element

    Nice explanation of on data attributes here

    The official HTML5 docs on the custom attributes is here – but they work in any browser in any HTML version – using the getAttribute() method

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

Sidebar

Related Questions

I have a section of PHP code that I would like to place in
I have a html-page which I would like to style (using IE9). The following
On a blog detail page, I have a tags section. The html looks like:
I have scripts in my ASPX page, in the header section. I want to
I have a div like this <section class=item_container> <article class=item> <h2>Page Title</h2> <p><a class=delete_page
I have a section of an html page that I want to display in
Given that I have a JavaScript section in my HTML page like : <script
I would like to have alternative templates for each section of my website. How
Random elements throughout the page have an attribute named qtip . I would like
I am working on a sign up page and would like to have a

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.