473,497 Members | 2,051 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

help with show/hide function in Javascript

347 Contributor
I have a page that uses the following Javascript for a show hide function

Expand|Select|Wrap|Line Numbers
  1. function showHide(shID) {
  2.    if (document.getElementById(shID)) {
  3.       if (document.getElementById(shID+'-show').style.display != 'none') {
  4.          document.getElementById(shID+'-show').style.display = 'none';
  5.          document.getElementById(shID).style.display = 'block';
  6.       }
  7.       else {
  8.          document.getElementById(shID+'-show').style.display = 'inline';
  9.          document.getElementById(shID).style.display = 'none';
  10.       }
  11.    }
  12. }
This works fine in Internet Explorer but is non functional in Firefox, Chrome and Safari does not work

Working page in ie can be seen here
http://www.yaketyyakallmouth.com/new...&voicetype=all

its the hear more clips button that im having the problem with
Aug 31 '11 #1
3 1784
Dormilich
8,658 Recognized Expert Moderator Expert
well, it worked fo me on FF6. though I’ve been unable to hide the clips due to an invisible element (the link) to click on.
Sep 1 '11 #2
colinod
347 Contributor
We did not want the need to rehide the clips and i found out the problem with the browers i was trying was fixed when i stopped trying to hide table rows and just hid a complete table at a time
Sep 1 '11 #3
colinod
347 Contributor
I have however found another problem, if you goto the following page http://www.yaketyyakallmouth.com/new...oys.asp?id=all

and then select the first person on the list the next page everything works fine,

if you select Richard Allinson or John Altman however you get the show more link at the bottom and when its clicked it comes up with a

ADODB.Recordset error '800a0bcd'

Either BOF or EOF is True, or the current record has been deleted. Requested operation requires a current record.

/newpages2/boys2.asp, line 285

i have narrowed it down to the fact i have a if i = 12 then statement that determines when the show hide function should appear because i only get this error when exactly 12 items are called from the database!!!

i have attached the page in question and any assistance would be very much appreciated
Attached Files
File Type: zip boys2.zip (5.6 KB, 47 views)
Sep 1 '11 #4

Sign in to post your reply or Sign up for a free account.

Similar topics

2
2347
by: John Doe | last post by:
Hey, Im working on a javascript based menu system : http://larsandre.mine.nu/menu2.htm When the user first selected a menu-item the sub-menu appears nicly but if the user then moves the cursors...
0
2190
by: Rich | last post by:
i have a web page that uses a javascript function to show/hide some info using css "visibile" "hidden" attributes of "id". the js was a free script that i modified for my use. works great. to...
10
4620
by: oLE | last post by:
I would like to add some javascript to show/hide a certain row of a table. The first row of the table contain the hyperlink that calls the javascript the second row is the one i want to show/hide...
4
4209
by: bridgemanusa | last post by:
Hi All: I have a very long page of html that I want to take portions and hide them in divs, then show when a link is clicked. I have the hide show part working when the link is clicked, however...
7
29118
by: FP | last post by:
I'm new to Java Script. I'm displaying comments people have made. Below each persons' comment I want to add 2 buttons "Reply" and "Amend". Clicking "Reply" would display an empty text field...
3
4622
by: therealvibe | last post by:
I have made a simple page with show hide layers with javascript and css. http://www.icatt.nl/special/test/salarisstrook_algemeen.html The idea is that the blue help text rechtangle will have...
2
8050
by: bela.patkai | last post by:
I have a css tabbed text menu (Home - Services - About - Contact) and would like to show appropriate text formatted in <divblocks on the webpage when clicking on the menu. Is it possible to do...
5
3876
by: colt28 | last post by:
I've seen plenty of scripts for showing/hiding divs, and i'm no javascript expert, but I need a hidden DIV to appear after a delay. It's for lead capture purposes so I need the div to close by...
1
4265
by: ll | last post by:
I'm currently working on a form which consists of a show and hide javascript. The toggle works fine, although when I click on submit, I would like the page to reload with the toggle (show/hide)...
2
2044
by: Scott McNeill | last post by:
I have created a form with show/hide on a couple of fields. However, this hidden info is not posting back when I click submit. Can someone help? Source code <?xml version="1.0"...
0
6993
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7162
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
7197
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
5456
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
4899
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
3088
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
3078
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
650
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
287
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.