[jQuery] Draggable/Droppable - revert:'invalid' working on Firefox, not on Safari

2009-12-27 Thread John Arrowwood
I am creating objects on the page which are meant to be dragged and dropped. Here is how I am enabling it: $(this.element).draggable({ start:P.startDragging, stop:P.stopDragging, revert:'va

[jQuery] Re: I would like to get value each time when one of these checkboxes will change status, how can I do that ?

2009-12-27 Thread dziobacz
thx You very much Charlie :) On 28 Gru, 06:08, Karl Swedberg wrote: > You don't need to use the "change" event. The "click" event is also   > triggered by the keyboard. When the checkbox has focus, press the   > spacebar and see what happens. > > --Karl > > > Karl Swedbergwww.englis

Re: [jQuery] I would like to get value each time when one of these checkboxes will change status, how can I do that ?

2009-12-27 Thread 吕刚
I do not know,but i will try! 2009/12/28, Charlie Griefer : > > You just want the value of the one that's checked? > > $(':checkbox[name=number]').click(function() { > if ($(this).is(':checked')) alert($(this).val()); > }); > > if you want the total of all checked boxes when one is clicked: >

Re: [jQuery] Re: I would like to get value each time when one of these checkboxes will change status, how can I do that ?

2009-12-27 Thread Karl Swedberg
You don't need to use the "change" event. The "click" event is also triggered by the keyboard. When the checkbox has focus, press the spacebar and see what happens. --Karl Karl Swedberg www.englishrules.com www.learningjquery.com On Dec 27, 2009, at 11:26 PM, Charlie Griefer

Re: [jQuery] Re: I would like to get value each time when one of these checkboxes will change status, how can I do that ?

2009-12-27 Thread Charlie Griefer
Wow. Never even thought about that, but it makes perfect sense. Thanks for pointing that out :) On Sun, Dec 27, 2009 at 5:52 PM, Ami wrote: > I recommend to use "change" event and not "click" event, becuase users > can change the checkbox without clicking (by using the keyboard). > > On Dec 28

[jQuery] Keeping Dropdown Menu In Front of Google Ads?

2009-12-27 Thread Vik
I've got a Google ad in the top right column, and drop-down menus that come down over it. Often, it's a Flash ad, and the drop-down menu gets hidden behind it. I have put the Google ad in a div with a low z-index, and give the drop-down menu a high z-index. This appears to solve it for some Goog

Re: [jQuery] Re: Finding next element

2009-12-27 Thread Karl Swedberg
You can't just use .prev() or .next() because the links are within list items. Instead, you'll need to do something like this: $('a.active').parent().prev().find('a') and this: $('a.active').parent().next().find('a') --Karl Karl Swedberg www.englishrules.com www.learningjquery.

[jQuery] Re: Change "this" when binding element

2009-12-27 Thread Ami
I get an answer from John: http://groups.google.com/group/jquery-dev/msg/9345d498c4a1d5f5 On Dec 23, 5:05 pm, Ami wrote: > One solution is to use the data property like: > > function myObj() > { > document.bind('scroll',this,this.myScroll); > this.myScroll=function (data) { >                 //No

[jQuery] Re: [AUTOCOMPLETE]

2009-12-27 Thread Ami
Yes. try that: $('select').focus( function (){$(this).attr('size',5)} ).blur( function (){$(this).attr('size',0)} ) If it.. rate me please. On Dec 23, 9:47 pm, Jake Moon wrote: > Is it possible to open the select list on focus? > > Best regards, > > Jake Moon

[jQuery] Re: Function call

2009-12-27 Thread Ami
function slide() { if ($(slide_img).attr("src")!="images/1.jpg"){ $(slide_img).fadeOut(200,function() { $(slide_img).attr({src:"images/1.jpg"}); $(slide_img).fadeIn(200); });} } OR use can use "this" like: functio

[jQuery] Re: The form is not submitted onKeyDown

