[jQuery] Re: Please explain $(#username) $(#newUser).bind(click,{},function(){}) and..........

2009-10-10 Thread Charlie Griefer
On Fri, Oct 9, 2009 at 10:18 PM, anjith anjithkumar.garap...@gmail.comwrote: i am using Jquery and javascript from long back but i don't know what this really means and what they return etc can any explain theseor can u just any wesite containing tutorials about these codings.

[jQuery] Re: Please say the meaning of $(#username) or $(#newUser).bind(click,{},function(){}) and..........

2009-10-10 Thread Charlie Griefer
On Fri, Oct 9, 2009 at 10:30 PM, anjith anjithkumar.garap...@gmail.comwrote: i am using Jquery and javascript from long back but i don't know what this really means and what they return etc can any explain theseor can u just any wesite containing tutorials about these codings.

[jQuery] Re: effect over images loaded via ajax (load method)

2009-10-10 Thread kknaru
hmm...nobody? :(

[jQuery] Re: effect over images loaded via ajax (load method)

2009-10-10 Thread Charlie
hover the li not the img in your append you are not appending to the li you are trying to append to the img which shouldn't work kknaru wrote: i have some images loaded viad load method, something like this: ul liimg src="" alt="" //li liimg src="" alt="" //li /ul on

[jQuery] Re: effect over images loaded via ajax (load method)

2009-10-10 Thread Giovanni Battista Lenoci
kknaru ha scritto: hmm...nobody? :( I think that the problems occurs when you over the image in the space where the div with the controls appears (firing the mouseout event for the image). I think you have to bind a mouseover function for the div that appears setting a variable

[jQuery] Re: jQuery/JSON forms issue: tries to download response

2009-10-10 Thread Jim
On Oct 9, 8:50 pm, MorningZ morni...@gmail.com wrote: it's supposed to be application/json, not text/json. set the content type properly in your server side code and you'll be fine... text/plain will work as well I don't have control over the server code - is there any other possible

[jQuery] serial scroll 'not working'

2009-10-10 Thread Jan Limpens
Sorry for the dumb title, but f I knew what it was, I'd probably not write this message At http://limpens.com I want to show my portfolios from flick photosets. I would want to use serialscroll to navigate within large sets. I think, I did it all as in the plugin's demo site, but out of some

[jQuery] Re: serial scroll 'not working'

2009-10-10 Thread Jan Limpens
Forgot to say: only the third set has pictures in it right now 2009/10/10 Jan Limpens jan.limp...@gmail.com: Sorry for the dumb title, but f I knew what it was, I'd probably not write this message At http://limpens.com I want to show my portfolios from flick photosets. I would want to

[jQuery] Re: jQuery/JSON forms issue: tries to download response

2009-10-10 Thread Jim
On Oct 9, 8:50 pm, MorningZ morni...@gmail.com wrote: it's supposed to be application/json, not text/json. set the content type properly in your server side code and you'll be fine... text/plain will work as well After some further searching, I found this section of code in the jQuery

[jQuery] Re: scrolling text within a div

2009-10-10 Thread brian
On Fri, Oct 9, 2009 at 9:42 PM, macsig sigbac...@gmail.com wrote: Hello guys, in a page I'm working on I have room for a div height not more than 200px, however I need to fit in a text that requires 300px and I don't want to show the scroll-bar on the right side so I'm looking for some

[jQuery] Why doesn't the following code work?

2009-10-10 Thread Phper
$(document).ready(function() { $(#form1).validate({ rules: { name: required,// simple rule, converted to {required:true} title,content, evaluation: { required: true } }, messages: { comment: Please

[jQuery] jQuery Accordian menu help - Find lowest number in array and make it visible

2009-10-10 Thread Nabeel
A user can select multiple options (through checkboxes). Upon submit, the jQuery loads the accordian menu out of the selected options (9). I am trying to show the first one as visible and the rest as collapsed. Now the problem is .. div:lt(1).show makes the first option show (but it is not the

[jQuery] AJAX Javascript content

2009-10-10 Thread nws
Hi there, I'm developing a site which uses the jQuery AJAX module. I want to load external content into a div box inside the website. So far, there are no problems, but when I try to load external content, in this case HTML and Javascript, only the external Javascript is loaded. To solve this

[jQuery] Re: Jquery tabs load external file that uses a jquery plugin

2009-10-10 Thread Karl Swedberg
I'm not sure I quite understand the problem you're having, but it sort of sounds like you could solve the problem by putting code you want to execute after content is loaded into the callback function of the ajax load method. So, using your words below, ajax load the external load file

[jQuery] Re: jquery tabs

2009-10-10 Thread ngreenwood6
Anyone at all have any ideas how to make the tabs not reload when you change between them? ngreenwood6 wrote: I have created a tabbed item. There are 2 tabs on called first the other second. Now when tab1 is clicked it should show the tab1 item and the same for tab2. This is working

[jQuery] Re: loading message shows up after page has loaded

2009-10-10 Thread Karl Swedberg
document.ready fires when the DOM is fully registered. If you have large images in the document, document.ready doesn't wait for those to completely load. So, it's typically earlier than window.onload, but it isn't going to fire before you see stuff on the page. I haven't tested this at

[jQuery] Textarea and newlines

2009-10-10 Thread Nivo
There is a textarea with id 'tresc'. Am taking data from it by: var tresc = $(#tresc); then - tresc.val() How i can add br tag after every new line, so I can add this do the database or sent by mail? Was googling for solution for about 3 hours, nothing works. Cheers.

[jQuery] Re: How to pass a Jquery variable to php?

2009-10-10 Thread Karl Swedberg
On Oct 9, 2009, at 5:05 PM, LWD wrote: Hi! How can i pass a jquery variable to a php variable? Or pass a jquery variable in GET or POST. Thanks!! Take a look at jQuery's Ajax methods -- for example, $.get() and $.post() -- and note the data argument:

[jQuery] Re: When choosen a checked then other checked disable and else

2009-10-10 Thread Karl Swedberg
This looks like it's going to cause a problem. What happens if someone clicks #check1 but then changes her mind? She can't click #check2 anymore, because it's disabled. --Karl Karl Swedberg www.englishrules.com www.learningjquery.com On Oct 10, 2009, at 11:50 AM, Tan wrote:

[jQuery] Re: jquery tabs

2009-10-10 Thread Karl Swedberg
I think you'll have more success getting an answer if you post the question to the jquery-ui group. That group is dedicated to questions such as yours that are specifically related to jQuery UI. http://groups.google.com/group/jquery-ui/ Thanks! --Karl Karl Swedberg

[jQuery] Re: Textarea and newlines

2009-10-10 Thread Karl Swedberg
On Oct 10, 2009, at 12:26 PM, Nivo wrote: There is a textarea with id 'tresc'. Am taking data from it by: var tresc = $(#tresc); then - tresc.val() How i can add br tag after every new line, so I can add this do the database or sent by mail? Was googling for solution for about 3 hours,

[jQuery] Hide checkbox when choosen value in select 0

2009-10-10 Thread Tan
Hello, span id=thmr_5 class=thmr_call div class=form-item id=edit-sitewide-wrapper label class=option for=edit-sitewideinput type=checkbox name=sitewide id=edit-sitewide value=1 class=form-checkbox / site wide/label /div /span span id=thmr_7 class=thmr_call div class=form-item

[jQuery] Re: Debug says I'm missing a paren, but all parens are matched!

2009-10-10 Thread hsfrey
Michael: Yes, Indeed! That works perfectly! Thank you! And it seems so simple and obvious in retrospect. g Actually, I hadn't realized that I could put the selector into a variable and reuse it that way, so you've taught me something else new. Harvey

[jQuery] how can i write a function that accepts a callback function

2009-10-10 Thread kknaru
hi there, how can i write a function that accepts a callback function? $(selector).myFunction(argument,options,function(){ //do the thing }); i want myFunction to load some data via(an unordored list actually) load method end then somehow to return the wrapped elements for the

[jQuery] Re: how can i write a function that accepts a callback function

2009-10-10 Thread Michael Geary
Simply declare the callback as one of the parameters to your function, and call it when you're ready. Let's take a non-jQuery example for simplicity. // Call a callback function after a random delay of 1 to 5 seconds, // and pass the time delay we used as an argument to the callback

[jQuery] Re: Debug says I'm missing a paren, but all parens are matched!

2009-10-10 Thread Michael Geary
Glad I could be of assistance, Harvey. Yes, you can put anything into a variable! :-) It's especially useful to save a jQuery object in a variable as in this code: var $input = $([id$=+b1+] input); $input.val( $input.val() == Hide ? Show : Hide ); This way the fairly expensive search that

[jQuery] Re: how can i write a function that accepts a callback function

2009-10-10 Thread kknaru
hmm...so..how should i prepare the data? something like this? var someData = $(selector).load(page.php,{...etc}); in this way the callback function will have access to the loaded content as jquery wrapped set of elements?

[jQuery] Re: how can i write a function that accepts a callback function

2009-10-10 Thread Michael Geary
I don't know how you should prepare the data. That was just example code. Are you using $(selector).load(...)? You know that already has an optional callback function: http://docs.jquery.com/Ajax/load#urldatacallback Inside the callback, 'this' is the element you loaded the HTML text into, so

[jQuery] Ajax Request Order

2009-10-10 Thread James W
Hello, I have a page that makes two ajax calls when the function is called. I have noticed while testing the page that sometimes the second request does not run, the first request works but then sometimes the second ones gets skipped. Is there a way to make sure the second request fires only

[jQuery] Using jquery ui plugin. Don't know what functions name to use.

2009-10-10 Thread Aaron
HI, I am using this: http://jquery-ui.googlecode.com/svn/branches/labs/carousel/demo/index.html plugin to jquery ui. The problem is that it's not working at all. I downloaded the firefox debugger and it's spitting out a error saying that it can't find the function of carousel. I am not

[jQuery] Re: Ajax Request Order

2009-10-10 Thread ngreenwood6
I think that you could probably do something like this: //first get $.ajax({ type: GET, url: some.php, data: name=Johnlocation=Boston, success: function(){ //another get on success $.ajax({ type: GET, url: somepage2.php, data:what=whatever,

[jQuery] Re: how can i write a function that accepts a callback function

2009-10-10 Thread kknaru
i know that load accepts a callback, but i want to understand how to write a function that accepts a callback function 'cause i want to use it in a plugin. I'm new to plugin development so this are my first steps in understanding this concepts. ok, so i tried a simple script just to understand

[jQuery] using jquery ui plugin to make carousel effect

2009-10-10 Thread Aaron
Hi, I am trying to use this plugin:http://jquery-ui.googlecode.com/svn/ branches/labs/carousel/demo/index.html I don't know what the function name to use to make a carousel effect. I even looked at the source code of those demos and tried to use the function carousel. I have firefox debugger

[jQuery] Re: how can i write a function that accepts a callback function

2009-10-10 Thread Michael Geary
What you have to do is actually *call* the callback function. Now the way you've written the callback, it expects 'this' to be the element you're working on - the same element which is 'this' in the click handler itself. So you can't use an ordinary function call, you have to use .call() or

[jQuery] Fade in/ out image

2009-10-10 Thread Dave Maharaj :: WidePixels.com
How can i remove the image in an id but keep the div? div id = something image here /div I want to fade the image out then remove it completely from the div keeping the div so the new content can be loading inside it? Dave

[jQuery] Re: how can i write a function that accepts a callback function

2009-10-10 Thread kknaru
many many thanks Mike! now i have a basic idea and i will focus on it trying to implement it in my plugin. Thanks again

[jQuery] My code is not working getting an error missing )

2009-10-10 Thread jessie
Hi Everyone I have been given this code to add to my effects.js $(.button).hover(function() { $(.button).addClass(imgbuttonhover); $(.button).removeClass(imgbutton); }, function() { $(.button).addClass(imgbutton); $(.button).removeClass(imgbuttonhover); } But when i add it to my file i get this

[jQuery] Re: My code is not working getting an error missing )

2009-10-10 Thread Matt Quackenbush
Add a ) to the end. You have to close the opening hover() function call.

[jQuery] Re: My code is not working getting an error missing )

2009-10-10 Thread Rick Faircloth
I'm not sure what the code surrounding your code looks like, but from the code below, it looks like you're missing a ) at the end to close the first ( after .hover ... This should work: $(.button).hover(function() { $(.button).addClass(imgbuttonhover); $(.button).removeClass(imgbutton);

[jQuery] Assigning CSS 'display:block' by jquery not working

2009-10-10 Thread Caisys
Hi, I am trying to display a hidden ul by using the $(id).addClass() method. For some reason the ul stays hidden. Can someone please help me?? Thanks ##mystyle.css ul#sitenav { padding:0; } ul#sitenav li{ display:inline; list-style-type:none; } ul#sitenav li ul{ display:none; }

[jQuery] Repeating Data Regions

2009-10-10 Thread Mossum
Hello, I am brand new to jQuery. I am trying to determine if there is a jQuery equivelant to Adobe Spry's data region and repeat regions, where a variable is defined as an HTML or xml datasource, then a region is defined in the body where elements are repeated and populated with values from the

[jQuery] Re: My code is not working getting an error missing )

2009-10-10 Thread Rick Faircloth
Now, Matt! I just knew by the time I typed up a long-winded reply, someone would come along and give the short, to-the-point, answer. :op :o) Rick From: jquery-en@googlegroups.com [mailto:jquery...@googlegroups.com] On Behalf Of Matt Quackenbush Sent: Saturday, October 10, 2009 9:32

[jQuery] jQuery update (internal) function

2009-10-10 Thread Sn3b
Hi everyone, I was wondering if anyone knew anything about the internal update function that seems to be used for effects. My real question is, is it really necessary to change the css display property to block when an animation involves changing the height or width of the element to animate?

[jQuery] jquery and regular expression

2009-10-10 Thread Otis Harrison
Hi, I have a question about how could I create a textbox that will use jquery to add a regular expression that a user passes in. I want to be able to us a variable to pass in regular expression using jquery. Any help please. thanks

[jQuery] Jquery and nvelocity

2009-10-10 Thread Otis Harrison
Hi, I was wondering if any one has used jquery and nvelocity and also if they have use jquery within the macros?

[jQuery] Re: My code is not working getting an error missing )

2009-10-10 Thread jessie
ok thanx guys, except that didn't resolve the problem. I've posted about this before, and still can't get a way around it all. For starters this is what i currently have. jQuery(function($) { function getLeaf(url) { var splited=url.split('?');// remove all the parameter from url

[jQuery] Re: Assigning CSS 'display:block' by jquery not working

2009-10-10 Thread Rick Faircloth
According to Firebug, the class, selected is being applied to #home-subnav. However, the CSS ul#sitenav li ul { display:none; }, is taking precedence over the CSS of class, selected. Are you trying to get the sub-menu (#home-subnav) to show up when you hover over Home ? Or what is the effect

[jQuery] Re: My code is not working getting an error missing )

2009-10-10 Thread Rick Faircloth
and the only error you're getting is that a ) is missing? -Original Message- From: jquery-en@googlegroups.com [mailto:jquery...@googlegroups.com] On Behalf Of jessie Sent: Saturday, October 10, 2009 9:57 PM To: jQuery (English) Subject: [jQuery] Re: My code is not working getting an

[jQuery] Re: Fade in/ out image

2009-10-10 Thread Karl Swedberg
On Oct 10, 2009, at 7:45 PM, Dave Maharaj :: WidePixels.com wrote: How can i remove the image in an id but keep the div? div id = something image here /div I want to fade the image out then remove it completely from the div keeping the div so the new content can be loading inside it?

[jQuery] Re: My code is not working getting an error missing )

2009-10-10 Thread jessie
yes the only error now i'm getting is missing } after function body [Break on this error] ) Jess On Oct 11, 12:08 pm, Rick Faircloth r...@whitestonemedia.com wrote: and the only error you're getting is that a ) is missing? -Original Message- From: jquery-en@googlegroups.com

[jQuery] Re: jQuery update (internal) function

2009-10-10 Thread Karl Swedberg
Well, all you have to do to see for yourself is to set an element's height and width with CSS while setting its display property to inline and see what you get. div style=display: inline; height: 500px; width: 500px; background- color: red;this is a test/div then try it without display:

[jQuery] Re: scrolling text within a div

2009-10-10 Thread Macsig
Thanks for the hint. On Oct 10, 7:39 am, brian bally.z...@gmail.com wrote: On Fri, Oct 9, 2009 at 9:42 PM, macsig sigbac...@gmail.com wrote: Hello guys, in a page I'm working on I have room for a div height not more than 200px, however I need to fit in a text that requires 300px and I

[jQuery] Re: My code is not working getting an error missing )

2009-10-10 Thread Rick Faircloth
Well, let's check the bracketing... (I need to format this so I can read it more easily...) jQuery(function($) { function getLeaf(url) { var splited=url.split('?'); url=splited[0]; return url.substring(url.lastIndexOf(/)+1); } jQuery.fn.extend({ enter: function() {

[jQuery] Only one of two fields is required. How to implement this logic in Jquery form validation?

2009-10-10 Thread Phper
There are two input fields in a form, but only one of them is required, they are not required at the same time. Either A or B is required. ( A is required OR B is required). In other words, a user can input data to field A, or he can input data to filed B, but he can not input data to Both A and

[jQuery] Re: My code is not working getting an error missing )

2009-10-10 Thread jessie
Hi Rick Thank-you very much yes it did get rid of the error. I'm also checking it in firebug and i can't see the other error your getting ie. $(div.LPButton, div.CatMoreBtn, div.CatBuyBtn).pngFix() is not a function Nevertheless the error is gone but now my hovering images don't work! Any