[jQuery] Re: Using this with jQuery

2008-06-27 Thread hubbs
This is almost what I need. But .seriesOverlay is not a child, but the previous div in the DOM, so it is right above it. Maybe I could use $(.seriesOverlay + .seriesItem)? On Jun 26, 2:47 am, Richard D. Worth [EMAIL PROTECTED] wrote: If your .seriesOverlay is a child of your .seriesItem[1],

[jQuery] Re: Using this with jQuery

2008-06-27 Thread Richard D. Worth
In that case $(this).prev(.seriesOverlay) should do. - Richard On Fri, Jun 27, 2008 at 12:27 PM, hubbs [EMAIL PROTECTED] wrote: This is almost what I need. But .seriesOverlay is not a child, but the previous div in the DOM, so it is right above it. Maybe I could use $(.seriesOverlay +

[jQuery] Re: Using this with jQuery

2008-06-26 Thread tlob
Add a class to your IDs, then it should work: [code] style type=text/css div {border:1px solid #ccc;width: 100px;height:100px;margin: 10px;float:left;} /style script language=javascript!-- $(document).ready(function(){ $(div.rollover).hover( function () {

[jQuery] Re: Using this with jQuery

2008-06-26 Thread Richard D. Worth
If your .seriesOverlay is a child of your .seriesItem[1], you can do: $(.seriesItem).mouseover(function() { $(.seriesOverlay, this).hide(); }).mouseout(function() { $(.seriesOverlay, this).show(); }); Why this works: * The thisArg in jQuery callbacks is always equal to the original element

[jQuery] Re: using variables with jquery

2008-05-06 Thread Carl Von Stetten
quirksmode, Try this: $('#js_innerwrapper').animate({left:+=+$.gamewidth}, 1000, 'easeOutSine'); HTH, Carl quirksmode wrote: Hi, I need to make a div slide across the screen using the animate command. It works when I use the following: $('#js_innerwrapper').animate({left:+=500}, 1000,

[jQuery] Re: using AJAX with jQuery

2007-12-21 Thread jjshell
First of all, thanks for your time and answers. I really appreciate it. Having made a few tests, the $.ajax approach seems the one that fits the most my application. Just a few questions: 1. Can you avoid to explicitely name each field of your form? data: test= + $(input[name=test]).val(), What

[jQuery] Re: using AJAX with jQuery

2007-12-21 Thread Jake McGraw
JJShell: You can address both issues by using all inputs within a form var values = {}; $(form).find(input:text).each(function(){ values[$(this).attr(name)] = $(this).val(); }); Now values will have the following structure for your second example, which PHP should automatically turn into an

[jQuery] Re: using AJAX with jQuery

2007-12-21 Thread Jake McGraw
As you can tell, the possibilities are endless with jQuery... best skimming through the documents so you can get an idea of the tools out there. - jake On Dec 21, 2007 11:28 AM, Jake McGraw [EMAIL PROTECTED] wrote: JJShell: You can address both issues by using all inputs within a form var

[jQuery] Re: using AJAX with jQuery

2007-12-21 Thread Shawn
You can also use the .serialize() method to collect your values: . . . data : $(#myform).serialize(), . . . That works best on text inputs though. If you have select boxes - and especially if they are multi-select, then you may have better luck with the .serializeArray() method.

[jQuery] Re: using AJAX with jQuery

2007-12-21 Thread jjshell
Thanks a lot for your reply and time :) It's all clear now.

[jQuery] Re: using AJAX with jQuery

2007-12-20 Thread Benjamin Sterling
jjshell, The easiest way is to use the form plugin: http://www.malsup.com/jquery/form/ On 12/20/07, jjshell [EMAIL PROTECTED] wrote: Hello, I'm new to jQuery (and AJAX for that matter). Even if the library is really easy to use, I'm still having problems ajaxing. I'd like to understand how

[jQuery] Re: using AJAX with jQuery

2007-12-20 Thread Jake McGraw
Replace // ? with: $(function(){ // 1 $(form).submit(function(){ // 2 var value = $(this).find(input[name=test]).val(); // 3 $.post(/test/ajax/record/,{test:value},function(){ // 4 alert(Message sent successfully!); // 5 }); return false; // 6 }); }); Notes for each

[jQuery] Re: using AJAX with jQuery

2007-12-20 Thread Shawn
Keeping in mind that the $.get() and $.post() methods are just convenience wrappers for $.ajax(). You could do the same with this: $.ajax({ url: /test/ajax/record/, type: POST, data: test= + $(input[name=test]).val(), success: function (data) { alert(Successfully saved data);

[jQuery] Re: using thickbox with jquery live

2007-11-22 Thread alexanmtz
I made the same thing, but Im having trouble... Im having a lot of requests per time... On Nov 7, 11:59 am, tlphipps [EMAIL PROTECTED] wrote: I did that very thing be modifying the tb_init() function in thickbox. Here is my modified version that uses livequery. function tb_init(domChunk){

[jQuery] Re: using thickbox with jquery live

2007-11-08 Thread [EMAIL PROTECTED]
thanks so much. that worked perfectly. On Nov 8, 12:59 am, tlphipps [EMAIL PROTECTED] wrote: I did that very thing be modifying the tb_init() function in thickbox. Here is my modified version that uses livequery. function tb_init(domChunk){ $(domChunk).livequery('click',function(){

[jQuery] Re: using thickbox with jquery live

2007-11-07 Thread tlphipps
I did that very thing be modifying the tb_init() function in thickbox. Here is my modified version that uses livequery. function tb_init(domChunk){ $(domChunk).livequery('click',function(){ var t = this.title || this.name || null; var a = this.href ||

[jQuery] Re: Using part of JQuery

2007-07-05 Thread John Resig
You can download jQuery from SVN and build your own copy. If you were to open the Makefile that's included with jQuery you'd see a list of files that are to be included in jQuery directly - you can then remove the Ajax and FX modules and build a new copy. I realize that this is convoluted, and

[jQuery] Re: Using EXT with Jquery

2007-04-20 Thread Remy Sharp
HI Eli, I spotted this too - and had a play with Ext and jQuery - though I couldn't really see how the two were supposed to be linked together. I did get the same error as you, but it was because I hadn't set up the underlying HTML properly, i.e. I was telling my page to target 'yui-north'

[jQuery] Re: Using EXT with Jquery

2007-04-20 Thread Remy Sharp
As promised: http://remysharp.com/wp-content/uploads/2007/04/ext_layout.html

[jQuery] Re: Using EXT with Jquery

2007-04-20 Thread Andy Matthews
Never mind. Checked it in FF. Pretty cool. -Original Message- From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Eli Sent: Friday, April 20, 2007 8:37 AM To: jQuery (English) Subject: [jQuery] Re: Using EXT with Jquery Thanks all of you, especially Remy, I managed

[jQuery] Re: Using EXT with Jquery

2007-04-20 Thread Remy Sharp
I also wrote up a short article on my initial play with Ext and the mistakes I made (it also includes a link the jquery-plugins.js file that Juha points out is missing): http://remysharp.com/2007/04/20/jquery-ext/

[jQuery] Re: Using EXT with Jquery

2007-04-20 Thread Remy Sharp
: [jQuery] Re: Using EXT with Jquery Thanks all of you, especially Remy, I managed to solve my problem, thishttp://remysharp.com/wp-content/uploads/2007/04/ext_layout.html helped me a lot mate, thanks :) On Apr 20, 2:06 pm, Remy Sharp [EMAIL PROTECTED] wrote: I also wrote up a short article

[jQuery] Re: Using EXT with Jquery

2007-04-19 Thread Brad Perkins
Eli, This thread might help. http://groups.google.com/group/jquery-en/browse_thread/thread/bb64561ee9fe2e22/fdb149e62b2bd03b?lnk=gstq=extrnum=2#fdb149e62b2bd03b On 4/19/07, Eli [EMAIL PROTECTED] wrote: Hey guys, Just noticed a couple of days ago that ext now has a new 'extjs' for jquery,