Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Limit Web Service Results to one first letter for alphabetic organizin

Status
Not open for further replies.

nuwud

Programmer
Sep 3, 2010
11
US
I have a site that draws its listings from a 3rd party web service and get all of the results at once in one long list. I want to limit the yield of info to all the items that start with a number or punctuation, a, b, c, d, e, etc per page. A whole page for listings starting with "A" and so, on. How do I do that? I can show you the link, but I don't want to seem like I am shamelessly advertising in the forum.

The documentation for this web service is here: But the documentation makes little sense to me since I hardly code JavaScript to this degree and everything seems out of context.

To make matters worse, the site I am working on is in ASPX with a masterpagefile. I usually use PHP, so my familiarity is once again limited.

If you need more info, I am glad to share.
 
I'm not sure that this is a JavaScript question... it seems that you use a standard GET request to return results, and probably just need to put in a standard SQL 'where' clause to limit the items beginning with the letter you wish. For this reason, I'd suggest asking in one of the many SQL forums here instead of this forum.

I can't test this theory out as I don't have a valid 'websiteConfigID' to insert, nor do I know the correct SQL syntax without looking it up.

Hope this helps,
Dan



Coedit Limited - Delivering standards compliant, accessible web solutions

Dan's Page [blue]@[/blue] Code Couch:
Code Couch Snippets & Info:
The Out Atheism Campaign
 
Thanks for getting back to me.

I don't have access to the sql since this is a 3rd party service, but here is the code used to call it.

<script language="javascript" type="text/javascript">
document.write('<script language="javascript" src=" Tickets"></' + 'script>');
</script>

Just a document.write element calling the 3rd party for info.

Does that help at all? If you give me an idea I will test it and let you know how it went.
 
More info: I am not using SQL for this site on my end, although the site utilizes ASPX.

I believe a sort method might work...

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top