[jQuery] Re: jQuery introduction script (Alert Message is now showing!)

2009-04-20 Thread yrstruly
Hi,sorry but this code isnt doing what its suppose to. No Pop up message On Apr 3, 6:47 am, "Mohd.Tareq" wrote: > On Fri, Apr 3, 2009 at 5:52 AM, yrstruly wrote: > > > Hallo > > > Im new to jQuery. I have donwloaded the jquery-1.3.2min file and i > > have copied that introduction code from the

[jQuery] Re: jQuery introduction script (Alert Message is now showing!)

2009-04-03 Thread cewagner hotmail
yrstruly, I replaced the DOCTYPE and html begin tag with this statement in order to keep browsers from entering quirks-mode. You original code worked fine in most of my browser tests except for IE8 RC. http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd";> http://www.w3.org/1999/xhtml"; x

[jQuery] Re: jQuery introduction script (Alert Message is now showing!)

2009-04-03 Thread Liam Byrne
I think the OP does want it to follow the link, but show the alert first ? So "return false" is not required. OP - make sure jQuery is loading (there's no error if it doesn't). Try just an alert message within $(document).ready() itself. Steve wrote: Hi, You need to return false so the a

[jQuery] Re: jQuery introduction script (Alert Message is now showing!)

2009-04-03 Thread Steve
Hi, You need to return false so the anchor tag does not behave in its normal way (ie, take you to the link specified). So this should work: $("a").click(function(event){ alert("Thanks for visiting!"); return false; }); On Apr 2, 9:47 pm, "Mohd.Tareq" wrote: > On Fri, Apr 3, 2009 at

[jQuery] Re: jQuery introduction script (Alert Message is now showing!)

2009-04-02 Thread Mohd.Tareq
On Fri, Apr 3, 2009 at 5:52 AM, yrstruly wrote: > > Hallo > > Im new to jQuery. I have donwloaded the jquery-1.3.2min file and i > have copied that introduction code from the website and saved it in > the same directory as the jquery file. When i run the script it seems > to be working and when i