469,344 Members | 6,281 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,344 developers. It's quick & easy.

help with show/hide function in Javascript

347 100+
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

its the hear more clips button that im having the problem with
Aug 31 '11 #1
3 1640
8,652 Expert Mod 8TB
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
347 100+
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
347 100+
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, 42 views)
Sep 1 '11 #4

Post your reply

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

Similar topics

2 posts views Thread by John Doe | last post: by
reply views Thread by Rich | last post: by
10 posts views Thread by oLE | last post: by
4 posts views Thread by bridgemanusa | last post: by
7 posts views Thread by FP | last post: by
3 posts views Thread by therealvibe | last post: by
2 posts views Thread by bela.patkai | last post: by
5 posts views Thread by colt28 | last post: by
reply views Thread by zhoujie | last post: by
reply views Thread by suresh191 | last post: by
1 post views Thread by Marylou17 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.