[jQuery] Re: Creating a Function based on text argument

2009-10-22 Thread Kerry Jones
= function(){return this.trim().etc...} The way you've done it works, but in the same way 'trim' works, i.e. you have to pass the string to the function: $.slug($('#form_element').val()); On Oct 21, 3:05 pm, Kerry wrote: I've been looking around and besides my be

[jQuery] Creating a Function based on text argument

2009-10-21 Thread Kerry
I've been looking around and besides my best efforts I haven't been able to figure it out. All the function extending I see extends on an _object_. I want to extend on a string. /** * Returns a slug version of a string */ jQuery.extend ({ slug: function( text ) { ret

[jQuery] Show/Hide multiple table rows. Pls help

2009-06-22 Thread Kerry
Hi, I have a problem i've been trying to solve for a while. I have a table that is dynamically generated. I need to be able to hide and show certain table rows. for e.g. DATA1

[jQuery] Re: Can't get JQuery to work, Pls Help

2009-05-20 Thread Kerry
gt;                         $("#box").fadeOut(); >                 }); >         }); > > also, you're not linking the jquery lib sucessfully. replace ... > > > > ... with ... > >         http://ajax.googleapis.com/ajax/</a> > libs/jquery/1.3.1/jquery.min

[jQuery] Can't get JQuery to work, Pls Help

2009-05-20 Thread Kerry
Hi I'm new to Jquery and trying a simple example before I start working with it. Can someone please help me understand why the following is not working. Firebug repport '$ is not defined'. jquery-1.3.2.min.js is in the same directory as the web page as well. #box {

[jQuery] Can't get JQuery to work, Pls Help

2009-05-20 Thread Kerry
Hi I'm using Eclispse for a small project and trying out Jquery for the first time. I have downloaded the jquery-1.3.2.min.js file and reference it as i should in my page, However the script does not seem to work and I get a firebug error '$ is not defined'. The jquery-1.3.2.min.js file is in the