Riparian Posted February 13, 2008 Share Posted February 13, 2008 Is there a way the trigger a html name anchor as a result of a search ? Explanation : A page of names and details with say 50 entries. I would like a quick name search at the top that jumps to a named anchor that I have set up during the while loop. I currently have this working by displaying a hyperlink after the search has found the name but I have to click the hyperlink... 2 actions for the same process and 3 refreshes of the screen Any help is greatly appreciated Thanks heaps Brian Quote Link to comment Share on other sites More sharing options...
Isityou Posted February 13, 2008 Share Posted February 13, 2008 I don't quite understand. I hope this helps. Someone simply enters the name of the anchor into the text field and it searches for that anchor and brings you to the name of that anchor. <script> function search_anchor(object) { _anchor = object.value; parent.location = '#' + _anchor; } </script> <input id="search" type="text" name="search" /> <input type="button" value="Search" onClick="search_anchor(search)"/> Quote Link to comment Share on other sites More sharing options...
Riparian Posted February 14, 2008 Author Share Posted February 14, 2008 Thank you for the help ... I can use this,,, I think. But I wish I could find how to close this thread ! Cheers Quote Link to comment Share on other sites More sharing options...
JTapp Posted February 17, 2008 Share Posted February 17, 2008 I'm having a problem closing threads as well. Don't reply to this and look for a blue button that has "topic resolved" on it. See if that works. I'll check back. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.