Need assistance/point in right direction - Changing URLs after clicking on them (Posted by rachel_s)

They have: 141 posts

Joined: Aug 1999

An example url of what you are trying to do would really help clarify your whole idea.

----------
The dLo Network
http://dlo.net

They have: 2 posts

Joined: Oct 1999

We have a text retrieval program that searches for occurrences of words. Each word is a hyperlink to the next occurence of the search word - still with me Smiling
The URL for the hyperlink is hit#2 (for the second occurence), then hit#3 (for the third occurence), hit#4 etc.
The problem we have is that we want to have a single image that advances the user to the next occurence of the word. But we don't know how to change the images' URL each time the user clicks on it so that it advances to the next number.
Any ideas?? All will be gratefully appreciated - an you may just save the sanity of a lot of users!!!

They have: 2 posts

Joined: Oct 1999

The site

http://www.pics.sa.gov.au/isysleg.htm#menu

has the same search engine as we are trying to work with. If you type in "Dangerous Substances" (without the quotes) and then choose search, it will list a number of documents.
Then choose "Dangerous Substances Act" and you will see an example of what I'm talking about.

Alternatively, I have include below a dump of sample HTML code that, I hope, will demonstrate what I mean. I searched for the text "Rachel"

<a name="hit1"></a><b><i>Rachel</b></i><a href="#hit2">
<img src="http://xxx.xxx.xxx.xxx:81/nexthit.gif" border=0 alt=">"></a>: I am trying to figure out how this Java works ...

And further down the code at the next "hit":

Hello, <a name="hit2"></a><a href="#hit1"><img src="http://xxx.xxx.xxx.xxx:81/prevhit.gif" border=0 alt="<"></a><b><i>Rachel</b></i><a href="#hit3"><img src="http://127.0.0.1:81/nexthit.gif" border=0 alt=">"></a>What's up? Here is a dump of some sample HTML code

I'm hoping this will help to explain what I'm trying to get at. Thanks for taking the time to try to help.

Want to join the discussion? Create an account or log in if you already have one. Joining is fast, free and painless! We’ll even whisk you back here when you’ve finished.