Reply
A Search Between Tabs
Old 07-24-2008, 03:00 PM A Search Between Tabs
dziner's Avatar
Experienced Talker

Posts: 38
Name: Ryan
Hey guys- I originally had this question in the HTML forum - but I've been advised by another user that Javascript may solve my problems.

Basically I have a table of information, separated alphabetically with tabs "A" "B" "C"... etc

And image has been uploaded demonstrating this.

What I am looking for is the ability to search for content amongst the tabs - so when a User types in a search request, it goes through the tabbed information, opens the tab and finds it. - Or something with the same principle.

Any ideas on doing this?

Thanks!!
Attached Images
File Type: gif tabs.gif (4.9 KB, 4 views)
dziner is offline
Reply With Quote
View Public Profile
 
When You Register, These Ads Go Away!
     
Old 07-24-2008, 03:36 PM Re: A Search Between Tabs
wayfarer07's Avatar
$frontend->developer

Posts: 770
Name: Abel Mohler
Location: Asheville, North Carolina USA
Is all of the information loaded on one page, and the tabs work by hiding and revealing each "tabbed page" dynamically, or is each tab a separate HTML page?
__________________
wayfarer07 is offline
Reply With Quote
View Public Profile
 
Old 07-24-2008, 03:42 PM Re: A Search Between Tabs
dziner's Avatar
Experienced Talker

Posts: 38
Name: Ryan
Quote:
Originally Posted by wayfarer07 View Post
Is all of the information loaded on one page, and the tabs work by hiding and revealing each "tabbed page" dynamically, or is each tab a separate HTML page?
All the information is on one page - and dynamically activated.

http://www.dynamicdrive.com/dynamici...tabcontent.htm

is actually the tutorial that I set this up with
dziner is offline
Reply With Quote
View Public Profile
 
Old 07-24-2008, 03:53 PM Re: A Search Between Tabs
wayfarer07's Avatar
$frontend->developer

Posts: 770
Name: Abel Mohler
Location: Asheville, North Carolina USA
Here is a script that someone worked out for searching for text on a page: http://www.javascripter.net/faq/searchin.htm. It is pretty simple and doesn't quite meet your needs, but it may be a step in the right direction. Your needs are somewhat more complicated, because you will need a way to activate the tab that contains the text-node that is matched. This means that the DOM will have to be walked up until the tab is identified, then this data will need to be passed to a function that activates it.

I might be able to tell you more if I can see the HTML and scripts that you have in place already.
__________________

Last edited by wayfarer07 : 07-24-2008 at 03:55 PM.
wayfarer07 is offline
Reply With Quote
View Public Profile
 
Old 07-24-2008, 04:02 PM Re: A Search Between Tabs
dziner's Avatar
Experienced Talker

Posts: 38
Name: Ryan
Would you need to see the data within the tabbed table? The only reason I ask is it is bank information for my intrasite at work - I could remove the bank data, and show you what I have so far... Would that work?
dziner is offline
Reply With Quote
View Public Profile
 
Old 07-24-2008, 04:07 PM Re: A Search Between Tabs
wayfarer07's Avatar
$frontend->developer

Posts: 770
Name: Abel Mohler
Location: Asheville, North Carolina USA
Sure, that should be fine, or at least a start.
__________________
wayfarer07 is offline
Reply With Quote
View Public Profile
 
Old 07-24-2008, 04:42 PM Re: A Search Between Tabs
dziner's Avatar
Experienced Talker

Posts: 38
Name: Ryan
Quote:
Originally Posted by wayfarer07 View Post
Sure, that should be fine, or at least a start.
Ok - I got rid of the sensitive info - and put a <!-- comment --> where it initially was.

Thanks in advance for your help - I really appreciate it.
Attached Files
File Type: zip Client Table NO DATA.zip (6.8 KB, 0 views)
dziner is offline
Reply With Quote
View Public Profile
 
Old 07-24-2008, 06:30 PM Re: A Search Between Tabs
dziner's Avatar
Experienced Talker

Posts: 38
Name: Ryan
Quote:
Originally Posted by wayfarer07 View Post
or is each tab a separate HTML page?
Would it be easier/possible to do it this way and have the search feature?
dziner is offline
Reply With Quote
View Public Profile
 
Old 07-25-2008, 09:45 AM Re: A Search Between Tabs
wayfarer07's Avatar
$frontend->developer

Posts: 770
Name: Abel Mohler
Location: Asheville, North Carolina USA
Hello, I will take a look at this sometime today... have some work to do...
__________________
wayfarer07 is offline
Reply With Quote
View Public Profile
 
Old 07-25-2008, 11:13 AM Re: A Search Between Tabs
dziner's Avatar
Experienced Talker

Posts: 38
Name: Ryan
Quote:
Originally Posted by wayfarer07 View Post
Hello, I will take a look at this sometime today... have some work to do...
Thanks very much.
dziner is offline
Reply With Quote
View Public Profile
 
Old 08-04-2008, 05:50 PM Re: A Search Between Tabs
dziner's Avatar
Experienced Talker

Posts: 38
Name: Ryan
Bump.

Does anyone have any suggestions?
dziner is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to A Search Between Tabs
 

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off




   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML

 


Page generated in 0.19302 seconds with 14 queries