Robby Russell wrote:
> You'll need to execute this after you load the jQuery file..
> 
>  jQuery.noConflict();
> 
> Robby
> 
> On Mon, May 25, 2009 at 11:06 AM, lyntaff <[email protected]> wrote:
>>
>> Many Thanks in advance.
>> >
>>
> 
> 
> 
> --
> Robby Russell
> Chief Evangelist, Partner
> 
> PLANET ARGON, LLC
> design // development // hosting w/Ruby on Rails
> 
> http://planetargon.com/
> http://robbyonrails.com/
> http://twitter.com/planetargon
> aim: planetargon
> 
> +1 503 445 2457
> +1 877 55 ARGON [toll free]
> +1 815 642 4068 [fax]

Mine is the total opposite, maybe:), thats if my setup is configured 
correctly.

I put my jquery-1.3.2.js in my projects /public/javascripts folder.

I created a js script called jo.js in /public/javascripts that looks 
like this:
$(document).ready(function()  {
    $('a').click(function() {
        $('#box').fadeout('slow');
      });

    });

This is how I referenced the jo.js file in my html file:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
  "http://www.w3.org/TR/html4/loose.dtd";>



<html>
  <head>
    <script src="/javascripts/jquery-1.3.2.js" 
type="text/javascript"></script>
  <title>index</title>
  <%= javascript_include_tag "jo.js" %>
  <%= stylesheet_link_tag "jcss" %>

</head>
<body>
  <div id="box"></div>
    <a href="#">Click Me!</a>
</body>
</html>

When i click on the click me link the box above it is supposed to fade 
out, this is not happening.

Thanks
-- 
Posted via http://www.ruby-forum.com/.

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to