SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Zealot
    Join Date
    Oct 2004
    Location
    world
    Posts
    128
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Thumbs up external linking not working

    Hi,
    I have following code

    Code JavaScript:
    <html>
    <head>
    <script type="text/javascript" src="common.js"></script> 	 
     
     
    </head>
     
    <body>
     
    <div id='feedback'>
    </div>
    <!--
    <script type='text/javascript'>
    document.getElementById('feedback').innerHTML='Hello World!';</script>
     
    -->
    </body> 	 
    </html>

    and in common.js

    Code JavaScript:
    document.getElimentById('feedback').innerHTML='Hello';

    When i use it inside the html it work but external linking not work !
    Please help.
    Thx.

  2. #2
    Function Curry'er JimmyP's Avatar
    Join Date
    Aug 2007
    Location
    Brighton, UK
    Posts
    2,006
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    You misspelled Element in common.js
    James Padolsey
    末末末末末末末末末末末末末末末末末末末
    Awesome JavaScript Zoomer (demo here)
    'Ajaxy' - Ajax integration solution (demo here)


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
  •