www.webdeveloper.com
Recent Articles
  • Finding Slow Running Queries in ASE 15
  • A More Advanced Pie Chart for Analysis Services Data
  • Adobe AIR Programming Unleashed: Working with Windows
  • Performance Testing SQL Server 2008's Change Data Capture Functionality
  • The ABC's of PHP: Introduction to PHP
  • How to Migrate from BasicFiles to SecureFiles Storage
  • Why the Twitter Haters Are Wrong
  • User Personalization with PHP: Beginning the Application
  • Whats in an Oracle Schema?
  • Lighting Enhancement in Photoshop
  •  

    Go Back   WebDeveloper.com > Client-Side Development > JavaScript

    JavaScript JavaScript (not Java) Discussion and technical support, including AJAX and frameworks (JQuery, MooTools, Prototype...)

    Reply
     
    Thread Tools Search this Thread Rate Thread Display Modes
      #1  
    Old 01-18-2007, 07:13 AM
    docpepper docpepper is offline
    Registered User
     
    Join Date: Jan 2007
    Posts: 64
    resolved [RESOLVED] onClick issue

    Can someone please tell me why this isnt working?

    Code:
    <p onClick="InsertContent('Standard')"><strong>+ Standard Single Bedroom </strong></p>
    <div id="Standard" style="padding-left:60px; display:none">
    <li type="square"><p>En-suite bathroom</p></li>
    <li type="square"><p>Tea and coffee making facilities</p></li>
    <li type="square"><p>Private telephones</p></li>
    <li type="square"><p>Trouser press</p></li>
    <li type="square"><p>Satellite television</p></li>
    </div>
    Its in a php document, I havent called anything in the head tag atm so maybe thats it..any ideas?

    Also once i have the text to pop up underneath the title i would also like another div to be opened underneath this 1, do i just call both divs in the onClick? eg onClick="InsertContent('Standard,Superior')"
    Reply With Quote
      #2  
    Old 01-18-2007, 07:24 AM
    Kor's Avatar
    Kor Kor is offline
    Red Devil Moderator
     
    Join Date: Dec 2003
    Location: Bucharest, ROMANIA
    Posts: 11,522
    Where is your function InsertContent() ? In fact where is the rest of the javascript code which supposes to do what you say it should do?
    Reply With Quote
      #3  
    Old 01-18-2007, 08:15 AM
    docpepper docpepper is offline
    Registered User
     
    Join Date: Jan 2007
    Posts: 64
    Ha, never mind, worked it out!

    Forgot to add the <head> Java in post.
    Reply With Quote
    Reply

    Bookmarks


    Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
     
    Thread Tools Search this Thread
    Search this Thread:

    Advanced Search
    Display Modes Rate This Thread
    Rate This Thread:

    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 Off
    HTML code is Off
    Forum Jump


    All times are GMT -5. The time now is 11:09 AM.



    Acceptable Use Policy


    The Network for Technology Professionals

    Search:

    About Internet.com

    Legal Notices, Licensing, Permissions, Privacy Policy.
    Advertise | Newsletters | E-mail Offers

    Powered by vBulletin® Version 3.7.3
    Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.