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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T15:25:51+00:00 2026-06-15T15:25:51+00:00

In my new project, I have many dynamic data blocks on home page. for

  • 0

In my new project, I have many dynamic data blocks on home page. for e.g.

  • Latest news (displays top 2 news from DB, contains a small image, abstract text, and read more link)
  • Deals of the week (displays top 2 deals from DB, contains a small image, Title, Subtitle, abstract text, and read more link)

To implement such things, I’m planning to go for one of the following approaches.

Approach A: storing such data in a separate HTML file, and render that using either Jquery ajax() call or MVC RenderPage()

Approach B: storing such data in a separate Text file, and render that using Jquery ajax() call

Approach C: storing such data in a separate XML file, and render that using Jquery ajax() call by reading XML and build HTML data

So can anybody suggest me which on is best method? I don’t to go for database interactivity during homepage load.

  • 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-15T15:25:52+00:00Added an answer on June 15, 2026 at 3:25 pm

    I would recommend the XML route. The reason why is that if this content is going to be updated frequently and displayed on your homepage, you want a relatively constrained data format.

    If you have the data stored in HTML, you are storing structural and possibly graphical data along with the actual text to display. That gives the modifier the capacity to change (or accidentally break) how your content looks.

    If you have the data stored as raw text, there is no given format to follow. If you need a title, author and text of an article to post, there is no predefined template saying that the person must include those data.

    Storing as XML solves both these problems. You can store only the content, and then on your page parse it into HTML elements predefined by you, the page author. Furthermore, you can specify a document format that sets out the tags that are allowed in your document. This means that you as the page author have better control over what kind of data will be sent to you.

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

Sidebar

Related Questions

I have just created a new project with a many-to-many relation (User-Group) and the
I have a fairly large (new) project in which we have annotated many domain
I'm learning javascript for a new project. I have seen many tutorials about javascript
For a new project I have created a local folder tree with empty Visual
I came to a new project which have been developed for a quite long
I'm setting up a new project and have gotten NHibernate to work with structuremap...sorta.
We are using Doctrine 2 for a new project and have run into an
I have a project which I am trying to use in another new project,
i have one doubt,i have created new project in eclipse with android 2.3.1 and
Starting a new rails project and we have a well-thought-out color palette, and want

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.