Results 1 to 2 of 2

Thread: Why doesn't this work ?

Threaded View

  1. #1
    Join Date
    Oct 2012

    Why doesn't this work ?

    Hello fellow Javascript developers

    I am trying to get a div to to load with a file in the same folder. Here is the code:
    Div Experiment
    <script language="javascript" type="text/javascript" src="jquery.js">
    <script type="text/javascript" src="http://www.google.com/jsapi"></script>
    function headsMessage()
    $("#tony").load("PrincipalsMessage .html");
    <button align="center" onclick="headsMessage()">Click to get Scott's message</button>
    <div id = "tony">
    Both alerts work but the file does not load. http://www.webdeveloper.com/forum/im...s/confused.gif
    Any ideas ?
    Rory Barrett
    Last edited by jedaisoul; 03-20-2014 at 05:59 PM. Reason: code tags added

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

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