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
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
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); }
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
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:
>
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
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
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
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:
>
"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
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;
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
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)
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
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
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
$.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
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
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
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());
});
}
};
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
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
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
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
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 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
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
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
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:
>
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
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
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
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:
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
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
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
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:
>
>
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
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
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
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:
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");
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
> .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
"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
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