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



On Mar 29, 2008, at 6:19 AM, pradeep_tp wrote:


Thanks all. I think it is the mistake of the author who wrote this
example on the JQuery help page.
 I just copied and pasted the code,
but didnt realize that I had to add an achor tag.

Well, I don't think it is a mistake so much as an assumption that a page has to have a link on it if you're going to click on that link. In any case, I added the following to that example (it's a wiki, after all, so we're all able to improve it):

Of course, you'll also need to add a link within the <body> of your HTML file:

         <body>
          <a href="http://jquery.com";>jQuery</a>
         </body>



I hope that helps prevent further confusion.

Cheers,

Karl



Thanks to everyone for your replies


On Mar 5, 9:24 pm, ajpiano <[EMAIL PROTECTED]> wrote:
also, i'm not saying it's wrong or bad

<sidecomment>
but i have literally never ever seen anyone have line breaks in the
middle of their closing tags...
</
sidecomment>

On Mar 5, 10:33 am, J Moore <[EMAIL PROTECTED]> wrote:



wow, the lag on this list is brutal. is there any way of reducing it,
so people don't spend time responding to already-answered questions?

On Mar 5, 9:34 am, J Moore <[EMAIL PROTECTED]> wrote:

actually, your code doesn't display a link. it sets up an action when
the link is clicked.

You're missing: <a href="#">do something</a>

There might be other problems too if you aren't even seeing the alert
message.

Download firefox and firebug. IE isn't much help for developing
javascript.

-j

On Mar 5, 5:16 am, pradeep_tp <[EMAIL PROTECTED]> wrote:

Hi All,

I am new to JQuery. I did the following to get started with JQuery.

1) Downloaded JQuery Uncompressed version. Renamed JQuery. 1.2.3.js to
JQuery.js (I do not know whether this is correct! )
2) I followed the tutorial for "Hello world" and typed the following
code into an HTML file

<html>

<head>
 <script type="text/javascript" src="jquery.js">

</script>
 <script type="text/
javascript">
alert('here');
$(document).ready(function() {
   $("a").click(function() {
     alert("Hello world!");
   });
 });

 </
script>
 </
head>

<body>

 </
body>
 </html>

After opening this HTML file in IE 7.9, I find nothing on the page, not even any javascript error. The code is supposed to display a link,
but I do not find any link on the page. Can anyone help me here.

- pradeep- Hide quoted text -

- Show quoted text -

Reply via email to