Hi Dave,

that's an odd one.

I just copied/pasted your html and tested it with no issues. Could there be something in your httpd.conf or .htaccess file that is interfering with it? Just a guess. Wish I could be of more help, but maybe that will point you in a productive direction.

--Karl
_________________
Karl Swedberg
www.englishrules.com
www.learningjquery.com



On May 12, 2008, at 11:19 AM, Dave wrote:


Hi all,

I am afraid that this is going to be a very simple problem, but I am
completely stuck.  I read the start of the tutorial [1], made the
hello world page[2], and the Hello World popup does not come up.  I
replaced the Link with  onclick="alert('Hello world')" and that
worked.  After reading the thread at [3] I installed firebug and it
reckoned there were 6 errors [4].

This is using apache as the web server, viewing in firefox 2.0.0.14.
I have renamed jquery-1.2.3.js jquery.js and put it in the same
directory as index.html. I can view it directly.

Thank you for any help,

[1] http://docs.jquery.com/Tutorials:Getting_Started_with_jQuery
[2]  <html>
<head>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript">
$(document).ready(function() {
  $("a").click(function() {
    alert("Hello world!");
  });
});
</script>
</head>
<body>
<a href="">Link</a>
</body>
</html>
[3] 
http://groups.google.com/group/jquery-en/browse_thread/thread/4a4ec70b07e1fbb5
[4] [Exception... "Component is not available" nsresult: "0x80040111
(NS_ERROR_NOT_AVAILABLE)" location: "JS frame ::
file:///C:/Program%20Files/Mozilla%20Firefox/components/nsSessionStore.js
:: sss_saveState :: line 1753" data: no]
[Break on this error] oState.session = { state: ((this._loadState ==
STATE_RUNNING) ? STATE_RUNNIN...
nsSessionStore.js (line 1753)
missing ) after argument list
[Break on this error] jQuery.attr(\n
jquery.js (line 165)
$ is not defined
[Break on this error] $(document).ready(function() {
jquery (line 6)
[Exception... "Component is not available" nsresult: "0x80040111
(NS_ERROR_NOT_AVAILABLE)" location: "JS frame ::
file:///C:/Program%20Files/Mozilla%20Firefox/components/nsSessionStore.js
:: sss_saveState :: line 1753" data: no]
[Break on this error] oState.session = { state: ((this._loadState ==
STATE_RUNNING) ? STATE_RUNNIN...
nsSessionStore.js (line 1753)
[Exception... "Component is not available" nsresult: "0x80040111
(NS_ERROR_NOT_AVAILABLE)" location: "JS frame ::
file:///C:/Program%20Files/Mozilla%20Firefox/components/nsSessionStore.js
:: sss_saveState :: line 1753" data: no]
[Break on this error] oState.session = { state: ((this._loadState ==
STATE_RUNNING) ? STATE_RUNNIN...
nsSessionStore.js (line 1753)
[Exception... "Component is not available" nsresult: "0x80040111
(NS_ERROR_NOT_AVAILABLE)" location: "JS frame ::
file:///C:/Program%20Files/Mozilla%20Firefox/components/nsSessionStore.js
:: sss_saveState :: line 1753" data: no]
[Break on this error] oState.session = { state: ((this._loadState ==
STATE_RUNNING) ? STATE_RUNNIN...
nsSessionStore.js (line 1753)

Reply via email to