Looks like you need a custom method for that. The dependency checking
is useful to make a field optional based on a condition.
For writing custom methods:
http://docs.jquery.com/Plugins/Validation/Validator/addMethod
Jörn
On Thu, Oct 9, 2008 at 4:02 PM, alivemedia [EMAIL PROTECTED] wrote:
I
Could you provide a testpage?
Jörn
On Thu, Oct 9, 2008 at 9:05 PM, jonr [EMAIL PROTECTED] wrote:
This does not work:
$(document).ready(function()
{
$(#menu_move_eq).click( function() {
$(.hiddenform).hide();
$(#movebox).show();
Done:
http://jqueryjs.googlecode.com/svn/trunk/plugins/validate/localization/messages_it.js
Jörn
2008/10/5 Jörn Zaefferer [EMAIL PROTECTED]:
Could you sent that as file js file to me?
Thanks
Jörn
On Sun, Oct 5, 2008 at 1:58 PM, caruso_g [EMAIL PROTECTED] wrote:
Thanks a lot for your
You can access the arguments passed to a function via the arguments
property. That should work:
function showIt() {
otherFunction.apply(null, $.makeArray(arguments));
}
That way you don't even have to specify the arguments explicitly and
could have variable arguments length. arguments is an
Hi there, I am really new to all this. Been a while since I looked
at code but... I had a project and I think I bit off more than I can
chew. What we need to do (without using php because thats WAY beyond
me right now) is place a divs from an external doc into the main doc.
can the load here
When trying to block a row (tr), cell (td) or an entire table using
blockui the entire window gets blocked.
eg: $('table tr:first').block();
Anyone have a patch laying around to get that behaviour working or is
interested in creating that functionality, cause my JS knowledge isn't
that advanced
Hi, I'm looking for some kind of modal window like the UI dialogue
that may do true form submission and refreshes the parent window.
Here's the scenario I'm looking to accomplish.
I have a table of data, one of the column is editable.
If the user clicks on the column of a particular table row,
Hey all!
I'm new to using jQuery and pretty new to javascript, basically I am
trying to use multiple jQuery plugins on a single page however the
outcome varies from safari and firefox (only tested on them so far)
depending on the order in which I load them.
For example, one order everything
I wrote this article since there is not a place that explains this in
one simple way. Hope you all find it useful. Please comment if you
think of ways I can optimize.
This article will explain in the most basic terms how you can use the
JQuery API to insert form values to a MySQL database using
I'm fresh and green to jQuery and enjoying it immensely. One thing
I'm used to doing in AJAX is to animate a background-color across a
range specified like #fff - #000
When I try doing this using $('#Panel').animate({ backgroundColor:
#000}, 1000) I get an error because it doesn't seem to know
.html is actually a function. You need to replace all instances
of .html with .html()
for example:
testArray = myRe.exec( $(#wrap).html ); // Collect found
words in testArray
Should be:
testArray = myRe.exec( $(#wrap).html() ); // Collect found
words intestArray
On Oct 10, 4:07
Sample scenario:
HTML
dl
dtText 1/dt
ddtext 1.1/dd
ddtext 1.2/dd
ddtext 1.3/dd
ddtext 1.4/dd
dtText 2/dt
ddtext 2.1/dd
ddtext 2.2/dd
ddtext 2.3/dd
ddtext 2.4/dd
...more dt's dd's..
/dl
hi there,
i'm new to this group so i wanna say hi to everyone.
I've been using jquery and its plugins since a year (more or less). I
realized a new website with it but my client asked me to make a
particular effect on table where news are shown. He'd like to have a
system by which table contents
Hello,
I am trying to modify character codes in a textarea inside the
keypress handler as shown in the following:
$('textarea[name=message]').keypress( function(e)
{
var whichChar = String.fromCharCode(e.which);
e.which= codes[whichChar];
}
Well, originally I had thought that the duplication went away.
It appears now that the duplication only happens when I load datasets
that are longer than (some yet to be determined) length / time. I was
browsing through the code of the plugin and I noticed there was some
timer stuff added for
Blocking table cells may work in some browsers but in won't work
reliably in an x-browser environment. The blocked element needs to be
an element that can have a relative position, and that is not true of
TRs and TDs. Further, the block overlay (a div) is appended to the
blocked element, and
Pls share the code snippet.
Hi Jeffrey,
Sorry for the delay in getting back to you. I'll try to take a look
this weekend. I have a different idea about how to go about this and
will test sat/sun.
--Karl
Karl Swedberg
www.englishrules.com
www.learningjquery.com
On Oct 9, 2008, at 9:03 AM,
Without example code it is really difficult for people to help
On Oct 9, 10:44 pm, TI Wizard [EMAIL PROTECTED] wrote:
I am quite new to jQuery, and am very impressed so far. It makes life
quite a bit easier when trying to program in Javascript.
Now, I am creating a Citation Generator for
Thanks Michael.
I'll try that out and see where I get!
A google search for jquery animate color will lead you to the color plugin,
which will do what you want.
--Erik
On Thu, Oct 9, 2008 at 9:43 PM, Jimbo M [EMAIL PROTECTED] wrote:
I'm fresh and green to jQuery and enjoying it immensely. One thing
I'm used to doing in AJAX is to animate a
I am quite new to jQuery, and am very impressed so far. It makes life
quite a bit easier when trying to program in Javascript.
Now, I am creating a Citation Generator for school. I have 1 form on
the page, but it is empty except for a submit button and a p tag
with an id of formArea. I have
When I try to extract all html code with $('body').html I get some
jquery function as value, written a short test code to see if anyone
can reproduce.
If it´s my code has any errors in it then please correct, quite new to
both jquery and javascript.
/*** Start test tooltip ***/
Not tested this yet, but the code would need to be tweaked.
Change
el.items = $(li, el);
to
el.items = $( li, el);
And then use lists within lists:
ul id=news
liul
liNews 1/li
...
liNews 10/li
/ul/li
liul
liNews 11/li
...
liNews
BB-22 wrote:
Hi,
this would be the right selector for you:
$(a).filter(function() { return !$
(this).parent(div.pages).length; });
gets all As and then filter the As out wich have a DIV with the
class pages as parents.
Ahaaa... now I finally know what filter does, havent
Via more investigation, I think I've come across the issue. The
question is whether this is a bug / needed feature.
It appears that when you use $.history, the click happens twice --
once when you click on whatever you want to click that triggers some
jquery and secondly when the history plugin
Hi all,
Im new but hate soundling like a newb.
I am putting together an image gallery using jQuery, I’ve always said
the best way to learn is to do, but I’m having trouble with this. Its
my second day using jQuery so be gentle!
What I am trying to do is
Click top link.
Apply loading
Hi, new to jQuery trying to have a span fade in and fade out when I
hover over a link. this is the js
script
$(document).ready(function(){
$(a.nav).mouseover(function() {
$(.fadeit).fadeIn(500);
}).mouseout(function() {
$(.fadeit).fadeOut(500);
})
/script
this is the nav markup
ul
yes, I can move elements, change all of its attributes and clone()...
but, what if I need to copy the element html code? what if I need to
save the code in a db? or export it to some other reason? or simply to
debug and show an alert with the element code?
my question isn't the need... is the
thanks a lot
this is definitely going to help.
at least I wasn't too far off.
MorningZ wrote:
This might help you out
http://paste.pocoo.org/show/87599/
On Oct 10, 9:33 am, evo [EMAIL PROTECTED] wrote:
Hi, new to jQuery trying to have a span fade in and fade out when I
hover over a
to change the css i worked like this :
$('body.home #content').css('background-image','none');
is there a possibilty to add a fadeOut effect on this ?
Well, the UI Dialog (and jqModal) are just div's, so they are part
of the page and can do exactly what you want... put a submit button
inside the modal div and it'll work
Suggestion those, instead of refreshing the whole page just because
the user changed a row of data, just change said objects
You use the ignore-option (a selector) to set additional elements to
ignore when validating. One approach would be to define a class in
your stylesheet with display:none, then adding and removing that class
to hide an element, and set the option ignore:
.customClassHidingElements.
Jörn
On Fri,
I guess what I want to do is grab all the parameters of the showIt
function on the onclick event (see below) and bind a click event to
each matched div with the parameters just grabbed.
See html code below...
---
html
head
script src=http://code.jquery.com/jquery-latest.js;/script
This might help you out
http://paste.pocoo.org/show/87599/
On Oct 10, 9:33 am, evo [EMAIL PROTECTED] wrote:
Hi, new to jQuery trying to have a span fade in and fade out when I
hover over a link. this is the js
script
$(document).ready(function(){
$(a.nav).mouseover(function() {
Still not working, your example works fine, put in some similar edits to
make it work like i want it, still works
i copied over to my html and it doesn't work no mores, here is my code
http://paste.pocoo.org/show/87601/
MorningZ wrote:
This might help you out
hey guys,
can anyone give me an example on how to fadeOut a background-image ?
i can change the image with the .css property but then there is no
animation
thnx in advance
http://www.devsnapshot.com/transpack/bags.php?section_id=1product_id=1
I am working on a mockup for a website using the jQuery tooltip
plugin. I have everything set up to properly display the tooltip, but
it keeps showing on the bottom layer (i am absolute positioning and
using z-index for my
Hello!
I am currently hiding or showing specific form fields depending on
specific conditions. Only if the field is hidden they are still used
to validate against when submitting the form. Are there any ways to
ignore any field validations when the element is hidden? Because when
the field is
I'm using Sorgalla.com's excellent jCarousel plugin on
http://www.westcoastlife.co.za
and integrating it with a flickr photostream:
http://www.flickr.com/photos/westcoastlife/sets/72157607068305740/
The problem I am having is that I don't know how to determine when the
end of the photostream
Your selector
$(#wrapper #topbar a.nav)
your html
a href=#home/a
See the problem between the two?
On Oct 10, 10:52 am, Liam Potter [EMAIL PROTECTED] wrote:
Still not working, your example works fine, put in some similar edits to
make it work like i want it, still works
i copied over
ahh forgot to put the class back in..
Cheers MorningZ, all is good now.
MorningZ wrote:
Your selector
$(#wrapper #topbar a.nav)
your html
a href=#home/a
See the problem between the two?
On Oct 10, 10:52 am, Liam Potter [EMAIL PROTECTED] wrote:
Still not working, your example
I think isset($_POST[submit]) will return false in your action
handler as input types of 'button' are not sent as GET/POST data.
Try changing it to isset($_POST[name]) or maybe remove this
condition at all for testing.
Not tested this yet, but the code would need to be tweaked.
Change
el.items = $(li, el);
to
el.items = $( li, el);
And then use lists within lists:
ul id=news
liul
liNews 1/li
...
liNews 10/li
/ul/li
liul
liNews 11/li
...
liNews
Hmm, I will give it a try. I am currently hiding the container element
of the form fields. I suppose this means I would need to write a
custom method for hiding/showing which adds this class name and add it
to the actual form field element too.
On Fri, Oct 10, 2008 at 1:42 PM, Jörn Zaefferer
Hello,
I’m using Newsticker (http://www.texotela.co.uk) in my site, I would
like to know how to show multiple news per each screen instead of only
one in this plugin.
I'd like to show 10 news by 10 because of their big number.
Any idea on how to make this ?
Thanks a lot
Jquery code :
*All I'm really looking for is a solution to not having a blank picture
appearing when the it reaches the end of the photostream.*
Well if I'm correct JCarousel controls is a .png picture called
next-horizontal.png and another one called prev-horizontal.png. Usually is a
picture with 4 arrows,
Hi Gareth,
I'm the author of the star rating plugin and I have just found this
post. I visited the URL you mentioned but I can't see the star rating
plugin being used - hence I could not reproduce the problem.
Is there somewhere I can see this in action?
Cheers,
Diego A.
On Oct 1, 4:31 pm,
BB, the contents() get all childNodes... through it, we can get the
html code? how?
I think in create a new div, insert the element in it, and get the
innerHTML or html() of the div...
Yeah, that works:
jQuery.fn.elementHTML = function(){
var $nodes = jQuery(div/div);
hi invincible virus, thanks alot. i changed isset($_POST[submit]) to
isset($_POST[name]) and the form is submitting now..
thanks again.
regards.
invincible_virus wrote:
I think isset($_POST[submit]) will return false in your action
handler as input types of 'button' are not sent as
I'm using jQuery $.ajax to make a cross-domain jsonp call to a WCF
service. The call is working fine, entering the service endpoint, but
the callback method never fires. I've tried many permutations of
changes and can't seem to get this to work.
The WCF endpoint is returning a string (NOT
Hi there.
I'm not sure if this is even possible but here is what I am trying to
accomplish.
The input type=file almost does it. However I need it to let me
select a folder then return the name of the folder. Thats it. It
doesn't have to do anything with the folder, it just has to let the
Hi all,
I'll try and be brief. I'm new to jquery. And on
http://monsterfish.bouncingfish.com/concepts/easyroaming/index.html,
I'm trying to animate a set of country flags and names so that they
fly/fade in from the right and fly/fade out to the left in sequence.
The animation works like a charm
I need some help because of great confusion that make me crazy. I have
ajax query function which works fine on firefox, ie (both 6 7)
locally and with firefox on remote server. But it fails on ie (both 6
7) if I use it on remote server. I have PHP code http://www.pastie.org/289451
that
No one? :(
Am I not giving enough information? Wrong information?
Will
On Oct 5, 10:59 am, will [EMAIL PROTECTED] wrote:
Hi jQuery Land,
I'm using jCarousel Lite to do a little tips switcher. I'm using prev
and next buttons. Next works great. Prev fails after a few clicks.
The html is
On Fri, Oct 10, 2008 at 10:14 PM, Federisco [EMAIL PROTECTED] wrote:
I'll try and be brief. I'm new to jquery.
Welcome! :)
If anyone could help me out and show me how to turn this code into a
slick looping beast, it'd be greatly appreciated!
You might want to try the jCarousel or
Nevermind. The fundamental issue was that the json object wrapped in
the callback name does, in fact, need to be written to the Response.
I'm an idiot. Anyway, it's working now. If others hit the same
jquery - jsonp - wcf issue let me know.
On Oct 10, 12:07 pm, tenaciousd [EMAIL PROTECTED]
Hi,
I'm using the jquery localscroll plugin. I have a tab-based navigation
arrangement (tabs are links). It all works fine, but I have a case where
I want to prevent the scrolling action from occurring, based on checking
some conditions. IE, if I have 5 nav links in use, and the user is on
I'm just starting my initial journey into jquery, and I basically need
the jquery syntax equivalent of this:
document.formName.selectName.selectedIndex = 0;
document.formName.selectName.options[0].selected = true;
Here is the relevant code (this is supposed to happen once an id'ed
element is
Hello,
I am using form and validation plugins successfully. I was wondering:
a) how can I make an error message show at a custom location? for
example when validating an email, it will just add right next to the
input element an error message as a generated label. how can I make
error messages
Hello, I'm seeking for support on the following issue,
as I have not found a solution googling...
im developing using framework 2.0 of .net, for some reason it has
configured a ':' (colon) instead of the '$' (dollar) documented to use
as an IdSeparator while auto-generation name attributes for
This should work for you:
$('dt').click(function() {
$(this).nextAll('dd').doSomething()
});
All,
If I were to add a plugin to an element on a page, say clueTip. How
could I remove the plugin from the element when I want without
reloading the page?
Regards,
Dan
What I want to do is be able to drag and drop li's between two divs,
and be able scroll the contents of those two divs. There are a few
issues:
If I have circular on jCarousel, after dragging a li from the withhold
box to the release, another copy of that li is still in the withhold
ul if I
Looks like I ended up answering my own question (which is always the
best way cause it means I learned something!):)
$(#showall).click(function(){
$(form).each(function() {
this.reset();
});
});
On Oct 10, 3:14 pm, TurboRogue [EMAIL PROTECTED] wrote:
I'm just starting
Looks like I ended up answering my own question (which is always the
best way cause it means I learned something!):)
$(#showall).click(function(){
$(form).each(function() {
this.reset();
});
});
On Oct 10, 3:14 pm, TurboRogue [EMAIL PROTECTED] wrote:
I'm just starting
What am I doing wrong? (besides developing the whole thing to work in
FF2.0 first)
What changes can I make to get this to work in IE7?
For example it does not change to 'Edit Gift Label' on ready, even
though the checkbox is checked.
$(document).ready(function(){
var rowNum = 0
If the onBefore callback returns false, the animation is skipped.
I checked the docs and that doesn't seem to be documented (I did
mention that for SerialScroll).
I'll add that asap.
Cheers
--
Ariel Flesler
http://flesler.blogspot.com
On Oct 10, 4:19 pm, Jack Killpatrick [EMAIL PROTECTED]
You have 2 options.
- Binding externally:
var $links = $('#navigation a').click(function(){
$links.removeClass('selected');
$(this).addClass('selected');
});
- Using the onBefore callback.
I think the first one is simple and safe. I'd go for that.
Cheers
--
Ariel Flesler
hi everybody,
I've found a fantastic sript in the internet on chazzuka.com. It
load's images sequecial with a nice prelaoder. Could someone give me a
hint how to add links to the images so I can combine thme with a
lightbox?
this is the script:
// DOM Ready
$(function () {
// Image Sources
I am interested in it as well. Also, if it is possible to pass data to
and from the modal dialog when it is created?
Can you give some detail description?
Thanks
On Oct 10, 4:33 am, MorningZ [EMAIL PROTECTED] wrote:
Well, the UI Dialog (and jqModal) are just div's, so they are part
of the
One option is to use unbind on the event that this plugin uses. $.
(element).unbind(click);
Anyone has any other solution?
On Oct 10, 9:21 pm, Dan M [EMAIL PROTECTED] wrote:
All,
If I were to add a plugin to an element on a page, say clueTip. How
could I remove the plugin from the element
All is good here, check your IE install.
- ricardo
Pixeldrummer wrote:
My apologies if this post is a duplicate. Couldn't find my first post
and noticed the URL I provided was wrong. Just saw the new Jquery
website in IE7 and it's unreadable for the most part. At first it
loads correctly
I think when you unbind it, you should put the back of your hand to your
forehead and say, Oh woe is me!
Sorry, it's Friday.
- Original Message -
From: me-and-jQuery [EMAIL PROTECTED]
To: jQuery (English) jquery-en@googlegroups.com
Sent: Friday, October 10, 2008 2:23 PM
Subject:
Withing the onBefore, you have an argument, I think the one that says
elem that points to the selected panel. Same on the onAfter.
You do fadeIn/Out on it.
Cheers
--
Ariel Flesler
http://flesler.blogspot.com
On Oct 1, 12:09 pm, yabdab [EMAIL PROTECTED] wrote:
Hey all, I am hacking around
Can you explain how you put this snippet in your code? I really need
this for my new design. Thanks BroOf!
On 25 Sep., 11:03, casavecchio [EMAIL PROTECTED] wrote:
ok, i found it:
$.isFunction(callback) callback();
thats all!
On 24 Sep., 16:55, casavecchio [EMAIL PROTECTED] wrote:
Hmm, I'm using localscroll 1.2.2. Tried it there, but it didn't work.
Was support for that added later?
I tried this:
onBefore:function( e, anchor, $target ){
return false;
Thanks,
Jack
Ariel Flesler wrote:
If the onBefore "callback" returns false, the animation is skipped.
I
more on the subject,,,..
there was a
xhtmlConformance mode=Legacy
config entry on web.config for my IIS (so it made it into the config
of all my IIS hosted websites).
This was using de colon instead of the dollar sign for IdSeparator
character,
I thought that removing that would solve my
Yes
http://demos.flesler.com/jquery/localScroll/changes.txt
On Fri, Oct 10, 2008 at 7:28 PM, Jack Killpatrick [EMAIL PROTECTED] wrote:
Hmm, I'm using localscroll 1.2.2. Tried it there, but it didn't work. Was
support for that added later?
I tried this:
onBefore:function( e,
One way to do it:
jQuery.fn.fly = function(){
return this.each(function(){
$(this).animate({right: 250px, opacity: 1,
easing:easeOutCubic}, 1500, function(){
$(this).animate({right: +=150px, opacity: 0,
easing:easeOutCubic}, 1500);
$(this).next('li').fly();
});
});
};
That a separate plugin or it in the jquery base code?
its part of jquery ui.
http://ui.jquery.com/
When you go to the download builder you should only need the dialog
component and the effects components (to do the fancy opening magic in the
example i posted)
On Fri, Oct 10, 2008 at 7:59 PM, 700lbGorilla [EMAIL PROTECTED] wrote:
That a separate
Another option might be to actually show some code, preferably up and
running on an accessible site so people can help diagnose
On Oct 10, 8:03 pm, chris thatcher [EMAIL PROTECTED]
wrote:
its part of jquery ui.
http://ui.jquery.com/
When you go to the download builder you should only need
We recently moved from an older version of jQuery to the latest/
greatest jQuery and jQuery UI (not sure what versions they are, but we
just downloaded them from the jQuery site last weekend).
We had downloaded these partly in hopes of being able to use the new
delay parameter in draggable so
Having a weird issue on tables that are longer than the scroll of the screen.
The table will sort descending but then wont resort ascending.
This is what I am getting back from firebug when I click on a column to
sort.
Sorting on 0,0 and dir 0 time:,13ms
Rebuilt table:,11ms
Sorting on 0,1 and
On 9/30/08, Leanan [EMAIL PROTECTED] wrote:
How can I make it so that when the user clicks the back button in
their browser, this same thing happens, as I'll likely have people
trying to click the back button instead of the back link on the page
and then tell me it's broken. Is it even
Hi!
I am really new to jquery and javascript in general.
I am making an effort in creating something in the area of a smooth
thickbox effect with image magnification.
If people click a link the linked image is opened in an absolute
positioned div that appears with an animate effect.
When they
Thanks, that did the trick!
- Jack
Ariel Flesler wrote:
Yes
http://demos.flesler.com/jquery/localScroll/changes.txt
On Fri, Oct 10, 2008 at 7:28 PM, Jack
Killpatrick [EMAIL PROTECTED] wrote:
Hmm, I'm using localscroll 1.2.2. Tried it there, but it
didn't work.
Was
Put the remove, specifically it'll be '$(this).remove()', in the
animations callback
http://docs.jquery.com/Effects/animate#paramsdurationeasingcallback
On Oct 10, 6:45 pm, XeroXer [EMAIL PROTECTED] wrote:
Hi!
I am really new to jquery and javascript in general.
I am making an effort in
Someone asked tonight on the jQuery UI maling list about the difference
between jQuery, jQuery UI, and Plugins. This may not be new(s) to some of
you, but my answer turned out to be rather lengthy, so I thought I'd share
it here as well. Or at least a link. Here's the original thread:
The
90 matches
Mail list logo