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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T23:47:51+00:00 2026-05-13T23:47:51+00:00

`I am working with an API that sends back an XML response upon request.

  • 0

`I am working with an API that sends back an XML response upon request. Here’s a simplified example:

  <buildings>
   <building attr1="foo" attr2="bar">
     <uri>http://blah.com</uri>
     <thumbnail>http://blah.com/foo-picture.jpg</thumbnail>
   </building>
   <building attr1="poo" attr2="pee">
    ...
   </building>
 </buildings>

After I use $.get() to request the XML, I have to search through it to get the <building>s that have attr1="foo" for example.

After displaying this result set, each <building> has a link that sends the user to another page, let’s say details.htm?id=fun There is only one ‘page,’ but the content changes depending on the id that is passed along in the URL.

Finally, the question:

I have to include Next and Previous links to navigate within the result set that I ended up with after searching through the original XML response.

If the result set was always guaranteed to be very small, I could pass it in the url, similar to
details.htm?id=fun&nextid=morefun&previd=lessfun

However, I have to account for the possibility of a very large result set.

Can anyone suggest a method for making the result set persistent while a user is navigating within it? The way I have it set up at the moment is that an array of result IDs is generated after the search is complete and the result set has been returned. Is there a way to make this array portable and (relatively) permanent?

  • 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-13T23:47:52+00:00Added an answer on May 13, 2026 at 11:47 pm

    Probably the easiest is to use PHP Sessions unless you want to make a pure ajax site.

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

Sidebar

Ask A Question

Stats

  • Questions 346k
  • Answers 346k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer If specialVariable is not used after the switch block, declare… May 14, 2026 at 6:04 am
  • Editorial Team
    Editorial Team added an answer Yes, the generic error deals with security. The idea being… May 14, 2026 at 6:04 am
  • Editorial Team
    Editorial Team added an answer The User Contributed Notes to opendir() have this: I was… May 14, 2026 at 6:04 am

Related Questions

I am trying to determine if a string has more than 1 capital letter
Sorry for all the dumb jquery questions I'm still learning and find this to
This is driving me crazy. Ever since I installed ReSharper 4, F12 no longer
When programming in Stata I often find myself using the loop index in the
I need to embed the bibliography information from the .bbl file in the .tex

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

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.