TwelvestoneFront End

Javascript Searching XML - need to search all results


Sign in

  • Waiting for Godot ( 730 k posts )
    Just conversation.
  • Thunder Dome ( 23 k posts )
    Photoshop Tennis and Collabs.
  • Photography ( 5.1 k posts )
    For all you shutterbugs, sh...
  • Flash ( 18 k posts )
    ActionScripting to tweens, ...
  • Front End ( 5.9 k posts )
    general front end design an...
  • Back End ( 9.7 k posts )
    serverside scripting, progr...
  • Projects and Theory ( 12 k posts )
    This forum is for discussio...
  • FAQ ( 269 posts )
    All those nagging questions...
  • Design ( 17 k posts )
    graphics & all aspects of g...
  • Purgatory ( 3.6 k posts )
    12stone Jail, feel free to ...
BOBBYLOVEVILLE
 
2010-06-11

I have a javascript that is super simple and is just taking a single search input from a user and then searching a single attribute within an xml to then tell the user if that record exists or doesnt...

Here's the issue - the XML I have to use (its not controlled by me at all and I have no access to change how it works) contains 1000+ records but limits its pagination views to 50 records per page. So when I use the xml feed for the search, it's only searching the first 50 records...

How the hell do I get this thing to parse all of the records in the whole set to see if the record exists?

Thanks in advance for input!

wowbagger[tip]
 
2010-06-11

How do you retrieve the feed ? Can you query different pages ?

BOBBYLOVEVILLE
 
2010-06-14

hey yo - thanks for the reply...the xml starts with this:

<?xml version="1.0" ?> - - 1 50 733 1 VALUES_FIELD2 asc ...

So it 'sees' all the 733 records and then has the 1 thru 50 logic and then the pagination in those first few lines.

I can browse all records from the front-end report out view within this module, but this is the xml feed the thing gives you. I need someway to tell it to run through all the records for the search but alas...im stuck

Thanks again for any input/ideas

Storm
 
2010-06-14

Does the web service cut the XML output (the response/result) down to the ENDREC value?

Because regardless of pagination, the complete XML result should be there for you to read. Pagination should only be for the visual and should not affect the data at all. That's just silly.

So are you sure you're getting the full XML list?

wowbagger[tip]
 
2010-06-14

It seems he doesn't - without a means to get the complete xml or request a certain range of records it's gonna be hard. After that looking up the attribute is easy with some xpath.

BOBBYLOVEVILLE
 
2010-06-15

thanks for all the input...I FINALLY got a response from the IT nuts...they said they can create an ad-hoc report and get all records to a separate db and then I can hit against that. What the eff good is giving people the first 50 records I havent a friggin clue.

They said it was a 1000 bucks to create the report, ha! I asked kindly if I can be a DBA for it and they said sure, but it was soooo hard to work with. 10 minutes later, a lil sql code and I had my custom xml created and working on all records...

I'm baffled at how things get engineered sometimes

Storm
 
2010-06-15

Glad you got it bro.

I'm a designer not a programmer and I hear all the talk about how developers know how to build real apps and us people on the front end aren't even worth having around. But stories like yours are all toooooo common. You're a good ass kicker.

Sorry, you must be a member to post to a conversation. Either log in or sign up to get involved.
TwelvestoneFront End

Javascript Searching XML - need to search all results