[jQuery] Re: Endeavour: translating X-Library functionality click-n-drag checkboxes into Jquery

2009-04-12 Thread Ricardo
The problem with your fix is that the event target for the mouseup is not the same as the mousedown. You can resolve that by saving the clicked checkbox in a var, and because of event order the change has to be made on 'click' rather than mouseup. http://jsbin.com/asizu/edit Sorry for the bugs,

[jQuery] Re: jQuery SL - jQuery Silverlight Plugin Feedback

2009-04-12 Thread Ricardo
The Vividas technology seems great, it can play HD fullscreen with zero hiccups, and has great quality using low bandwith: http://vividas.com/ On Apr 11, 5:42 am, Jordon Bedwell jor...@envygeeks.com wrote: You confuse the Silverlight project completely. It's not just a player. It's really

[jQuery] Re: Problems using JRC corner or curvycorner

2009-04-12 Thread weepy
you could try this plugin http://gist.github.com/77516 works for me On Mar 26, 9:18 pm, banacan banaca...@gmail.com wrote: Nicola, Thanks for the link.  Unfortunately CornerZ won't work on this project because the parent div background is a gradient and the background color must be

[jQuery] Re: jQuery Form Validation

2009-04-12 Thread Jörn Zaefferer
Just remove the required-rule. All other methods include a check to make a field optional when empty. Jörn On Sat, Apr 11, 2009 at 7:16 PM, NobitaNobi79 frankcheun...@gmail.com wrote: Hi, I am new to jQuery. I follow the example on http://docs.jquery.com/Plugins/Validation/Methods/email to

[jQuery] Re: Validation plugin remote problem

2009-04-12 Thread Jörn Zaefferer
You need to echo true for a valid value. Jörn On Sun, Apr 12, 2009 at 1:02 AM, Victorr victor.ry...@gmail.com wrote: I'm using CakePHP, jQuery and the validation plugin. I'm having some problems. I'm trying to check if a email is already in use but I can't seem to get it too work. I'm just

[jQuery] Re: JSON , PHP, MySQL, and jQuery

2009-04-12 Thread Ricardo
Nope. There are no associative arrays in JS, and you can't have an object without property names (that would be the case in your example). The way he posted is correct, an array of objects. On Apr 12, 2:23 am, Jean jnascime...@gmail.com wrote: [ {'name': 'John', 'lastName': 'Doe','age':'25',

[jQuery] Re: jquery toggle class, I needed to switch class....

2009-04-12 Thread dongle
didnt you forget jQuery.fn.switchClass=function ??? On Mar 23, 7:47 pm, Eric Garside gars...@gmail.com wrote: Or: jQuery.fn.switchClass( a, b ){    var t = this.hasClass(a);    this.addClass( t ? b : a ).removeClass( t ? a : b ); } On Mar 23, 12:35 pm, T.J. Crowder

[jQuery] ajax post data json - php receives only post data, no json

2009-04-12 Thread mcologne
hi... i have a normal email form, where the user can send an email with some data... at first i send it with normal post (no dataType in jquery)... but it was difficult to handle the returning messages from php, e.g. validation messages or ok messages... therefor i tried dataType json... like

[jQuery] Re: ajax post data json - php receives only post data, no json

2009-04-12 Thread dongle
learn to make a simple ajax query before playing with jquery, to use json data is completely senseless here On Apr 12, 1:32 pm, mcologne blueameri...@web.de wrote: hi... i have a normal email form, where the user can send an email with some data... at first i send it with normal post (no

[jQuery] Re: Endeavour: translating X-Library functionality click-n-drag checkboxes into Jquery

2009-04-12 Thread Lwangaman
Ok that works better, I just changed clicked.checked = !isChecked to clicked.checked = isChecked: http://jsbin.com/idihi/edit On 12 Apr, 08:11, Ricardo ricardob...@gmail.com wrote: The problem with your fix is that the event target for the mouseup is not the same as the mousedown. You can

[jQuery] Re: Endeavour: translating X-Library functionality click-n-drag checkboxes into Jquery

2009-04-12 Thread Lwangaman
@Ricardo Do you think it could be useful to add this to the jquery plugins at plugins.jquery.com? I'd say it could be put under your name because you did all the big work! On 12 Apr, 14:35, Lwangaman donjohn.f...@gmail.com wrote: Ok that works better, I just changed clicked.checked = !isChecked

[jQuery] Re: ajax post data json - php receives only post data, no json

2009-04-12 Thread mcologne
@donb: thanks... i thought it was in both directions... On 12 Apr., 16:46, donb falconwatc...@comcast.net wrote: $_post sends the data which 'arrives' at your PHP page as $_POST array elements.  That's the nature of an HTTP post action.  By indicating a 'json' datatype, the data your script

[jQuery] Re: How do I set the value of a form element?

2009-04-12 Thread webguy...@yahoo.com
Thanks! That did it! Can you take a look at where I ultimately need to go with this? This page... http://www.eastexhaust.com/inventory_.php ...has two forms. First one generates a part number via ajax. The next form sends us the part number with name, phone, email, etc. I'm trying to get

[jQuery] Re: How do I set the value of a form element?

2009-04-12 Thread victorg
script language=text/javascript -- script type=text/ javascript On Apr 12, 3:29 pm, webguy262 webguy...@yahoo.com wrote: I'm sorry for being so thick, but I'm stuck. Please, can someone view the source of this page... http://www.eastexhaust.com/jquerytest.html ...and tell me why it is

[jQuery] Block UI and Safari search plug-in

2009-04-12 Thread Claudio Poli
hi everyone, I'm using Block UI plugin and I'm happy with it. I discovered Safari search plug-in and wanted to give it a try, while it works well in Safari, in Firefox and IE the search box is really messed up; I tried to hunt down the problem and it is somewhat related not to css per se but in

[jQuery] Re: ajax post data json - php receives only post data, no json

2009-04-12 Thread donb
$_post sends the data which 'arrives' at your PHP page as $_POST array elements. That's the nature of an HTTP post action. By indicating a 'json' datatype, the data your script returns will be expected to be in JSON form. On Apr 12, 7:32 am, mcologne blueameri...@web.de wrote: hi... i have

[jQuery] How do I set the value of a form element?

2009-04-12 Thread webguy262
I'm sorry for being so thick, but I'm stuck. Please, can someone view the source of this page... http://www.eastexhaust.com/jquerytest.html ...and tell me why it is not setting the value of the form element? ricardobeat wrote: $('#myspan').text( $('#partnum').val() );

[jQuery] Re: replacing entire html node having jquery trigger document.ready again for new content

2009-04-12 Thread e.sand
So far I've been able to get this piece of code to do almost all of what I want - only problem is that the browser is able to track this in it's cache, so back/forward buttons iterate through each new document.write() call: var html = data.responseText.match(/html?[\s\S]+\/html/im);

[jQuery] Re: Validation plugin remote problem

2009-04-12 Thread Victorr
Ok. But what do i need too echo to get a false value and an error message? thanks! On 12 Apr, 10:37, Jörn Zaefferer joern.zaeffe...@googlemail.com wrote: You need to echo true for a valid value. Jörn On Sun, Apr 12, 2009 at 1:02 AM, Victorr victor.ry...@gmail.com wrote: I'm using

[jQuery] Re: Block UI and Safari search plug-in

2009-04-12 Thread Claudio Poli
whops, actually the page is http://www.levsys.co.uk/products/jquery-safari-search-1.0/ currently I'm still investigating, not quite 100% sure itìs block ui behaving like this. Il giorno 12/apr/09, alle ore 17:25, Claudio Poli ha scritto: hi everyone, I'm using Block UI plugin and I'm

[jQuery] Re: Block UI and Safari search plug-in

2009-04-12 Thread Claudio Poli
I found the problem, markup was missing a class. On 12 Apr, 17:40, Claudio Poli masterk...@gmail.com wrote: whops, actually the page ishttp://www.levsys.co.uk/products/jquery-safari-search-1.0/ currently I'm still investigating, not quite 100% sure itìs block ui   behaving like this. Il

[jQuery] Re: replacing entire html node having jquery trigger document.ready again for new content

2009-04-12 Thread jay
Is the document not ready after innerHTML is set? I'd imagine there would be circumstances where different browsers would behave differently with styling of certain DOM elements, but I imagine you could special case those situations. On Apr 12, 10:31 am, e.sand elisand@gmail.com wrote: So

[jQuery] Re: addClass (et al) malfunctioning in IE7

2009-04-12 Thread Randell
It would be nice if you can post your code here so we can easily debug it. Cheers, --- Randell http://randell.ph/geeky/

[jQuery] Superfish v1.4.8 – jQuery menu

2009-04-12 Thread clonez
Hi, I having some problems with the css inside the superfish as I want the menu to change the text and selected menu to another color when rollover it. May I know which part of the code that needs to be changed?

[jQuery] Slider Range

2009-04-12 Thread LESSTERM
Hi, Im trying the Slider range and set min and max values. How do I set on load the max value to be 'No Limit' like www.century21.com ? Thanks, Lstr

[jQuery] jQuery on a generic registration form

2009-04-12 Thread Randell
Hi guys, I recently wrote a simple script for registration forms. It includes AJAX checking if a username and/or email already exists, checking if passwords match, loading and reloading of captcha. I know the code can still be improved with respect to the use of jQuery and other programming

[jQuery] Re: sidebar menu

2009-04-12 Thread Randell
You can try googling 'suckerfish'. It might be the answer you're looking for. Cheers, --- Randell http://randell.ph/geeky/

[jQuery] [validate]Submit button needing to be clicked twice.

2009-04-12 Thread Willeus Acuna
I'm using the validation plugin from http://bassistance.de/jquery- plugins/jquery-plugin-validation/ and I'm encountering a problem when submitting CORRECT data. When the data being inputted is all correct, I end up having to click the submit button TWICE before the data is sent to the server.

[jQuery] Re: cycle plugin - background color in IE?

2009-04-12 Thread bhon
Thanks. you save me today.

[jQuery] .each - how to write in my code?

2009-04-12 Thread adesign
Hello, I am very new to jQuery and don´t know how to write my code for every item. Here is my code for a list with hover functions, I would like for every item to be processed separately. I know about a functio that is written .each, but can´t seem to get it to work. --- script

[jQuery] jQuery on a generic registration form

2009-04-12 Thread Randell
Hi guys, I recently wrote a simple script for registration forms. It basically includes AJAX checking if a username/email exists, checking if the passwords match, loading and reloading of captcha. I feel like there's a lot to improve in this simple script. It would be great if you can bash my

[jQuery] Help, friends!

2009-04-12 Thread rusllangashik
Hi all I need realize a tag cloud in style, how it done here - 4dle.ru (russian site). I khow it jQuery! Can some give me script to realize it? Please!

[jQuery] Re: .each - how to write in my code?

2009-04-12 Thread jay
inside the each you need to reference this or $(this) instead of referencing all of the elements again. On Apr 12, 11:38 am, adesign andersek...@gmail.com wrote: Hello, I am very new to jQuery and don´t know how to write my code for every item. Here is my code for a list with hover

[jQuery] Re: IE8 will not perform Fade animation properly

2009-04-12 Thread Jared A. D. Radtke
Here is the HTML: !DOCTYPE html PUBLIC -//W3C//DTD XHTML 1.0 Transitional//EN http:// www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd html xmlns=http://www.w3.org/1999/xhtml; head meta http-equiv=Content-Type content=text/html; charset=utf-8 / titleUntitled Document/title script

[jQuery] Re: How do I set the value of a form element?

2009-04-12 Thread webguy...@yahoo.com
I have some more detail on this issue. Again, I'm trying to use jquery to grab the value generated by an an ajax call (done in form 1) and then assign that ajax-generated value to a field in another form (form2). You can see the page and view the source here:

[jQuery] Re: Help, friends!

2009-04-12 Thread brian
Why don't you just have a look at the script at that site? On Sat, Apr 11, 2009 at 7:13 PM, rusllangashik online...@gmail.com wrote: Hi all I need realize a tag cloud in style, how it done here - 4dle.ru (russian site). I khow it jQuery! Can some give me script to realize it? Please!

[jQuery] Re: Endeavour: translating X-Library functionality click-n-drag checkboxes into Jquery

2009-04-12 Thread Ricardo
Sure! I have a few other plugins I also want to upload, I'll do that. I took the time to rewrite it more carefully. No more binding/ unbinding, a single var, all namespaced and bugs ironed out (if you put the cursor away while holding the button, the mouseover would remain active even after

[jQuery] Re: jquery toggle class, I needed to switch class....

2009-04-12 Thread Ricardo
This is exactly the same as $(selector).toggleClass(a).toggleClass(b) On Mar 23, 2:47 pm, Eric Garside gars...@gmail.com wrote: Or: jQuery.fn.switchClass( a, b ){    var t = this.hasClass(a);    this.addClass( t ? b : a ).removeClass( t ? a : b ); } On Mar 23, 12:35 pm, T.J. Crowder

[jQuery] Re: How do I set the value of a form element?

2009-04-12 Thread brian
Where's the ajax call? Assign the form value in your success callback, after the span has been added to the DOM. Or, just assign the return directly to the form element, if that's all you're sending back. On Sun, Apr 12, 2009 at 12:53 PM, webguy...@yahoo.com webguy...@yahoo.com wrote: I have

[jQuery] Re: How do I set the value of a form element?

2009-04-12 Thread webguy...@yahoo.com
Brian Sorry, i'm not experienced enough to know exactly what you are recommending. Any chance you could take a look at my page source? Everything is there. This version on this page... http://www.eastexhaust.com/inventory_.php ...attempts to set the value of the part number in the second

[jQuery] Re: Fade Pictures In and Out

2009-04-12 Thread PF
Sorry to bump, but I would like this finished sooner or later. On Apr 11, 3:48 pm, PF piercefree...@gmail.com wrote: Hey everyone and thanks for all the help.  I currently have the photos working in a UL list, but I can't figure out how to set them as the background.  Thanks for any help.

[jQuery] Re: jQuery on a generic registration form

2009-04-12 Thread Octavian Râsnita
What should be added is a better Captcha which is accessible for those who can't see - provide a sound alternative, because otherwise your form won't be accessible at all for the blind. Then it could be also helpful to use label elements for specifying the labels for the fields of the form.

[jQuery] Function Problem

2009-04-12 Thread djn12313
New to jQuery and trying to port a simple Select-Box-Value-Hides/Shows- a-Text-Box script from JS to jQuery. I'm sure this must be something simple, but it's driving me nuts. Note: The following function is just an example for testing. If I define call the Function below without any parms

[jQuery] Custom error function in jQuery Validation plugin?

2009-04-12 Thread cohq82
I am new to jQuery validation plugin (http://docs.jquery.com/Plugins/ Validation). What I am trying to do is to have my own error message DIV with display:none initially. If there is error, I want to run the fadein/fadeout to show that error. The structure of the input/error DIV like this:

[jQuery] Re: Endeavour: translating X-Library functionality click-n-drag checkboxes into Jquery

2009-04-12 Thread jscripter
Hey - this is great work - I just happened to be looking for this functionality. How would you apply what you have done here to re-writing the original X-library code that uses TDs for the checkbox label? Thanks! On Apr 12, 2:04 pm, Ricardo ricardob...@gmail.com wrote: Sure! I have a few

[jQuery] Re: Help, friends!

2009-04-12 Thread dongle
google is your best friend. bye! On Apr 12, 1:13 am, rusllangashik online...@gmail.com wrote: Hi all I need realize a tag cloud in style, how it done here - 4dle.ru (russian site). I khow it jQuery! Can some give me script to realize it? Please!

[jQuery] jQuery Documentation

2009-04-12 Thread will
Hi, Was wondering if there is a specific active group for the jQuery documentation project? I'd love to see a system sort of like php.net that allows users to post relevant code examples. to do this, use this. I have trouble connecting the dots sometimes and those examples can really help.

[jQuery] Re: Endeavour: translating X-Library functionality click-n-drag checkboxes into Jquery

2009-04-12 Thread John D'Orazio
Hmmm... I tried using dragCheck(false) but it doesn't unbind the events, I had to unbind manually. 2009/4/12 Ricardo ricardob...@gmail.com Sure! I have a few other plugins I also want to upload, I'll do that. I took the time to rewrite it more carefully. No more binding/ unbinding, a single

[jQuery] simple query does not work

2009-04-12 Thread dongle
i am making this(it does not work) : $(document).ready(function(){ $(div#photolinks img).get(0).css(border,5px solid black;); }); if i do this: $(document).ready(function(){ $(div#photolinks img).css(border,5px solid black;); }); it does work, whats wrong? thanks

[jQuery] Re: simple query does not work

2009-04-12 Thread Chuck Harmston
I'm not quite sure what you're trying to do here. The $.get() function is used to submit an HTTP GET request. See: http://docs.jquery.com/Ajax/jQuery.get Are you trying to return the first response? Try using $(div#photolinks img:first). Chuck Harmston http://chuckharmston.com On Sun, Apr 12,

[jQuery] Re: simple query does not work

2009-04-12 Thread dongle
nop, there are too get ; one that acts like the javascript index(i) method: http://docs.jquery.com/Core/get i am referring to that one, :first would not help me here. On Apr 13, 12:57 am, Chuck Harmston cpharms...@gmail.com wrote: I'm not quite sure what you're trying to do here. The $.get()

[jQuery] Re: Endeavour: translating X-Library functionality click-n-drag checkboxes into Jquery

2009-04-12 Thread Lwangaman
Taking up jscripter's suggestion, I just noticed myself that applying the mousedown and mouseover to the whole table keeps you from being able to click on any links that may be contained in the table. For example my table has links in the header cells that when clicked reorder the table according

[jQuery] Re: Function Problem

2009-04-12 Thread Chuck Harmston
I would imagine that this fixes your problem: $(document).ready(function(){ $(#showwhat).change( function(){ onSelectChange(#showwhat)); }); }); But I'm not sure that this is the best way to approach this particular problem. Try the code found here: http://jsbin.com/udamo

[jQuery] Re: Function Problem

2009-04-12 Thread Ryan
How about something like this $(document).ready(function(){ $(#showwhat).change(function() { show_output( $(this).val () ); }); function show_output(selected) { var output = ; if(selected == Tomorrow) output =

[jQuery] Finding ID within Ajax response

2009-04-12 Thread Nic Hubbard
I have an ajax GET call that returns the HTML of a page on my server. Within that page is a form with a specific ID. I know it is there, I can see it in the response in Firebug, but when I try to get attributes of that ID, it always returns undefined! What have I done wrong here? success:

[jQuery] jQuery Cycle plugin - addslide (again)

2009-04-12 Thread ppblaauw
I read a lot of posts about this issue, but can not find a solution. Also have seen the addSlide examples for the jQuery cycle plugin. I try to add slides to the cycle plugin with AJAX, one slide at a time with the following code. function onBefore(curr, next, opts, fwd) { // on Before

[jQuery] Re: Endeavour: translating X-Library functionality click-n-drag checkboxes into Jquery

2009-04-12 Thread Lwangaman
I tried something along those lines... http://jsbin.com/ehedu/edit But I just don't have the hang of using this correctly and knowing when to refer to dom elements as dom elements or as jquery objects... The idea is to tie all events to the container of the checkboxes (i.e. table cells), and

[jQuery] Re: Endeavour: translating X-Library functionality click-n-drag checkboxes into Jquery

2009-04-12 Thread Lwangaman
One more detail: mouseout should not take effect until mouseup. In fact, right now, if I click and begin to drag, then still holding the mouse button I leave the area, and still holding it come back over the cells, they no longer get checked / unchecked because mouseout has already kicked in.

[jQuery] Re: Function Problem

2009-04-12 Thread Ryan
If you really must pass the select object then try something like this $(document).ready(function(){ $(#showwhat).change(function() { show_output( $(this) ); }); function show_output(my_select) { var selected = my_select.val() ; var output =

[jQuery] Re: jQuery Documentation

2009-04-12 Thread Ralph Whitbeck
The jQuery-dev group is a good place for those kinds of suggestions/discussions. On Sun, Apr 12, 2009 at 6:30 PM, will willthem...@gmail.com wrote: Hi, Was wondering if there is a specific active group for the jQuery documentation project? I'd love to see a system sort of like php.net

[jQuery] Re: .each - how to write in my code?

2009-04-12 Thread Ralph Whitbeck
what jay said so for example instead of $(ul#menu a) try $(a, this) where you are selecting all the a tags in the context of this which represents the individual li tag as you iterate through the each loop. On Sun, Apr 12, 2009 at 12:18 PM, jay jay.ab...@gmail.com wrote: inside the each you

[jQuery] Re: jQuery Form Validation

2009-04-12 Thread NobitaNobi79
It still doesn't validate when the field is empty. Yes, I removed required: true, in $(#myform).validate({ rules: { field: { required: true, email: true } } }); The code is exactly the same just without the required: true, line as belows. And if I modified the input

[jQuery] Re: .each - how to write in my code?

2009-04-12 Thread Ricardo
That's unnecessary, you can use the .hover method directly on the anchors without the need for .each(), the iteration happens automatically: $(ul#menu li a).hover(function(){ // animate opacity to full $(this).find('span').stop().fadeIn('slow'); }, function(){ // animate opacity

[jQuery] Re: simple query does not work

2009-04-12 Thread Ricardo
.get(0) returns a DOM element, not a jQuery object, so the .css method doesn't exist in it. Try this: $(div#photolinks img).eq(0).css(border,5px solid black;); or $(div#photolinks img:first).css(border,5px solid black;); On Apr 12, 8:03 pm, dongle tetri...@gmail.com wrote: nop, there are too