2009-12-27 Thread Ami
Try that: $(document).keydown (function (e) { if (e.ctrlKey && e.which==13) { $('#myform').trigger('submit') }) Let me know if it's work. On Dec 27, 6:59 pm, Andre Polykanine wrote: > Hello everyone, > > I'm trying to sumbit the form normally as well as by pressing > Ctrl+Enter. Yepp, the same ta

Re: [jQuery] Finding next element

2009-12-27 Thread brian
Use prev() and next(). Look at the "traversing" section of the docs: http://docs.jquery.com/Traversing On Sun, Dec 27, 2009 at 7:30 PM, Toaster wrote: > Hello. > > Example: > > >       >       >       > > > How would I be able to get find the next or previous in relation > to the ? > > I'd app

[jQuery] Re: I would like to get value each time when one of these checkboxes will change status, how can I do that ?

2009-12-27 Thread Ami
I recommend to use "change" event and not "click" event, becuase users can change the checkbox without clicking (by using the keyboard). On Dec 28, 1:17 am, Charlie Griefer wrote: > You just want the value of the one that's checked? > > $(':checkbox[name=number]').click(function() { >      if ($(

[jQuery] Re: Finding next element

2009-12-27 Thread Ami
$('.active').prev() $('.active').next() Rate me please if I helped. On Dec 28, 2:30 am, Toaster wrote: > Hello. > > Example: > > >       >       >       > > > How would I be able to get find the next or previous in relation > to the ? > > I'd appreciate it if anybody could help me out with

[jQuery] Finding next element

2009-12-27 Thread Toaster
Hello. Example: How would I be able to get find the next or previous in relation to the ? I'd appreciate it if anybody could help me out with this. Thanks in advance.

Re: [jQuery] I would like to get value each time when one of these checkboxes will change status, how can I do that ?

2009-12-27 Thread Charlie Griefer
You just want the value of the one that's checked? $(':checkbox[name=number]').click(function() { if ($(this).is(':checked')) alert($(this).val()); }); if you want the total of all checked boxes when one is clicked: $(document).ready(function() { $(':checkbox[name=number]').clic

[jQuery] Re: Rebinding not working

2009-12-27 Thread mrtoner
I think I understand. As I recall, though, execution of the JS was stopping because I didn't have '()' i there to start. Thanks for the tips; my experience has been with PHP and, although I'm not a pro at that yet, there are a number of differences between it and JS. On Dec 26, 11:35 pm, Michael

[jQuery] Re: Ajax values are lost between 2 operations

2009-12-27 Thread Tristan
it's not the problem, it's working without ajax :D any other guess ? :o i'm stuck with that and i cannot move foward until the problem is fixed ="'( On 27 déc, 23:46, Charlie wrote: > I don't do much with flash but this looks strange to me and is what > is being written into DOM by your getScri

Re: [jQuery] Re: Ajax values are lost between 2 operations

2009-12-27 Thread Charlie
I don't do much with flash but this looks strange to me and is what is being written into DOM by your getScript Tristan wrote: if it can help, here's the link : http://www.gamer-certified.fr/statistiques/par-hebergeur.php 1) yeap they are correct 2) i tryed that but it still not work

Re: [jQuery] problem in installing jquery in debian (lenny)

2009-12-27 Thread Leonardo Balter
already tried to reclone your git rep paste? Maybe you can get better answers in jQuery Dev group. 2009/12/26 alenoosh > Hi > > I'm trying to install jquery in lenny , I have sun-java6-jre , sun- > java6-bin and sun-java6-plugin and sun-java6-jdk installed , but when > I run 'make' in shell to

[jQuery] I would like to get value each time when one of these checkboxes will change status, how can I do that ?

2009-12-27 Thread dziobacz
I have: I would like to get value each time when one of these checkboxes will change status, how can I do that ? For example when first checkbox will be unchecked or second will be checked. Could You help me ?

[jQuery] VALIDATE - error labels don't disappear

2009-12-27 Thread Loony2nz
Using Jorn's awesome validator for the umpteenth time..I'm stumped on this one issue I'm having. I made a simple form Firstname Lastname with a simple validation rule $.validator.setDefaults({

[jQuery] Re: Ajax values are lost between 2 operations

2009-12-27 Thread Tristan
if it can help, here's the link : http://www.gamer-certified.fr/statistiques/par-hebergeur.php 1) yeap they are correct 2) i tryed that but it still not works 3) php is doing his part, datas are correctly updated with the help of the POST value $("#nomGSP").change(function () { //get

[jQuery] Re: Ajax values are lost between 2 operations

2009-12-27 Thread Tristan
thx for the reply 1) yeah, the values are correct i checked that with firebug 2) i tried putting the getScript in callback (i don't know if i did this right) but it's the same no data loaded 3) the php part is doing well i've got the right values in notes.php according to what users select in the

