SitePoint Sponsor

User Tag List

Results 1 to 3 of 3

Hybrid View

  1. #1
    SitePoint Wizard
    Join Date
    Mar 2002
    Location
    Bristol, UK
    Posts
    2,240
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Dropdown menu code errors

    Hey all,

    I have the following function:
    Code:
    function show('id') {
    document.all['id'].style.visibilty = 'visible';
    }
    and I'm using the following code to call the function:
    Code:
    show('contacts');
    however I am getting an "Object Expected" error. I know the JavaScript itself works, because I've tested it using a direct call using the code itself, rather than the function, if you get what I mean.

    Can anyone tell me where I've gone wrong?

    Thanks [img]images/smilies/smile.gif[/img]

    -Sam
    Sam Hastings

  2. #2
    SitePoint Wizard
    Join Date
    Mar 2002
    Location
    Bristol, UK
    Posts
    2,240
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Sorted now.

    I had the syntax wrong AND I spelled visibility wrong

    -Sam
    Sam Hastings

  3. #3
    Web-coding NINJA! silver trophy beetle's Avatar
    Join Date
    Jul 2002
    Location
    Dallas, TX
    Posts
    2,900
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    What is it they say? Programming is 90% spelling and 10% algorithm?

    Or something like that
    beetle a.k.a. Peter Bailey
    blogs: php | prophp | security | design | zen | software
    refs: dhtml | gecko | prototype | phpdocs | unicode | charsets
    tools: ide | ftp | regex | ffdev





Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •