[jQuery] Re: callbacks calling callbacks calling callbacks ....

2008-03-09 Thread Shawn
Thanks for the sample. I can see some potential for improving things. Though at this point it'll likely be a total rewrite of the drawing routines. (which may not be a large hit afterall - I was considering this to make use of the jQuery.data() capabilities and free up some funky code for r

[jQuery] Re: Safari not rendering styles loaded though ajax

2008-03-09 Thread Danny
Technically, Safari is doing it right (but it's very frustrating).

[jQuery] Re: ul li ... hide an slide --- Beginner!

2008-03-09 Thread Jason Huck
I would suggest that you show/hide the unordered lists, rather than the anchors within them. This is most likely why what you're trying didn't work: you've hidden the elements, but you've targeted the elements for the .slideDown(). Also, if you use .slideToggle(), you get .slideup and .slideDown

[jQuery] Re: ui-slider

2008-03-09 Thread Michael Ray
Another way to do the same thing is to set the minValue and maxValue, as the slider will always start at Zero. $('#months').slider({ steps: 14, range: true, minValue: -6, maxValue: 7, change: function(e,ui) { alert(ui.value); }

[jQuery] Re: slidetoggle jumps in IE

2008-03-09 Thread rocksou
thanks for the reply. unfortunately that did not fix the problem, that disabled the effect altogether. the effect works, but it just flashes the content as it enters/exits the effect... any other suggestions? On Mar 9, 2:11 am, Peter Edwards <[EMAIL PROTECTED]> wrote: > You could write out a sty

[jQuery] Re: slidetoggle jumps in IE

2008-03-09 Thread rocksou
thanks for the reply. unfortunately that did not fix the problem, that disabled the effect altogether. the effect works, but it just flashes the content as it enters/exits the effect... any other suggestions? Peter Edwards wrote: > You could write out a style rule in your script to hide them: >

[jQuery] Re: slidetoggle jumps in IE

2008-03-09 Thread rocksou
thanks for the reply. unfortunately that did not work, it completely disabled the effect in IE. any other ideas? On Mar 9, 2:11 am, Peter Edwards <[EMAIL PROTECTED]> wrote: > You could write out a style rule in your script to hide them: > dcoument.write('.sub_section > {display:none;}'); > Or s

[jQuery] ul li ... hide an slide --- Beginner!

2008-03-09 Thread Frika
Hello everybody, this post begins as so often. I´m a newbie and I need some help from other jquery user. I think it´s an easy thing for those who has some more expierience than I. I have a list (simplified): - projects - - - - - Project 1 - - - Project 2 - - - -Contact The

[jQuery] Re: Form Plugin: new page

2008-03-09 Thread Maxime C. Dumas
For now what I found is I put a javascript redirect, since header('Location..') php function simply loads the content which is then returned in the div element. I use javascript function location.href, which seems to be a viable alternative for now. It does require javascript, but hey the form plu

[jQuery] Re: slidetoggle jumps in IE

2008-03-09 Thread Chris J. Lee
Actually writing a style to show or hide them isn't as helpful as positioning them absolutely to the way far left - at least from my experiences. Correct me if i'm wrong. On Mar 9, 5:11 am, Peter Edwards <[EMAIL PROTECTED]> wrote: > You could write out a style rule in your script to hide them: >

[jQuery] Re: basic Show & Hide icon

2008-03-09 Thread SparrowDog
"What I would like to do though is to have a hand (or some other meaningful icon) show up on mouse over instead of the cursor. Is there a way to do this?" Drop the tags and just use CSS: cursor: pointer http://www.w3schools.com/css/pr_class_cursor.asp - Doh! Forgot about

[jQuery] Re: creating an form element on the fly.

2008-03-09 Thread Jason Huck
Have you tried .append()? This test page works for me in Firefox 3.0b3/ Mac. I haven't tested it in anything else: http://cachefile.net/scripts/jquery/1.2.3/ jquery-1.2.3.min.js"> var inputcount = 0;

[jQuery] Re: Problem with validation

2008-03-09 Thread Jörn Zaefferer
Greg Baker schrieb: I'm making a call to my validate() function when the document loads, passing it an array of the following format: [field_id] => [rule], [message] I am looping on field_id, assigning a blur function that checks the rule (which is a regexp), displaying a div if the regexp chec

[jQuery] Re: customize validation plugin

2008-03-09 Thread Jörn Zaefferer
yazid schrieb: thanks, but which is more suitable : the "remote" method or the "addMethode" method, could you tell me please before starting any one of them, besides, there\s no enough documentation on remote do you have any others. If you want to do remote validation (anything on the server)

[jQuery] Re: [validate] equalTo for empty field values too?

2008-03-09 Thread Jörn Zaefferer
Drakanor schrieb: Is there a way to use equalTo with empty fields (if they are not required, they are equal when empty). So far I have found examples of equalTo used together with "required" option only. equalTo should work just fine without required. Jörn

[jQuery] Re: pack smaller than min?

2008-03-09 Thread Ariel Flesler
That is if you gzip it. On 9 mar, 06:24, Paul Marcotte <[EMAIL PROTECTED]> wrote: > Hi, > > I just noticed that the download for jquery-1.2.3.min.js is 52k, while > pack is 29k.  Shouldn't the min version be closer to 15k? > > Thanks, > > Paul

[jQuery] Form Plugin: new page

2008-03-09 Thread Maxime C. Dumas
Hi all, I discovered today this amazing form plugin, and started using it for my existing forms. The only problem is when I was submitting a form, if it was successful on certain forms I would use a php redirect (header function) to redirect the user to a page. With the plugin, I can only write to

[jQuery] Re: silverlight version of excanvas

2008-03-09 Thread Rick
my plugin works with the silverlight version: http://www.meerbox.nl/corner_silver/example1.html (right click on the corners)

[jQuery] Re: jQuery.data() woes

2008-03-09 Thread John Resig
$.data() works on pure DOM elements so you would have to do: $.fn.myPlugin = function() { return this.each(function() { console.log($.data($(this).parent().parent()[0])); $(this).blur(function(e) { $.myPlugin.test($(this).parent().parent()[0]); }); } }; OR, with j

[jQuery] display returned data from posting page

2008-03-09 Thread bwdev
I need to do a post and then have the posting page return some data into a var. I've tried a few things but can't seem to get it to work. Please see my pseudo code below. How can I have the posting page return data via json? jQuery.post(container.url, { "data1":1}, function(){ var

[jQuery] pack smaller than min?

2008-03-09 Thread Paul Marcotte
Hi, I just noticed that the download for jquery-1.2.3.min.js is 52k, while pack is 29k. Shouldn't the min version be closer to 15k? Thanks, Paul

[jQuery] Re: jquery scripts in internet explorer not running

2008-03-09 Thread Drake Aedus
Try this: Checkbox Test Checkbox 1: Checkbox 2: Checkbox 3: Checkbox 4: Checkbox 5: $(function(){ $("#buttons").children("fieldset").append('

[jQuery] Re: execute click in the scrip

2008-03-09 Thread Roncioso
On 9 Mar, 09:30, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > Hi, > > I have this link that I like to automatically 'click' in the script: > > test link > > here is my code, but it does not 'click', any idea? thanks. > > jQuery(document).ready(function(){ > jQuery(".block").draggab

[jQuery] jQuery.data() woes

2008-03-09 Thread Julie A
How is jQuery.data() calculating the id? I'm using code simar to: $.fn.myPlugin = function() { return this.each(function() { console.log($.data($(this).parent().parent())); $(this).blur(function(e) { $.myPlugin.test($(this).parent().parent()); }); } };

[jQuery] jQuery.data() woes

2008-03-09 Thread Julie A
How is jQuery.data() calculating the id? I'm using code simar to: $.fn.myPlugin = function() { return this.each(function() { console.log($.data($(this).parent().parent())); $(this).blur(function(e) { $.myPlugin.test($(this).parent().parent()); }); } }; $.my

[jQuery] Re: jquery scripts in internet explorer not running

2008-03-09 Thread jez
In the course of preparing a page to show you, I discovered that it worked in IE, so obviously not a jquery problem I'll have to explore other things... thanks, J. On 9 Mar, 00:05, "Jeffrey Kretz" <[EMAIL PROTECTED]> wrote: > Would you be able to put up a public-facing test page that I could ta

[jQuery] creating an form element on the fly.

2008-03-09 Thread Vivek
Hi, I am new in Jquery. I am trying to add file upload field in an form. We can't user $("#container").html() or text() for file upload field because they will not pass the values to other pages. So we have to create an element on the fly. I am not able to figure it out that how can i create an e

[jQuery] Re: execute click in the scrip

2008-03-09 Thread Adrian-Bogdan Andreias
Use trigger function: http://docs.jquery.com/Events/trigger On 3/9/08, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > > Hi, > > I have this link that I like to automatically 'click' in the script: > > test link > > here is my code, but it does not 'click', any idea? thanks. > > jQuery(d

[jQuery] Safari not rendering styles loaded though ajax

2008-03-09 Thread rernens
We extensively use jquery in conjunction with our proprietary CMS for building web site and web application. We use jquery 1.2.3 and face a problem only in Safari 3. Styles injected with pages loaded through ajax seem not recognized and as a result pages a not properly rendered. Works just fine in

[jQuery] Problem: Plugin architecture/layout

2008-03-09 Thread Julie A
Hello I'm creating a plugin that enhances an input element in a form. The plugin makes use of, among other things, the keydown event. The problem I'm seeing is that when I run: $.fn.myPlugin = function(e) { return this.each(function() { $input = $(this); $input.keydown(myFun

[jQuery] Re: innerfade.next issue

2008-03-09 Thread Drake Aedus
jQuery plugin Cycle helped me out earlier, and it can probably help you too. Check out the "pager" transition on this page, though you would want the fx = fade: http://malsup.com/jquery/cycle/int2.html Kris On Mar 9, 12:46 am, jerpod <[EMAIL PROTECTED]> wrote: > I'm working with innerfade and i

[jQuery] Re: execute click in the scrip

2008-03-09 Thread Drake Aedus
Have you already bound a function to that elements click event? Kris On Mar 9, 12:30 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > Hi, > > I have this link that I like to automatically 'click' in the script: > > test link > > here is my code, but it does not 'click', any idea? tha

[jQuery] Re: customize validation plugin

2008-03-09 Thread yazid
i want to ask about the rule : remote: "check-email.php", what should the result of check-email.php be:xml, string or others On Mar 8, 7:45 pm, yazid <[EMAIL PROTECTED]> wrote: > thanx, > but which is more suitable:using the remote function or the addMethode > one?besides, there's no enough docum

[jQuery] Re: form+ajax

2008-03-09 Thread the_woodsman
I think we can. Look at the ajax form plugin (http://www.malsup.com/jquery/form/), which can seamlessly convert your forms to ajax and give you the resulting page. Then, you just have to put these into your div, using .html() or somesuch. On Mar 8, 12:42 pm, mauro <[EMAIL PROTECTED]> wrote: >

[jQuery] "missing ; before statement" in ui.tabs

2008-03-09 Thread eyal
Hello, For some reason i'm having "missing ; before statement" error when i'm running ui.tabs altough on the demo page it's run just fine. What do think might be the problem? Thanks! Eyal

[jQuery] Re: slidetoggle jumps in IE

2008-03-09 Thread Peter Edwards
You could write out a style rule in your script to hide them: dcoument.write('.sub_section {display:none;}'); Or set display to none in some other way (using script so the page is rendered correctly in non-javascript browsers). on 08/03/2008 23:36 rocksou said:: > I am having an issue with the

[jQuery] Re: callbacks calling callbacks calling callbacks ....

2008-03-09 Thread J Moore
Hi Shawn, Interesting problem you've outlined. Running the queries sequentially is slow, and splitting them apart appears faster (presumably since you display some progress to the user). My approach using objects will not speed up your 30 second database queries, but it can break down the problem

[jQuery] Re: Element with two classes

2008-03-09 Thread chrismarx
i've used this instead; $('table[class="cl1 cl2"]').addClas('abc'); On Mar 9, 12:36 pm, Karl Swedberg <[EMAIL PROTECTED]> wrote: > Jason's suggestion should work for the first table: > > > $('table.cl1.cl2').addClass('abc'); > > If you want a selector for the second table exclusively, try this:

[jQuery] Problem with validation

2008-03-09 Thread Greg Baker
I'm making a call to my validate() function when the document loads, passing it an array of the following format: [field_id] => [rule], [message] I am looping on field_id, assigning a blur function that checks the rule (which is a regexp), displaying a div if the regexp check fails... function v

[jQuery] Form Plugin Help

2008-03-09 Thread [EMAIL PROTECTED]
Hey all, I'm trying to use the form plugin for the first time, and I cannot get any of the functionality to work. The examples seem pretty simple, what am I missing? Here is example code that I'm trying, the onsubmit of my form calls this method: function answerQuestion() { aler

[jQuery] Re: $.getJSON doesn't work on Vista PC while calling remote server

2008-03-09 Thread Plant More Tree
Hi Joe, Thanks a lot for your suggestion. It works. However, I got error while calling remotely with the following exception from javascript: invalid label [Break on this error] {"user":{"items":[{"name":"Vinod Abraham","email":"[EMAIL PROTECTED]"},{"name":... when using $.getJSON("http://w

[jQuery] Re: How to animate remove() and html() ?

2008-03-09 Thread Fabien Meghazi
> not tested : > > $.get("URL", function(html) { > $(html).hide().appendTo('#foobar').fadeIn("fast"); > }); Yeps working. Thanks ! -- Fabien Meghazi Website: http://www.amigrave.com Email: [EMAIL PROTECTED] IM: [EMAIL PROTECTED]

[jQuery] silverlight version of excanvas

2008-03-09 Thread Rick
for the people interested: there is a silverlight version of excanvas: http://excanvas.svn.sourceforge.net/viewvc/excanvas/silverlight/ cool stuff :)

[jQuery] Re: Element with two classes

2008-03-09 Thread Ariel Flesler
Or just use indexes var $tables = $('tables.c1'); $tables.eq(0).addClass('xyz'); $tables.eq(1).addClass('abc'); You could also save some bytes with some chaining. -- Ariel Flesler On 9 mar, 13:36, Karl Swedberg <[EMAIL PROTECTED]> wrote: > Jason's suggestion should work for the first table: > >

[jQuery] Re: Element with two classes

2008-03-09 Thread Karl Swedberg
Jason's suggestion should work for the first table: $('table.cl1.cl2').addClass('abc'); If you want a selector for the second table exclusively, try this: $('table.cl1:not(.cl2)').addClass('xyz'); --Karl _ Karl Swedberg www.englishrules.com www.learningjquery.com On Mar

[jQuery] Re: Element with two classes

2008-03-09 Thread Jason Huck
You asked how to select the element that had both classes: > Is there a way to say that I would like to > adress only the table when it its class is cl1 and cl2? This does that: $('table.cl1.cl2').addClass('abc'); You also want to know how to select the element which has one class but not the

[jQuery] Re: Element with two classes

2008-03-09 Thread Johannes Theile
I think this does not solve the problem. By using $('table.cl1.cl2').addClass('abc'); "abc" is added to Table 1. When I do the same for Table 2: $('table.cl1').addClass('xyz'); "xyz" is also added to Table 1. So I'm looking for something to make a distinction between class="cl1 cl2" and class

[jQuery] Re: Element with two classes

2008-03-09 Thread Jason Huck
This _should_ work (untested): $('table.cl1.cl2').addClass('abc'); - jason On Mar 9, 11:29 am, Johannes Theile <[EMAIL PROTECTED]> wrote: > Hi, > I have a page where I cannot change the XHTML code. This page contains > two tables. The classes of the tables are as following: > > Table 1:

[jQuery] Element with two classes

2008-03-09 Thread Johannes Theile
Hi, I have a page where I cannot change the XHTML code. This page contains two tables. The classes of the tables are as following: Table 1: Table 2: Normally to make changes to this tables I would call up something like: $("table.cl1").addClass("abc"); $("table.cl2").addClass("xyz");

[jQuery] Re: How to animate remove() and html() ?

2008-03-09 Thread Alexandre Plennevaux
not tested : $.get("URL", function(html) { $(html).hide().appendTo('#foobar').fadeIn("fast"); }); On Sun, Mar 9, 2008 at 1:51 PM, Fabien Meghazi <[EMAIL PROTECTED]> wrote: > > > .html() isn't suitable - ie what does it mean to 'slowly' change the > > html content of an element?? Perhap

[jQuery] Re: How to animate remove() and html() ?

2008-03-09 Thread Fabien Meghazi
> .html() isn't suitable - ie what does it mean to 'slowly' change the > html content of an element?? Perhaps a typing effect, or cloning a > div, changing the content then fading the original - but these would > be specialised effects that you should code yourself. Please, don't pay attentio

[jQuery] Re: basic Show & Hide icon

2008-03-09 Thread MorningZ
"What I would like to do though is to have a hand (or some other meaningful icon) show up on mouse over instead of the cursor. Is there a way to do this?" Drop the tags and just use CSS: cursor: pointer http://www.w3schools.com/css/pr_class_cursor.asp

[jQuery] execute click in the scrip

2008-03-09 Thread [EMAIL PROTECTED]
Hi, I have this link that I like to automatically 'click' in the script: test link here is my code, but it does not 'click', any idea? thanks. jQuery(document).ready(function(){ jQuery(".block").draggable({helper: 'clone'}); jQuery(".drop").droppable({ accept: ".bl