Re: [jQuery] Ajax values are lost between 2 operations

2009-12-27 Thread Charlie
lots of possibilities here...a link would help. 1) are the correct values being sent in post? Firebug can be very helpful for determining this using the "Show XMLHttpRequests" option. 2)getScript may be getting called  prior to notes.php having finished processing (AJAX is asynchronous), coul

[jQuery] Dialog and IFrame problem

2009-12-27 Thread Yuriy Pobezhymov
Hello. I have iframe that set on 100% width and height on the page and jQueryUI dialog: -- $("#dialog").dialog({ autoOpen: false, zIndex: 3999 }); $('#dialog').dialog('open'); }); Browser is not support iframes. This is

[jQuery] Re: Can't get the $.POST working

2009-12-27 Thread Tristan
ok, that's good i've found but got another problem with updating. so i opened another discussion.

[jQuery] Ajax values are lost between 2 operations

2009-12-27 Thread Tristan
Hi, i've got a little problem and i need your help please : my script does : 1- post a value in "notes.php" to update values according to what is send. 2- reload the script which calls an flash chart to update it the problem is : the datas are correctly updated in /notes.php when calling again t

[jQuery] The form is not submitted onKeyDown

2009-12-27 Thread Andre Polykanine
Hello everyone, I'm trying to sumbit the form normally as well as by pressing Ctrl+Enter. Yepp, the same task. What I'm doing is the following: var validator=$("#myform").validate( { // tralala, here go the rules, error

[jQuery] Re: Can't get the $.POST working

2009-12-27 Thread Tristan
you're right, there is no code to do so, i though the chart would be reloaded by itself :/ any idea how you do this please?

[jQuery] Why does this work??

2009-12-27 Thread merchz
Hi, I have a question that puzzles me a lot. I have the following code: $(document).ready(function() { $("#somediv").load("/some/content"); }) The code inserted with AJAX contains two things. 1. A script tag that states things like: $("#Cancel").click(function(e) { e.preventDefault();

[jQuery] jquery xml data

2009-12-27 Thread youngenergy
http://www.w3.org/2001/XMLSchema-instance"; xmlns:xsd="http://www.w3.org/2001/XMLSchema"; xmlns="http:// tempuri.org/"> 10,16,12,13,14,15,11,17 korayo 130 how to assing XML data to bellow values with jquery , thanks yetki = 10,16,12,13,14,15,11,17 user = korayo totalfile = 130

[jQuery] Re: open drodown

2009-12-27 Thread lmeerovich
On 26 дек, 22:45, fachhoch wrote: > My select drop down   is inside a div , I am wondering if jquery has any api > to open the dropdwon   ,when  user clicks on  the div ? > > >         wicket:id="infGrantProgram"> >                 Choose One >                 AD - DEVELOPMENTAL DISABLITIES -

[jQuery] jQuery Validate dynamic form issues

2009-12-27 Thread Dave3
Hey all, this is my first post here. I have tried desperately for hours and hours to find a solution to this problem but so far no luck. I have a dynamic form that will show/hide certain parts based on the value of a select box. I am also using the errorContainer option to display all errors toget

[jQuery] Re: Can't get the $.POST working

2009-12-27 Thread MorningZ
"but the FLASH chart is not reloading" Maybe i am missing something, but where in your shown code above are you attempting to reload anything? your $.post command only has target URL and params specified, not any actions tied to "success" On Dec 26, 11:00 pm, Tristan wrote: > ok, i turned on