Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

JavaScript Forum


You are currently viewing our JavaScript Forum as a guest. Please register to participate.
Login



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

Posts: 38
Name: Ryan
Trades: 0
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, 5 views)
dziner is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 07-24-2008, 04:36 PM Re: A Search Between Tabs
wayfarer07's Avatar
Poo on You

Latest Blog Post:
Introducing WowWindow
Posts: 3,985
Name: Abel Mohler
Location: Asheville, North Carolina USA
Trades: 0
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?
__________________
Join me on
Please login or register to view this content. Registration is FREE
wayfarer07 is offline
Reply With Quote
View Public Profile Visit wayfarer07's homepage!
 
Old 07-24-2008, 04:42 PM Re: A Search Between Tabs
dziner's Avatar
Experienced Talker

Posts: 38
Name: Ryan
Trades: 0
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, 04:53 PM Re: A Search Between Tabs
wayfarer07's Avatar
Poo on You

Latest Blog Post:
Introducing WowWindow
Posts: 3,985
Name: Abel Mohler
Location: Asheville, North Carolina USA
Trades: 0
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.
__________________
Join me on
Please login or register to view this content. Registration is FREE

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

Posts: 38
Name: Ryan
Trades: 0
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, 05:07 PM Re: A Search Between Tabs
wayfarer07's Avatar
Poo on You

Latest Blog Post:
Introducing WowWindow
Posts: 3,985
Name: Abel Mohler
Location: Asheville, North Carolina USA
Trades: 0
Sure, that should be fine, or at least a start.
__________________
Join me on
Please login or register to view this content. Registration is FREE
wayfarer07 is offline
Reply With Quote
View Public Profile Visit wayfarer07's homepage!
 
Old 07-24-2008, 05:42 PM Re: A Search Between Tabs
dziner's Avatar
Experienced Talker

Posts: 38
Name: Ryan
Trades: 0
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, 07:30 PM Re: A Search Between Tabs
dziner's Avatar
Experienced Talker

Posts: 38
Name: Ryan
Trades: 0
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, 10:45 AM Re: A Search Between Tabs
wayfarer07's Avatar
Poo on You

Latest Blog Post:
Introducing WowWindow
Posts: 3,985
Name: Abel Mohler
Location: Asheville, North Carolina USA
Trades: 0
Hello, I will take a look at this sometime today... have some work to do...
__________________
Join me on
Please login or register to view this content. Registration is FREE
wayfarer07 is offline
Reply With Quote
View Public Profile Visit wayfarer07's homepage!
 
Old 07-25-2008, 12:13 PM Re: A Search Between Tabs
dziner's Avatar
Experienced Talker

Posts: 38
Name: Ryan
Trades: 0
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, 06:50 PM Re: A Search Between Tabs
dziner's Avatar
Experienced Talker

Posts: 38
Name: Ryan
Trades: 0
Bump.

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

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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

BB 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.34453 seconds with 13 queries