Re: [jQuery] little help

2006-09-10 Thread Matt Stith
I dont see why not.On 9/10/06, kevdotbadger <[EMAIL PROTECTED]> wrote: Ah i see. I take it pasting it below the current content would be a betteridea. thanks. Any other demos for interface around the net? because idislike the whole$('#ifxElement').CloseVertically(500); sdfas would putting it like t

Re: [jQuery] little help

2006-09-10 Thread kevdotbadger
Ah i see. I take it pasting it below the current content would be a better idea. thanks. Any other demos for interface around the net? because i dislike the whole $('#ifxElement').CloseVertically(500); sdfas would putting it like this work $('#showCommentBox').click(function() { $('#ifxElement

Re: [jQuery] little help

2006-09-10 Thread Matt Stith
No, i think it is going to stay as a plugin. You can move the contents of the interface.js file into your jquery file, and that would do the same thing.On 9/10/06, kevdotbadger <[EMAIL PROTECTED]> wrote: Ah yes, i did have a look at the interface plugin. Very nice stuff. I hearthat there going to

Re: [jQuery] little help

2006-09-10 Thread kevdotbadger
Ah yes, i did have a look at the interface plugin. Very nice stuff. I hear that there going to be implimented into qjuery? so there will be no need for the 2 files? is this true? thanks again :) John Resig wrote: > >> Also 2 more thing. could i put this into a new .js file and link it in >> the

Re: [jQuery] little help

2006-09-09 Thread John Resig
> Also 2 more thing. could i put this into a new .js file and link it in the > header and it will still work? Yes! As long as its after the jquery.js file, like you did before. > and what other 'fxs' can i have? Iv > experimented with the hide() and show() ones. jQuery comes with hide/show, slid

Re: [jQuery] little help

2006-09-09 Thread kevdotbadger
Ah i see! I get you now! and its perfect! just what i want! and only 10 lines! WOW! Thank for all the help! you've made my day! AND you guys are so nice to a noob around here! ususally if i post a simple question like this and start telling you that you got the point of the topic wrong i get my bu

Re: [jQuery] little help

2006-09-09 Thread Karl Swedberg
On Sep 9, 2006, at 7:27 AM, kevdotbadger wrote: > It dont work sorry! > > any ideas? Also whats the deal with 'javascript:void(0)'? whast > that do? Hi, there are a couple things you can do to make this work. 1. wrap your jquery code in $(document).ready( 2. add "return false;" to your c

Re: [jQuery] little help

2006-09-09 Thread kevdotbadger
It dont work sorry! $('#showCommentBox').click(function() { $('#addcomment:hidden').slideDown(); }); $('#hideCommentBox').click(fun

Re: [jQuery] little help

2006-09-08 Thread Matt Stith
haha john, your getting a little too complicated here, he just needs slideup, slidedown, no ajax requests involved ;)This should work kenton:in your :
$('#showCommentBox').click(function() {
$('#addcomment:hidden').slideDown();
});
$('#hideCommentBox').click(function() {
$('#addcomm

[jQuery] little help

2006-09-08 Thread kevdotbadger
im quite new to juery but iv managed to setup some of the plugs to work nicely on my pages (tabs and thickbox) im just wounder how i would do this: have div (hidden at first) but then slide down when a link is pressed? and within the div have anotther link to hide it? i know it wont be too hard

Re: [jQuery] little help

2006-09-08 Thread kevdotbadger
Hay, i think you got a lil too complicated for what i want! Im really greatful for the help and replys BUT all i need is a div (#addcomment) to be shown(slide down) when a link is clicked. then another link within the div to slide the div up(slide up). thanks =) kenton.simpson wrote: > > I'm u

Re: [jQuery] little help

2006-09-07 Thread kenton.simpson
I'm using nabble for my post. I would seem somethings are not posting where John Resig wrote: > >> That is correct and the $(function is shorthand. and the [ is require and >> the >> function will not work with out it. > > oops by bad!!! I guess I need to review the docs agian. > >$.ajax(

Re: [jQuery] little help

2006-09-07 Thread John Resig
> That is correct and the $(function is shorthand. and the [ is require and the > function will not work with out it. Ok, you had a typo in your code, and no the [...] isn't required. This is more than sufficient for his needs. $.ajax("post", "savecomment.cgi", { comment: $("#fldcomment").val

Re: [jQuery] little help

2006-09-07 Thread kenton.simpson
That is correct the $(function is shorthand. and the [ is require and the function will not work with out it. Karl Swedberg-2 wrote: > > On Sep 7, 2006, at 10:09 PM, Matt Stith wrote: >> Whats with the "$(function() {"? > > I think $(function() { }); is shorthand for $(document).ready(function

Re: [jQuery] little help

2006-09-07 Thread Karl Swedberg
On Sep 7, 2006, at 10:09 PM, Matt Stith wrote:Whats with the "$(function() {"?  I think $(function() { }); is shorthand for $(document).ready(function() { });At least, that's what Jörn told me on my "Learning jQuery" blog: http://www.learningjquery.com/2006/09/introducing-document-ready#comment-6Ka

Re: [jQuery] little help

2006-09-07 Thread Matt Stith
Whats with the "$(function() {"? Maybe im missing something here, but i dont see why you need to put all of that inside an anonymous function which is also inside of a jQ object. Wouldnt this work fine:
$("#showform").slideDown();
$("#hideform").slideUp(function() {
   $.ajax("post", 

Re: [jQuery] little help

2006-09-07 Thread kenton.simpson
This is should be close to what you want. $(function() { $("#showform").slideDown(); $("#hideform").slideUp(function() { $.ajax("post", "savecomment.cgi", [{ name: comment,